There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

0x0 , in R U A Cyberpunk

I knew i was right in not throwing away my MiniDisk!

Psythik ,

MiniDisc*. Disks are hard drives, floppies, and SSDs. Discs are optical media.

0x0 ,

Do you mean “Disc” as a Sony trademark or a distinction between media types?

cupcakezealot , in Always commit
@cupcakezealot@lemmy.blahaj.zone avatar

never commit on friday afternoon because you’ll regret it on monday morning

darcy , in Pure Evil
@darcy@sh.itjust.works avatar

any modern compiler or ide will notice this and warn you.

massive_bereavement ,
@massive_bereavement@kbin.social avatar

Same, I thought this is gotta be a problem for someone who uses notepad as their main editor.

Jumuta ,

meanwhile vim:

Amaltheamannen ,

If you are coding on vim you use a language server 😝

darcy ,
@darcy@sh.itjust.works avatar

vim is not an ide i believe. but an lsp will notice

watcher ,

Yeah, it will tell you that it existed a semicolon… 😁

luciferofastora ,

…for which my default fix would be to delete and reenter it in hopes of fixing ehatever hiccup the syntax validator is having

tfw_no_toiletpaper , in Pure Evil

I don’t even know what to say to this one.

newIdentity , in Pure Evil

Who uses semicolons in Javascript?

BearJCC ,

Old habits die hard. Learned JS, CSS and C++ all the same year about a decade ago.

seitanic ,
@seitanic@lemmy.sdf.org avatar

Programmers who care about best practices. Here are a couple of scenarios where

newIdentity ,

deleted_by_author

  • Loading...
  • seitanic ,
    @seitanic@lemmy.sdf.org avatar

    ~95% of the JS code you see on the Web has semicolons. Apparently, a lot of programmers think it’s worth that extra keystroke to avoid these types of bugs. I agree with them. The difficulty with programming isn’t “Arrgh, there are too many keystrokes, my hands are tired!” It’s “Arrgh, HTF did this bug get in here?!?”

    tryagain ,

    I don’t even bother typing them because I like having eslint do it for me.

    rockSlayer ,

    They made it a named function, but this is literally how you format anonymous functions in js, a key feature that usually gets called with stuff like an onclick or onload call in the html domain.

    tkarika ,

    Every real programmers

    psud ,

    In that sentence, we use “programmer” singular, because “every” is singular, though referring to many

    All real programmers

    Every real programmer

    Each real programmer

    No real programmer

    It’s pretty arbitrary

    Perfide ,

    People who like minimizing the amount of bug fixing.

    manapropos ,

    I use prettier which by default adds semicolons. Coming from predominately doing backend stuff (mostly in Java) I don’t really mind, especially when the formatter adds them for me

    newIdentity ,

    That’s what I do too, but i don’t manually add them

    drew_belloc , in Pure Evil
    @drew_belloc@programming.dev avatar

    If the language doesn’t force me to use semicolons i will forget

    CyberDragonCore , in NaN Cat wallpaper [artist unknown]
    @CyberDragonCore@programming.dev avatar

    cute.

    Thisfox , in R U A Cyberpunk

    I had that laptop, got it second hand. Was great for Uni.

    NegativeLookBehind , in Pure Evil
    @NegativeLookBehind@kbin.social avatar

    Something similar happened to me a while back. I was copying some code from a Mac to a remote Linux host. For some reason the Mac was using a thing called an “en dash” which is slightly longer than a regular hyphen - and was really fucking frustrating to figure out.

    pthaloblue ,

    I don’t know why I’m here commenting about this, but I love type, so:

    Hyphen (-): the short one, used for hyphenated words. fire-eaters. Close-up.

    en-dash (–): slightly longer, traditionally the length of a lowercase"n" in the typeface. Used between for things like a timeframe. 10–11:30, August–October

    em-dash (—): the longest of the three, and the length of a lowercase “m”. Used as a punctuation mark to denote a side comment or to abruptly cut off a sentence. “It’s a great punctuation mark—in fact I overuse it—but it’s still useful.” “Hey where are you going with that giant—”

    I didn’t bother to double check the definitions, so there might be more specific rules, but these are my rules of thumb.

    Spiralvortexisalie ,

    Dictionary source for possible particulars: merriam-webster.com/…/em-dash-en-dash-how-to-use

    pthaloblue ,

    Ah this is nice!

    Chemical ,

    Thank you. I have learned something new today!

    lobut ,

    Some mac apps have some quirks, the default note app was probably not meant for pasting code in, but when you do it changes the quotes and makes them all fancy. Drives me up the wall and there’s nobody to blame but me.

    NegativeLookBehind ,
    @NegativeLookBehind@kbin.social avatar

    I blame Steve Jobs.

    Gullible ,

    Let’s dig him up and put him on trial. If it’s good enough for the pope, it’s good enough for him.

    jadedwench ,

    I was looking for this. Some text from webpages end up pasting that way too, even on non-mac systems, and it is utterly infuriating. Nothing I hate more than having to paste something into notepad++ so I can fix all the stupid quotes from some online tutorial that is giving you things to paste into a command prompt.

    AlexWIWA ,

    Ah, my favorite character. I abuse the hell out of the em-dash.

    psud ,

    For someone who abuses it, there is a remarkable absence of em-dashes in your comment :—)

    rickdg , in NaN Cat wallpaper [artist unknown]
    @rickdg@lemmy.world avatar

    DHH is asking if he can get it in a t-shirt.

    jana ,

    Fun fact: NaN is of type number

    XTornado , in Always commit

    W E

    W A S

    min_fapper , in Always commit

    The most common advice for git is

    commit early. commit often

    Do not however, follow the same advice for relationships.

    python , in Pure Evil

    ESLint has entered the room

    MeatsOfRage ,

    Or any coding software really. Does this guys friend code in notepad?

    ledtasso , in It's a mass extinction event

    Hot take (maybe?) C# looks like a great language, better than Java. I wish I had an excuse to use it.

    bi_tux ,
    @bi_tux@lemmy.world avatar

    Tbh it’s just microsoft java with worse support on GNU/Linux

    The only reason I used it were the unity libraries

    brezelradar ,
    @brezelradar@feddit.de avatar

    Tbh it’s just microsoft java

    Microsoft made so many javas (remember Visual J++ or J#?), C# is the only one that survived. Well, Microsoft now also ships OpenJDK, apparently.

    Hawk ,

    Use it on Linux daily, no issues here.

    deveaux ,

    If this were ten years ago, sure.

    Mananasi ,

    There’s many reasons to dislike C#, but this is just plain wrong

    Elderos ,

    Java feels archaic compared to C#. I am not sure what problems you’re having on Linux? This sounds like a very outdated take tbh.

    locuester ,

    Definitely not the case. I’ve been doing C# for over 20 years. For the last 6 years I’ve used it to write Linux services exclusively.

    The “Java” relation was true 20 years ago, and the “Linux” argument was true 7 years ago. But neither hold any water anymore. It’s a great language and framework to write a wide variety of software with.

    Matthew ,

    I’m not the best judge, as I’ve not exactly explored a ton of languages, but I love C#.

    Pipoca ,

    Being a much better language than Java isn’t exactly a high bar.

    kambusha , in How the IT guys see the users

    I do feel kinda bad for people. There’s very few jobs left where you don’t interact with a computer in some form or another, and the reality is that it’s not for everyone. Of course most people can benefit from using these “tools” but since they’re always upgrading, there keeps being something new to learn.

    Personally, I love technology and playing around with new tech. However, if I’m great at sales or a lawyer or something, that’s where I add value, not in knowing how a computer works. So I can see how people get frustrated with it.

    In the end it boils down to, pretty much everyone needs IT, but IT doesn’t need everyone. Think about it, when was the last time you worked at a company where an employee didn’t have a computer or need a computer for some task that they do?

    Reddit_Is_Trash ,

    Most technology problems would be solved by people having basic problem solving skills. I don’t feel bad for people who don’t “understand” technology while at the same time not putting in the slightest amount of effort to understand. Some people get thrown off by 2FA, and every single 2FA I’ve ever done has had easily followed instructions. People just don’t put in the effort.

    NightAuthor ,

    On the flip side are IT people who are apparently unable to RTFM. They try 15,000 solutions that logically make sense, exhaust logical options and start doing random shit that’s got almost no chance of working, but never stop to just check the docs.

    LufyCZ ,

    Yea coz that’s boring and for nerds

    NightAuthor ,

    Personally, I usually try something before going to docs. Sometimes I exhaust all ideas I have before going to the docs. But I never just do random shit until I’ve tried everything that makes sense, read the docs, and asked around the internet (maybe try random stuff while waiting for replies online)

    LufyCZ ,

    I was mostly kidding, though it depends on the problem itself - if I need an explanation for a function argument, no point testing shit if the docs answer it in 15 seconds. If it’s something more solution-y, I might do some testing before consulting the papers

    pinkdrunkenelephants ,

    Everyone who uses a computer has a responsibility to understand the basics of how it works because computer usage is so ubiquitous to daily life, and that’s true regardless of your field.

    Dass93 ,

    I have worked(as pedagog and construction) with people that doesn’t give a sit about IT. But are forced to it, and it’s just to document they’re work to bosses ex. So they just do what is needed and if there is a problem it’s not they’re respons to get it working, this must be the guy/lady that forced them to it, BUT they have zero sense to solve it problems.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines