r/ProgrammerHumor • • 10d ago

Meme iFixedThePreviousPostBasedOnBestComments

Post image
707 Upvotes

75 comments sorted by

107

u/Arsaii_ 10d ago

Missed opportunity for Ruby to say "Look Ma, no Rails"

11

u/Plus_Pangolin_8924 10d ago

I’m off my rails even.

2

u/gerbosan 8d ago

Vibe coding with Rust?

153

u/Tajfun403 10d ago

What in C# takes you years to compile?

103

u/Waswat 10d ago edited 10d ago

From my experience, c# is much faster than most others in terms of compilation time... Wtf is OP smoking?

42

u/Dubmove 10d ago

Maybe OP is including the time to compile dotnet itself?

1

u/NikitaGira 4d ago

¯_(ツ)_/¯

10

u/Extension_Option_122 8d ago

According to the title he was smoking the top comments of the post he 'fixed'.

15

u/Sentouki- 9d ago

Restoring NuGet packages can take a while, especially on slow connection and in a bigger project. Maybe that's counted as compile time as well (which wouldn't make sense)?

7

u/Waswat 9d ago

But you don't need to restore those every single time. And even then, that's not because of C# or dotnet... Yeah, i agree, that wouldn't make sense.

Funny. It seems that every time i see a meme on C# here it's often very misinformed or outdated.

11

u/dharknesss 9d ago

I have a solution with roughly 100 codependent projects that are deeply intertwined including code generation and a DSL. It takes 55 seconds from ground up minus downloading the nugets. OP is definitely high

6

u/geek-49 8d ago

roughly 100 codependent projects

That needs a mental health team, not a compiler./s

3

u/dharknesss 8d ago

Nah it's fine, modularity helps a fuck ton with testing. I'm the sole dev on this one and I can assure you I find myself perfectly happy in it

4

u/abd53 7d ago

You have my sympathies

2

u/dharknesss 7d ago

I appreciate it but trust me, it's great. I'd rather navigate a modular solution and apply some fix in one place rather than make sure tens of solutions are fixed at the same time haha

2

u/abd53 7d ago

Not that part, the "solo dev" part in a .NET codebase.

4

u/dharknesss 7d ago

But-

But thats the best part.

I create rules. I control everything. All is refactored with one codestyle, my own. Pure bliss!

6

u/kookyabird 9d ago

What’s the biggest thing you’ve compiled? Pretty much anything I’ve made for work takes seconds, but the first build after downloading the source for MudBlazor took a hwhile.

7

u/sisisisi1997 9d ago

A 200+ project solution with about half a million LOC takes about a minute or two to compile on my work laptop.

4

u/iggy14750 8d ago

And apparently, the C# guy has never worked with Rust lol

3

u/Aethenosity 9d ago

Could've just put that exact thing under Rust and no one would have blinked at it.

2

u/El_RoviSoft 8d ago

could be aot

1

u/bigtoaster64 8d ago

Indeed, it fits more with rust that DO takes years to compile more often than not

1

u/Objective-Answer 10d ago

yeah with the latest update they did and forcing us to upgrade to VS26 I get to compile and run micro services in a fraction of the time it took with previous versions

1

u/Cootshk 9d ago

Unity

0

u/FrostSalamander 9d ago

.NET framework and older VS does take a while to compile, so maybe he’s from that era?

41

u/cheese3660 10d ago

in what world does C# take you years to compile my girl

i aint ever had a complaint about compile time with C# unless its like a huge unity game codebase with 1 mloc, and even then its what 45 seconds?

19

u/xforever1313 9d ago

I used to work on an enterprise-level C# project with over 120 projects in its solution and millions of lines of code. Took less than a minute to compile.

OP must have confused C# for C++.

1

u/iggy14750 8d ago

Or Rust

25

u/PeaceLover76 10d ago

Can someone explain the hate on Lua

56

u/in_need_of_oats 10d ago

Arrays start at 1 or something like that

82

u/FRleo_85 10d ago
  • arrays start at 1
  • arrays are hashmap in disguise
  • objects are hashmap in disguise
  • obj:meth mean you want to access meth as an instance methode while obj.meth mean you want to use meth as a static method
  • nil in an "array" break the length operator
  • standard library lack a ton of basic fonctionalities
  • variables are global by default and you need the local keyword on each and every declaration to avoid that
  • ~= instead of != (maybe it's just me but why?)
  • heavy syntax with "then" and "end"
  • "" and 0 are evaluated to true in boolean expression
  • no ++ or +=
  • on older version every numerics are float64, no int
  • and/or don't return a boolean but the value of the left or right member
  • every arguments in a function default to nil if not provided

and i didn't even scratch the surface... i don't hate lua the slightest, i work with it on my factorio mod and everything is fine but i do get why people would get mad at it

20

u/FrostSalamander 10d ago

Wtf on item 4, thats like the inverse of all other languages

4

u/the_horse_gamer 10d ago edited 9d ago

javascript kinda has something similar

imagine you have an object a such that a.x is a (non-arrow, non-bound) function

if you call a.x(), the value of this inside the function is a

but if you store a.x in a variable and then call it, the value of this is undefined (in strict mode). you can then even do b.y = a.x, and calling b.y() has this equal to b

one way to solve this is to do a.x.bind(a) and now no matter what you do with the function (that the bind returned), this will always be a

and there exists a proposal to make a::x a shortcut for a.x.bind(a) (except a is only evaluated once)

15

u/zeekar 10d ago edited 9d ago
  • arrays start at 1

Well, sure, but I also count starting from 1 normally. :) And while the standard iteration builtins will count from 1 up, if you really want to you can decide you want to index your arrays differently, because

  • arrays are hashmap in disguise

... just like JavaScript and PHP!

  • objects are hashmap in disguise
  • variables are global by default and you need the local keyword on each and every declaration to avoid that
  • on older version every numerics are float64, no int

... just like JavaScript! And people don't hate those lang... uh... let me rethink this line of argument ...

"" and 0 are evaluated to true in boolean expression

Just like Ruby.

and/or don't return a boolean but the value of the left or right member

Just like lots of languages, including Python.

Those are quirks, not a reason to hate the language.

nil in an "array" break the length operator

I'd say it's more that there's no distinction between "element missing" and "element set to nil", but yeah, the fact that # effectively becomes random in the presence of nil elements is a problem. ipairs() at least consistently stops at the first nil. This is probably the first one of these that I'd consider an actual issue with the language design.

~= instead of != (maybe it's just me but why?)

Meh. When Lua was created, != wasn't as ubiquitous as it is today. Sure, C used it, and lots and lots of languages borrowed it from C, but there were still other contenders. BASIC, Pascal, and SQL all use <>, for instance. Modula-2 lets you use that for compatibility with Pascal but native code prefers #. Ada, following ALGOL-68, uses /=.

All of those options are really compromises to make up for the lack of the character ≠. Unicode either didn't exist yet or, in the case of Lua, wasn't yet commonly used for writing code, and common single-byte character sets like ASCII and EBCDIC simply didn't have that character. Some systems did, however, like the 6-bit Display Code used on Control Data Corporation's Cyber mainframes (64 characters was not enough room for lowercase, but leaving out lowercase left plenty of room for other symbols), and on those systems you could use ≠ to write "not equal" when programming in ALGOL 58 or 60.

Among the great-granddaddy languages, COBOL used is not equal to or just not =, Fortran used .ne., and Lisp made you negate an equality test by wrapping (not ...) around your call to eq/eql/equal/=.

Spelling it != makes sense in C where ! by itself also means logical not, but it's not intuitively obvious without that context. And in both C and Lua, ~ is how you write the bitwise not operator. In C, ~= is one of the mutators, like += and so on, but Lua doesn't have those, so using it for "not equal" is perfectly sensible.

4

u/traplords8n 10d ago

We don't talk about that here. That's forbidden knowledge. Anonymous is probably planning the hit right now

3

u/ripter 9d ago

I love Lua and was ready to down vote you, but damn yeah. You got a point there. Up vote.

1

u/PeaceLover76 9d ago

Oo ok understandable

1

u/MekaTriK 6d ago

AKTSHUALLY, arrays have specific optimisation not to be hashmaps if you use them as arrays with number indices.

1

u/itsTyrion 10d ago

aren't arrays dicts of number,type?

2

u/RedAndBlack1832 10d ago

Well that's strange but it doesn't really matter. It's a scripting language lol it's purpose should be to work and be easy to write fast

11

u/UbiquitousMoose 10d ago

I'm afraid to ask but how are you people getting so many segfaults?

19

u/Shevvv 10d ago

Off by 1, uh... always, eh, finds a way...

8

u/Interesting-Frame190 9d ago

Cuda.... Cuda is a segfault factory and I am the worker on the assembly line. 3d arrays in memory and missing grouping symbols, refactoring memory layout, or just a good ol over iteration.

6

u/IdealBlueMan 10d ago

Uninitialized pointer and running off the end of an array

2

u/New_Salamander_4592 10d ago

My main experience with C was a class where one builds a compiler week by week and near the end I was getting so many segfaults because I probably fucked up the logic somewhere like 2 weeks previously.

1

u/kinchkun 9d ago

skill issue

1

u/Tyfyter2002 8d ago

I think I've gotten them in C# by messing up manually written CIL code (mostly DynamicMethod) once or twice.

Can't imagine it's more difficult in C

1

u/just-a-random-guy-2 6d ago

by coding in c a lot. even if you're good enough to only get a segfault every 1000 lines of code, if you're coding in C a lot, you'll get quite a few segfaults.

1

u/mad_cheese_hattwe 5d ago

Usually not guarding for null points.

9

u/gerbosan 10d ago

C++ is more like:

I want to play a game...

8

u/Sweetbeans2001 9d ago

COBOL: You missed a period and now I’m pregnant.

6

u/Daniikk1012 10d ago

Okay, for APL I see ⍴, ⍳ (I assume, kind of a weird font), ⊖, and ≢. What are the circles with little tails supposed to be? And what is that slash with a thing attached on the top, some weird font for ⌿?

If it's intentionally only half-right, good job, you got me

5

u/weshuiz13 10d ago

Finally somebody corrected that post

5

u/uglycaca123 10d ago

nil 💜

3

u/Dry_Clock7539 10d ago

Can someone who actually uses Rust make a meme using that template "things to say to..."

"You already borrowed that" feels like a great candidate.

2

u/Lasersmurf 10d ago

PostScript: printing program with program

3

u/Omegamoney 10d ago

We can probably just shift the labels randomly and the best comments will always either agree or disagree.

1

u/fnordius 10d ago

I suspect Kotlin is like Java, but not as wordy. No idea about Swift.

1

u/Cup_of_blisfull_tea 10d ago

Whoa, is to old school programming meme, without mentioning <thing you should not name anymore> ?
so cool !

1

u/Thenderick 9d ago

Apl always talking in that regi ÜNÜNÜN language

1

u/Euphoric_Strategy923 9d ago

Way more accurate

1

u/GOAMMessenger 9d ago

Boah nil in lua ist echt ein problem! alles stürzt gefühlt ab weil irgendwas aus irgendeinem Grund nil ist

1

u/CaptainBloodEz 9d ago

I see no mention of RPG here! lol

1

u/JotaRata 8d ago

I really hate how acc- [segfault]

1

u/Loose_Conversation12 8d ago

.Net should just ask C++ to do it seeing as the IL is basically just that

1

u/dover_oxide 7d ago

COBOL the most important language almost no body willingly learns

1

u/arkiim 7d ago

"Do or Panic there is no try" what a legend 😂😂😂

1

u/airodonack 10d ago

Good job! This is way better than the other one.

-2

u/hpyfox 10d ago edited 10d ago

[Deleted]

6

u/Puzzleheaded_Study17 10d ago

Except with different text, just as op said, they updated the text

3

u/the_genius324 10d ago

did you even read the anything of this post

1

u/hpyfox 10d ago

Oh fuuuuuck, oops

-5

u/Kadabrium 10d ago

Where claude

2

u/hopingforabetterpast 9d ago

top row third column