The nerdy jokes thread (bonus original title mode!)
-
When you only shower periodically:
-
-
@boomzilla dafuq is up with the inconsistent indentation, or in the case of the switch block, the missing indentation?
-
@Arantor said in The nerdy jokes thread (bonus original title mode!):
@boomzilla dafuq is up with the inconsistent indentation, or in the case of the switch block, the missing indentation?
The code got partially mashed by a landslide.
-
@izzion but it was caught, so all’s ultimately good.
-
@Mason_Wheeler said in The nerdy jokes thread (bonus original title mode!):
None of the above.
Probably closes to chaotic evil
Label what is the from top to bottom and left to right:
I have 2, 3, 4. My two is larger and the 3, 4 are smaller.
-
@Arantor said in The nerdy jokes thread (bonus original title mode!):
@boomzilla dafuq is up with the inconsistent indentation, or in the case of the switch block, the missing indentation?
The
case
is indented like Visual Studio does it. I'm fighting with it almost every time and getting annoyed every time that there isn't a way to properly customise the indentation style.
-
@remi in which case, fuck Visual Studio.
-
@Arantor well, I wouldn't mind (no @Tsaukpaetra, not like this!), but sadly I'm not
a spherical cow in a perfect vacuumworking alone.
-
@remi said in The nerdy jokes thread (bonus original title mode!):
The
case
is indented like Visual Studio does it.It's the most common Java style too, except for brace placement. As long as the cases are indented correctly with respect to each other, it's not worth fighting the IDE over it.
-
@dkf said in The nerdy jokes thread (bonus original title mode!):
@remi said in The nerdy jokes thread (bonus original title mode!):
The
case
is indented like Visual Studio does it.It's the most common Java style too, except for brace placement. As long as the cases are indented correctly with respect to each other, it's not worth fighting the IDE over it.
Swift (in xCode) also does it that way, and I agree that fighting the IDE isn't worth it.
-
@Arantor said in The nerdy jokes thread (bonus original title mode!):
@remi in which case, fuck Visual Studio.
In which case, customize Visual Studio
-
@dcon I almost clicked OK on that screenshot of the dialog.
-
@HardwareGeek You should also clean your monitor
-
@Applied-Mediocrity You're not wrong.
-
@dcon said in The nerdy jokes thread (bonus original title mode!):
@Arantor said in The nerdy jokes thread (bonus original title mode!):
@remi in which case, fuck Visual Studio.
In which case, customize Visual Studio
I was ready to swear that this option didn't work (because I remember having spent time, several times, trying each and every formatting options because there are a couple of things that I can't get VS to do "right"). But then I did a weird thing, I actually went and checked () and it turns out you're right, the option works as expected.
I'm going to say that it was fixed (or added) without my knowledge, when I updated from, uh, VS Very-Old to VS A-Tiny-Bit-Less-Old. That's my story and I'm sticking to it.
(seriously though, thanks!)
-
@remi said in The nerdy jokes thread (bonus original title mode!):
"right"
That's why most newer languages have an official preferred coding style. So people don't spend days fiddling with formatter options and bickering about who gets his way how they should be set.
-
@Bulb even PHP is getting in on the act with that now, though I do wish they hadn’t adopted spaces instead of tabs. But that’s just me, I’ll learn to live with it, eventually.
-
@Arantor said in The nerdy jokes thread (bonus original title mode!):
though I do wish they hadn’t adopted spaces instead of tabs
Tab is 8 spaces and that's a bit too much in most cases. Yes, I know Microsoft tools default to render them as four spaces, but anything that uses text mode sticks to eight and then you've got a mess, so almost everybody went the spaces way.
-
@Bulb said in The nerdy jokes thread (bonus original title mode!):
Tab is
8configurable but defaults to 4 spaces and that'sa bit too muchyin most cases.Yes, I know MicrosoftAny reasonable tools default to render them as four spaces,butand anything that uses text modesticks to eight and then you've got a messis and should be ashamed.
-
Tabs are 8 characters, and thus indentations are also 8 characters. There are heretic movements that try to make indentations 4 (or even 2!) characters deep, and that is akin to trying to define the value of PI to be 3.
– https://www.kernel.org/doc/html/latest/process/coding-style.html
-
@Bulb surely this just encourages a flatter style of programming with more functions and less depth of nested fluff?
(And if it’s once-only call functions you can still inline them for no performance hit)
-
@Arantor I think it's pretty much the intent. It helps a bit that C has no scopes outside functions, so functions always start at first column. And then you are encouraged not to nest conditions too deep, but use helpers and the goto “poor man's exceptions” for failure returns.
-
@Bulb said in The nerdy jokes thread (bonus original title mode!):
And then you are encouraged not to nest conditions too deep, but use helpers
Ah, the "memorize the whole code base if you want to understand this basic function" school of thinking.
-
@ixvedeusi It depends on how well the helper functions are named. The Linux kernel coding style is generally fairly good and readable, though there are some specific conventions and idioms you have to learn before you can read it reasonably easily.
-
@ixvedeusi said in The nerdy jokes thread (bonus original title mode!):
Ah, the "memorize the whole code base if you want to understand this basic function" school of thinking.
Functions (and methods, and procedures, and so on) should have a name that pithily says what they do, and should do just that thing. If you can't come up with a short summary of what it does, you've probably not got a good choice of boundary for that subprogram in the first place.
-
@dkf said in The nerdy jokes thread (bonus original title mode!):
have a name that pithily says what they do
yeah I know the theory, it's beautiful and enticing. Pity it seems to hold up so poorly in practice.
@dkf said in The nerdy jokes thread (bonus original title mode!):
If you can't come up with a short summary of what it does, you've probably not got a good choice of boundary for that subprogram in the first place.
Which usually is because the only meaningful choice of boundary is that original function with its 7 levels of indentation.
-
@ixvedeusi Yeah, 3 indents is overly optimistic. I do tend to prefer splitting off sub-functions over putting local variables in nested scopes, though I'll admit that's mostly to keep the codebase consistent. Back when I started, common
gdb
versions did not support variables from nested scopes very well.
-
-
@Bulb said in The nerdy jokes thread (bonus original title mode!):
That's why most newer languages have an official preferred coding style. So people don't spend days fiddling with formatter options and bickering about who gets his way how they should be set.
Oh just wait. When they get to be as old as C++, they'll have their formatting wars too. Because developers.
-
@Bulb said in The nerdy jokes thread (bonus original title mode!):
@remi said in The nerdy jokes thread (bonus original title mode!):
"right"
That's why most newer languages have an official preferred coding style. So people don't spend days fiddling with formatter options and bickering about who gets his way how they should be set.
People don't spend days fiddling with formatter options because people are lazy and they don't care. And this is how we end up with terrible default Resharper formatting everywhere.
-
@MrL Yeah, there were some mistakes made when defining formatting standards. The GNU Coding Standard was one, the Resharper defaults is another.
-
-
-
@HardwareGeek I'm not convinced that's a megafacepalm. I'm not even sure if it's a kilofacepalm but to count.
-
-
@ixvedeusi said in The nerdy jokes thread (bonus original title mode!):
Pity it seems to hold up so poorly in practice.
I didn't say it was easy. Naming things is known to be one of the two hard things in programming (along cache invalidation and off-by-one errors).
-
-
@boomzilla No, a 10/10 joke would be if they split up because of it. Especially since the Manhattan Project didn't do fusion.
-
@dkf naming things is really easy, if you're okay with the names being hard to understand.
-
@Mason_Wheeler said in The nerdy jokes thread (bonus original title mode!):
What does this count as?
I vote Chaotic Goodly evil.
-
@Tsaukpaetra Hmm, I count as True Neutral at home, but Chaotic Evil at work...
Tempted to put that in my signature.
-
-
-
@Tsaukpaetra said in The nerdy jokes thread (bonus original title mode!):
What does this count as?
I vote Chaotic Goodly evil.
I think the best term is unaligned. (It's an option in the current edition for some creatures, though it means that one "lacks the capacity for rational thought".)
-
@pcooper said in The nerdy jokes thread (bonus original title mode!):
unaligned. (It's an option in the current edition for some creatures)
Also in every prior edition, but via omission vs specific mention. Note the Adventure Time usage "kill this unaligned ant", stemming from most likely 2nd edition.
The later editions attempt to open up RPGs for the unimaginative, a kindly but doomed notion.
-
@Gribnit said in The nerdy jokes thread (bonus original title mode!):
Also in every prior edition
Well, in third edition at least, animals were lumped into "neutral" rather than having a separate "unaligned". (At least in the 3.0 original player's handbook, page 88 in the version next to me but I don't have an online citation.) But yeah, I think animals have been unaligned in the vast majority of editions, but I don't know the complete history.
But those monitors are definitely unaligned.
-
-
@PleegWat said in The nerdy jokes thread (bonus original title mode!):
@Mason_Wheeler said in The nerdy jokes thread (bonus original title mode!):
Hello sphynxy?
-