614
(page 2) 50 comments
sorted by: hot top controversial new old
[-] LeLachs@lemmy.ml 6 points 8 months ago

String if_you_must_please_at_least_separate_the_words

[-] unique_hemp@discuss.tchncs.de 5 points 8 months ago

PascalCase is standard in C#

load more comments (1 replies)
[-] CanadaPlus@lemmy.sdf.org 6 points 8 months ago* (last edited 8 months ago)

Hot take, but the main problem with this is that you have to type variables or use them in larger expressions. Otherwise I like it.

These would make a great mouseover text. I don't know if there's any standard way to support that. Actually, how come coding in non-plaintext formats never took off?

[-] unique_hemp@discuss.tchncs.de 5 points 8 months ago

In pretty much any language I've used there is some standard for doc comments that would show up as mouseover text in the IDE.

[-] CanadaPlus@lemmy.sdf.org 1 points 8 months ago* (last edited 8 months ago)

I need like a tutorial on IDEs, because clearly I'm using them wrong. Or I tend to work on things that are poorly documented and just haven't been able to take advantage, I guess that's possible.

[-] original_reader@lemmy.ml 2 points 8 months ago

snake_case_might_be_better_for_that

[-] solrize@lemmy.world 4 points 8 months ago
[-] imPastaSyndrome@lemm.ee 5 points 8 months ago

youCannotImagineTheLookOfDisgustOnMyFace

[-] theherk@lemmy.world 4 points 8 months ago
[-] jack@monero.town 1 points 8 months ago
[-] idunnololz@lemmy.world 4 points 8 months ago

Wtf. It's not even center aligned.

[-] CosmicCleric@lemmy.world 3 points 8 months ago* (last edited 8 months ago)

I don't (brain processes the photons bouncing off the object and colliding with the cones and rods in the retina) a problem with this.

(See what I did there?)

(I think I met my dad joke quota for the month.)

[-] AnnaFrankfurter@lemmy.ml 2 points 8 months ago

Aah.... Like reading a novel. But with a lot of weird punctuation.... Or maybe just like a novel then.

[-] toastal@lemmy.ml 2 points 8 months ago

I’m already annoyed by the end of public static final string that the variable name doesn’t even bother me in these sorts of langauages. All things should be public, static, & final, by default so they aren’t necessary to write. You should only have to write what unsafeties you are opting into.

[-] warlaan@lemm.ee 4 points 8 months ago

You may enjoy having a look at F#. It says that it's "functional first", but I think a better description would be "an opinionated version of C#".

For example it doesn't have a "const"-keyword. Instead it has a "mutable"-keyword, because everything is const by default.

[-] toastal@lemmy.ml 1 points 8 months ago

Being attached to the CLR isn’t my cup of tea, but I have been learning its older cousin OCaml off & on the last 1½ years

[-] imnotfromkaliningrad@lemmy.ml 2 points 8 months ago

this is a crime against humanity

[-] ulterno@lemmy.kde.social 1 points 8 months ago

I use C++ and in certain projects, I am already halfway there.

[-] MachineFab812@discuss.tchncs.de 1 points 8 months ago

When the variable name is the description that should be in the comments.

Idea: Comments that automattically populate the end of any line a given variable is invoked on, including spelling out formulas from that line. ie: float y=mx+b // (cartesian y value)=(slope)(cartesian x value)+(cartisian y-intercept)

"Duplicated" coments not actually in the file, but specified witt the creation of such variables and spread around by the code editor /IDE.

[-] paholg@lemm.ee 4 points 8 months ago

Then, you could take those comments, and have the compiler use them to ensure you're using the right variable in the right place. Oh wait, we just invented a type system.

load more comments
view more: ‹ prev next ›
this post was submitted on 28 Mar 2024
614 points (98.1% liked)

Programmer Humor

32692 readers
443 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS