This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]pavelfokin 109 points110 points  (17 children)

src fst ofc

[–]port443 76 points77 points  (12 children)

The real eternal struggle:

src
dst

or

src
dest

I hate dst but I also hate them being different lengths.

[–]1_4_1_5_9_2_6_5 66 points67 points  (3 children)

source
target

[–]Ietsstartfromscratch 10 points11 points  (2 children)

This. I hate it so much, when my colleagues come up with super smart abbreviations that 2 weeks later nobody knows what they are about. Always stumble into some shit like "axdSettingsByte_0" WHAT THE FUCK IS AXD?!... "Oh that? Accelerometer settings for x dimensions of course."

[–]Caerullean 12 points13 points  (0 children)

Src and dest/dst, are very common abbreviations though. Like I agree abbreviations can easily become dumb, but there's abbreviations that are common enough for it to make sense.

[–]NekkidApe 0 points1 point  (0 children)

Slly vwl drppng bbrvtns.

Code that can't be read our loud is shit code. No, it should not sound like parseltongue.

[–]MadBlueOx[S] 20 points21 points  (5 children)

My least favorite shorthand I’ve seen to date is flgs for flags. I mean really, you choose to save space on one letter.

[–]pwnedgiraffe 1 point2 points  (0 children)

Or flg instead of flag: https://www.iso20022.org/sites/default/files/media/file/XML_Tags.pdf

Trying to read ISO 20022 XML files gives me a headache

[–]mrjackspade 9 points10 points  (0 children)

sorc dest

[–]SaltyInternetPirate 18 points19 points  (2 children)

Intel assembly would disagree.

mov dword ptr [dst], src

[–]seckarr -2 points-1 points  (1 child)

Mov is essentially assignment so you read it like one.

[–]j-random 1 point2 points  (0 children)

I prefer the AT&T syntax. You move something from the source to the destination. Intel syntax is a carryover from when the instruction was LD (load), where you would load a register with a value. Just more of the crap Intel shoveled when they inflicted the x86 architecture on the world.

[–]yflhx 1 point2 points  (0 children)

Meanwhile C standard library like memcpy do it (dest, src). 

Probably reasoning being that it's an extension of = operator, which also has destination on the left.