There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmerhumor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

schrodinger , in Minor miscalculation

This is the first one to actually hurt me.

RagingNerdoholic , in Holy variable!

CONSTANTS: oh yes daddy, don’t stop

ElmiHalt , in The only way

Well, I prefer not to put a “\n” in dates but you do you mate

Celsiuss , in The only way

int time = 1686650138000;

Rega , in JavaScript Pro Tip!

I had to check if that’s actually true. And yep, this is real.

datendefekt , in Maybe one day I'll learn how to use Vim
@datendefekt@lemmy.ml avatar
pete , in Maybe one day I'll learn how to use Vim

If you are actually interested in learning, it’s not too hard, you’ll be slow for a little bit but it pays off in the end.

First, understanding there are actions and objects and quantifiers. Actions are what you do to objects, so when you want to (d) delete, that is the action, then you’d want to specify a object. ($) being the end of the line, (^) start, (w) is word, (j), (g) is top of file and so on, these are already the words you’ll use to move along as well.

Then, for many of these we can add quantifiers, i.e. repeat x number of times.

So 3dw is delete three words and 3dj is three lines down and so on. If you want to select, it’s just swap v for d and off to the races.

Once you learn the basic concept, you really only need a few actions and a few objects to be functional.

Print/find/make a cheat sheet and put it up by your monitor or keyboard and give yourself a week.

Also, checkout the vimtudor or vim golf and play the game for a few minutes.

lwhjp , in Literally 1970
@lwhjp@lemmy.sdf.org avatar

*Um, actually…*A signed 32-bit counter would loop back to December 1901, so the calendar is presumably 31-bit unsigned. (Sorry)

pcouy , in "Looks good to me" *merges own pull request*

Reminds me of the time used a private gitlab repo for a freelance contract where I was working alone. I used it to keep track of tasks in issues. Some issues in this repo really turned into me talking to myself

SkyNTP , in Minor miscalculation

The moiré on that thumbnail though…

Posts , in For-loops in Java don't require any code in the body. I can't control what you do with that information.

Well now I just wanna see more for-loop one-liners!

abclop99 , in Swapping integers in Python

<span style="color:#323232;">a = a ^ b
</span><span style="color:#323232;">b = a ^ b
</span><span style="color:#323232;">a = a ^ b
</span>
flippant_gibberish , in What non-programmers think programmers do

Coding with chat GPT

danc4498 , in With a sprinkle of suspiciously similar variable names here, there, and everywhere

GitHub copilot just suggested the same thing for both of us

pootedesu , in Your peeler is vulnerable to around a half thousand critical-level vulnerabilities
@pootedesu@latte.isnot.coffee avatar

The client requested carrots but after delivery tells you they actually meant zucchini. You think it is strange to put zucchinis in a salad but still meticulously go through their dish and replace all carrots with zucchinis. Upon delivery they ask why it tastes weird and you realize they meant cucumber not zucchini and they got the two confused.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines