[-] MajorHavoc@programming.dev 1 points 3 hours ago

Python is dynamically typed by default, but lots of Python is statically typed.

[-] MajorHavoc@programming.dev 5 points 3 hours ago

But that's not compiled, not to binary at least.

Well...sort of.

(Everything is weirder than it seems at first glance.)

[-] MajorHavoc@programming.dev 7 points 11 hours ago* (last edited 11 hours ago)

Python with MyPy.

(Almost any language can meet those criteria, with enough shenanigans.)

[-] MajorHavoc@programming.dev 5 points 21 hours ago

Another way to read a lot of adversarial code is digging into the Metasploit payloads.

https://github.com/rapid7/metasploit-framework/tree/master/data

[-] MajorHavoc@programming.dev 75 points 4 days ago* (last edited 4 days ago)

Incidentally, this is a perfect example, because the automotive industry ran a series of ad campaigns to change public sentiment after cars got more common and children and elderly citizens started dying in the streets.

Nintendo is working equally hard to change public sentiment against the innocent.

Source: https://www.vox.com/2015/1/15/7551873/jaywalking-history

[-] MajorHavoc@programming.dev 7 points 4 days ago* (last edited 4 days ago)

Is there a .vimrc that already maps all the standard notepad++ keybindings in one go ?

You may find someone who has one, but I just did the ones I found myself missing as I encountered them.

I tried someone's all-in-one .vimrc, but it broke too many community recipes while rebinding a bunch of shortcuts that weren't in my muscle memory anyway.

I kept adjusting my .vimrc as my muscle memory transitioned. So having less to fiddle also made it easier for me to keep my .vimrc tuned to my muscle memory.

For example, I was using / instead of Ctrl+F because I liked it better within a month or two.

[-] MajorHavoc@programming.dev 10 points 5 days ago

But if ctrl+f doesn't let me type a search term then I'm going to scream

It's been awhile since I've bothered to remap a key in Vim, but adding this to .vimrc should do it for you:

nnoremap <C-f> /

I started with a bunch of these to let me keep using existing muscle memory while training new.

[-] MajorHavoc@programming.dev 7 points 5 days ago* (last edited 4 days ago)

Yeah. After that everything can be done with !sh.

(Edit: This is a joke. There's a lot of reasons not to do this.)

[-] MajorHavoc@programming.dev 8 points 5 days ago

I think I get what you are intending to imply by the word "intuitively"; it's that it eventually becomes as reflexive and fluid as touch-typing itself.

Exactly like that!

It's also another source of the many "I can't exit Vim" jokes, because it is now genuinely disorienting for me to try to edit text without Vim key bindings.

Gosh you make it sound almost like you play Vim like an instrument more than use it...!

That's a great analogy. It does very much feel that way.

Honestly that sounds cool ^_^

It is pretty cool.

Wether it's really worth the learning curve is probably unique to each person that tries it. But for folks who need to edit a lot of text a lot of the time, it's pretty great.

[-] MajorHavoc@programming.dev 57 points 5 days ago

Doesn't matter we will tell you either way.

  • Instead of simply shortcuts, vim uses "chords". Every new shortcut I learn can be combined intuitively* with all the other shortcuts I know.
  • Because of this there's no faster way to edit files than Vim in the hands of an experienced user.
  • this let's me spend almost no time editing code, freeing up the rest of my time for swearing at piss poor documentation.

* I use "intuitively" here in a way that not merely stretches, but outright abuses the definition of the word.

[-] MajorHavoc@programming.dev 26 points 6 days ago* (last edited 6 days ago)

pop culture stock picker Jim Cramer points while looking cranky

That's a sell cue, for any shareholders reading along.

138
PSA - MineTest on SteamDeck (blog.rubenwardy.com)
submitted 6 months ago* (last edited 6 months ago) by MajorHavoc@programming.dev to c/steamdeck@sopuli.xyz

MineTest on a SteamDeck is so fun, y'all.

(Edit: MineTest is a free and open source game engine that started as a clone of Minecraft, and has grown to be that, and much more.)

I would have tried it sooner, if someone had mentioned it to me, so I'm mentioning it to you.

Edit: Disclaimer, I'm not the author of this blog. It's the walkthrough I followed to start playing.

view more: next ›

MajorHavoc

joined 9 months ago