Spyke
amioreply
kbin.social

This, but unironically. That is basically exactly how it started (after "J#" IIRC), minus a few wrinkles ironed out because if you're reinventing the wheel, might as well try not to make the same flaws the old one had. Of course things branched out from there and C# has been a very different beast from Java since the 2000s.

24

I the beginning, C# was basically "Java, the good parts", developed from scratch as a new language though. J# was developed in parallel as a replacement for Visual J++, and could run essentially unmodified Java code.

At a previous workplace, we had projects that were combined C# and J# projects. It was a bit strange.

5
Ineoclareply
lemmy.ml

Welp the man behind c# also created Delphi so technically he didn't copy

2

Inventor of Delphi: "Hey, can i copy your homework?"

Inventor to himself: "Yes, just make it look like you made it yourself."

2
Magisterreply
lemmy.world

It's incredible, I remember in the 90s in university, some students were king of Latex and made incredible beautiful paper full of complicated mathematical formula and such

32

The best feedback I ever got on an assignment in grad school was "wow, your homework looks like a textbook!"

It may not always be correct, but it's always pretty!

29

Definitely but such a bitch to use. Why do I have to learn literally a new language to finish my shitty 4 page labs report...

3
JakenVeinareply
lemm.ee

I think templates is what he's making fun of.

23
Valmondreply
lemmy.world

How so, templates make for less code usually? Or like template meta prog?

I'm a C++ dev and I'm lost on this one :-p plz send help

5
Phrodo_00reply
kbin.social

I think it's because each template specialization works kind of like a new copy of a class.

4

Still not getting it, I mean you don't even get to see the code? IDK

1

/shrug

That's my best guess, in the sense that that's what the compiler ends up producing, for templated code: the same code copy-pasted for however many different use cases you have.

2

um more like Rust: Sir this is a very good memory-safe Essay you get 100% Grades!!!! 😎😎😎😎😎

1

Or heredocs. The worst shellscript clusterfucks I've encountered have usually involved someone inexplicably deciding that using a heredoc was a good idea, and then someone else not understanding how heredocs work.

1
lemmy.ml

I don't get the HTML one. Is it a reference to HTTP 418?

12
drcouzelisreply
lemmy.zip

I think the joke is that HTML isn't a REAL programming language.

"This isn't even a paper... this is a flower pot."

25

I think a better analogy would be making HTML look like one of those template thingies people use for bullet journals

3

Language snobs be like

Java is too verbose, Assembly is best 🥴

Ok nobody actually wants to write Assembly, but that's still what they sound like. Optimizing for number of characters you'd have to type if you used a text editor instead of an IDE, and dumb shit like that.

6

I like to program assembly. It's kinda fun to juggle around registers, and it feels really gratifying to to see it running at the fastest speed possible.

4
gruereply
lemmy.ml

The Java hate is not about wanting to type fewer characters; it's about FactoryFactory-type boilerplate nonsense adding conceptual bloat that obscures what the unit of code is actually trying to accomplish.

3

FactoryFactory classes are not something inherent to java, it's just as likely with any OOP language. I'm assuming you refer to something like AbstractFactory Pattern.

Most boilerplate can be automatically added by IDEs, and doesn't add any more congnative overhead than comments would. It's basically comments that are statically validated by the compiler.

0

You reached the end