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.

xmunk , in Not really sure whether S-expressions or Python indentation-based scoping get more hate...

Who hates s-expressions? They’re elegant as fuck…

Python, on the other hand, deserves all the hate it gets for making whitespace syntactically significant - I even prefer Go’s hamfisted go fmt approach to a forced syntax to python’s bullshit.

eestileib , (edited )

I dgaf about indices starting at 0 or 1, I can deal with case-insensitivity, but syntactically significant whitespace drives me up the wall.

Diplomjodler3 ,

What’s so hard to understand about it? It’s how you should format your code anyway. Only it’s enforced.

Lysergid ,

No it’s how Python wants you to format. Many times I want to separate two logical sections in one function and can’t coz Python go crazy

Diplomjodler3 ,

Just put them in separate functions. If you have too many levels of indent, your code is convoluted. Sticking to the line length limit sometimes forces you to write more lines than you’d like to. But it makes everything so much more readable that it’s 100% worth the trade off

xmunk ,

What if the logic is more readable in one function?

I use whitespace to make my code more legible, python forces more whitespace consistency but it comes at the cost of limiting the legibility.

AdamBomb ,

Are you saying that you want to separate your two logical sections by having different levels of indentation and that’s what makes Python go crazy?

umfk ,

Can you give a concrete example? Because I don’t understand what you mean.

magic_lobster_party ,

It’s quite often I have to second guess whether the code is correctly intended or not. Is this line supposed to be part of this if block or should I remove that extra indentation? It’s not always entirely obvious. Extra troublesome during refactors.

In other languages it’s always obvious when a line is incorrectly indented.

slice1 ,

Yeah, it is a completely nonsensical thing to complain about. I hate to go around matching curly brackets like some braindead nematode. If you use more than two levels you should rewrite the code in most cases… just use advanced indexing and vectorization (by pythonic ;p). Or you can loop around like a freaking peasent in your inefficient garbage code that nobody can read because it is cluttered with comments explaining basic stuff. There is a reason Python is popular… and it is not because no one can read it. Same goes for dynamic typing - it is a blessing for most tasks. I do not want to explain to the machine what every temporary variables means…

vrighter ,

sometimes, a script needs to be edited in a plain text editor, without having access to an lsp or any other dev tools.

pkill OP ,

I agree but still you can oftentimes expect that the average person’s initial reaction to be somehow reluctant… until they understand it. it’s like those foods and drinks that you might need to try a couple times before you start enjoying them.

xmunk ,

Oh, definitely, they can look bizarre and confusing before you understand them.

muntedcrocodile ,
@muntedcrocodile@lemm.ee avatar

I hate em cos regardless of language auto formatter takes care of everything. So now im typing extra characters and fucking shit up and confusing myself when moving code between scopes.

Theharpyeagle ,

You take that back, python is my homie!

In all seriousness, I freely admit that I’m biased towards python because it was my first language and remains my favorite. I use an IDE for anything but the simplest scripts, so I’ve very rarely had any issues with spacing.

best_username_ever ,

In 20 years of using Python, I never had one issue with the indentation. Use spaces all the time, use PyCharm, and that’s it.

Whitespace is statistically insignificant in Python.

Excrubulent , (edited ) in How do we tell him ?
@Excrubulent@slrpnk.net avatar

It is honestly impossible to imagine copy-pasting code and getting it to work without knowing what you’re doing.

I had an acquaintance at uni who got a job at a software company by taking credit for a friend’s work and basically being the hack & fraud that the person in this post thinks they are - although I didn’t realise this at the time. He asked me to help him write some code that was needed for a presentation the next day. I decided to try to help, and I took a look.

It was a bug that required a little epsilon value to be tolerant of small changes in input in order to not constantly fire. I wrote that tiny bit of code and gave it back to him. Then he told me it wasn’t working and could I look at it again. I did, and there were two epsilon values with different names in it. I asked him about that and he said he had gotten help from another friend.

He had literally attempted to merge our two functions that did the same thing into one grotesque chimeric piece of code that would only have worked if he had accidentally made one or the other of our snippets inoperative. This was like a 20 line function. It was basic, easy shit. The guy didn’t know anything.

I didn’t explain this. I told him I couldn’t keep troubleshooting this for him and left him to it. To my understanding he was fired and cost that company a lot of money. But really if they couldn’t figure out that the programmer they hired couldn’t actually program then it’s really hard to feel that sorry for them. It seemed like everyone was flying by the seat of their pants.

Donkter ,

I think you could definitely read and bugfix code without ever learning to “write” code. Code intentionally reads kind of like a language, it’s possible that this guy was just doing very simple tasks and the most he would have to change are variable names and values. Maybe he knows how to fix errors reported by the code and knows how to look for variables.

It’s a fine line between that and knowing how to code, but that’s kinda the joke of this post I guess.

Jrockwar ,

I believe so. I have some roles in my team I’m hiring for, that have reading code and fixing small bugs as one of the requirements, but not developing code from scratch. (It’s a sort-of field engineering role).

We do test for both things (treating the “developing code from scratch” as bonus points rather than a strict pass/fail) and some people can find and fix bugs in a couple minutes, but are incapable of writing some basic python to iterate through prime numbers and store them in an array.

xmunk , in traslation: i made that bug 15 years ago and have been waiting for it to matter.

Ha, you remember 15 year old bugs? I’ve “fixed” bugs that were deliberate decisions because the fix was worse then the bug - so I’ve then unfixed the bug and said “7 years ago xmunk, that was really quite a good decision… SO Y U NO COMMENT!” Of course, since I’ve fixed the same fix twice it’s now burned into my memory so there’s no reason to leave a comment at this point.

SpaceNoodle ,

Maybe for the unlucky soul that inherits it after you get hit by a bus?

xmunk ,

Nah, they probably remember why I changed it.

agentshags , (edited )
@agentshags@sh.itjust.works avatar

I love living vicariously. I feel this whole situation, and I barely ever did more then the (bare bones) intro to AMOS, or or hello world on c64 basic, but Lemmy and the hard R site (before the API mess) memes make me feel the situations at hand, even with very minimal understanding of coding.

Blackmist ,

Sounds like somebody else’s problem to me.

Abnorc ,

Coding requirements could be a lot less strict if we just solved this bus problem.

SpaceNoodle ,

I tried handling the Bus Fault but it didn’t work and I got my CDL suspended

xmunk ,

Would rm /var/run/kill solve this problem?

wieson ,

Getting hit by a star doesn’t sound that much better

ExtraMedicated ,

There’s been a few times where I had to look into an issue and found a comment I wrote much earlier with a ticket number or link to a previous ticket that explains exactly why this new issue is actually the intended behavior.

It’s really helpful when the product owners clearly can’t make up their minds about what they want their apps to do.

DaemonSlayer , in I code with fear
Deebster ,
@Deebster@programming.dev avatar

We’re soon going to have to update the old emacs jokes to reference Neovim.

SkyeHarith ,

Then, we’d have to shift the jokes to which editors can run in emacs.

Gullible , in What if we added a social component like "Stories" to this calculator app?

My favorite is menstruation calendars with friend lists. My least favorite is when my gynecologist wants to hang out only a week out of the month.

xmunk ,

Please tell me this is a real world example because that’s hilariously awful.

Gullible ,

God, I hope it’s not real. But it’s the only way to sell more analytics from a period app and thus an eventuality.

nxdefiant , in “It’s not that hard”

That’s a load bearing “done right”.

BilboBargains , (edited ) in Not mocking cobol devs but yall are severely underpaid for keeping fintech alive

There is no relationship between what you earn and your skill level. If there were, theoretical physics would be a top paying field. The reason is, this is capitalism and we are horrible negotiators. If you want to earn top money in a technical field, the best you can do is insert yourself in a revenue stream. Roles that are critical to revenue like a billing system or associated with a intrinsically valuable commodity e.g. petrochemical, are more lucrative than other similarly skilled professions.

linuxdweeb , (edited )

It feels like blaming everything on capitalism is a Lemmy meme.

EDIT: smh look at all the capitalists smashing the downvote button as if it were a poor.

bugsmith ,
@bugsmith@programming.dev avatar

They’re not really blaming capitalism for anything though? They’re just explaining how it works, and they’re right. In a market driven economy, you are paid for having a skill or some knowledge based on the demand of that skill or knowledge and nothing else. In the same way as the quality of your house has little bearing on it’s value when compared to it’s location. Not a criticism of capitalism.

porgamrer , (edited )

SIGH. Capitalism is a fringe conspiracy theory. Next you’ll be claiming that billionaires earn their money through “capital gains” instead of salary, or that every corporation answers to a shadowy cabal of “shareholders” who only care about profit.

Well you won’t fool me. Unlike you, I have educated myself by reading newspapers.

wildginger ,

TIL repeating the definition of capitalism is blaming capitalism

BilboBargains ,

It wasn’t capitalists, it was the invisible hand of the market.

Mubelotix , in Programmer tries to explain binary search to the police
@Mubelotix@jlai.lu avatar

It would have taken 5 minutes at most

Agent641 ,

But thats 5 minutes of killin’ time they’ll never get back

Valmond ,

Yeah, even if it was from the beginning of dawn. No need to check out tape before the guy parked his bike.

heimchen ,

My Graphics card/ssd wouldn’t be able to handle the skipping of such big files

I_am_10_squirrels ,

On my site’s security nvr, it takes five minutes just to convince it that you want to search a particular camera

FALGSConaut , in Programmer tries to explain binary search to the police
@FALGSConaut@hexbear.net avatar

Their method actually does make sense, you just have to remember they aren’t cops to solve (boring) crimes like petty theft. Why get it done as efficiently as possible when you can milk it for hours of overtime? 12 hours of footage means 6+ hours of overtime even watching it at x2 speed, and it’s the kind of thing you can basically have going on in the background. Cops being willfully ignorant for their own benefit makes sense to me

mosiacmango ,

You know what’s even better than milking it for 6hrs of OT? Saying its “to hard” to the victim, going home and then lying about doing 6hrs of OT and getting paid anyway.

Cops lie about OT systemically. Its absolutely rampant. The only consequence they ever get is either a few hrs suspension without pay or fired, and most states are happy to hire them next door immediately so they can do it again.

DeltaTangoLima , in Debugging
@DeltaTangoLima@reddrefuge.com avatar

My biggest problem isn’t discovering my own crime. It’s trying to determine what my motive was at the time.

agent_flounder ,
@agent_flounder@lemmy.world avatar

“I plead insanity”

Gormadt OP ,
@Gormadt@lemmy.blahaj.zone avatar

Usually my motive is, “It’s 3am I’ll just put this temp placeholder here and fix it in the morning.”

Proceeds to not fix it due to forgetting by the morning

pm_me_your_quackers , in JavaScript's days are numbered
confusedbytheBasics , in Every Single Freaking Time

Select text to copy. Middle click to paste.

Don’t use Ctrl…

jmcs ,

deleted_by_author

  • Loading...
  • BakedGoods ,

    Don’t they ever test shit?

    NotSteve_ ,

    It’s less that it’s broken and more that it hasn’t been implemented yet AFAIK.

    nintendiator ,

    Same difference.

    Jean_Mich_Much ,
    @Jean_Mich_Much@jlai.lu avatar

    I’m using sway and I still can do that with urxvt

    30p87 ,

    To be fair, I would not expect someone using a wayland WM and urxvt to use the mouse to copy-paste.

    Jean_Mich_Much ,
    @Jean_Mich_Much@jlai.lu avatar

    I understand. I’m not using sway and urxvt as someone more skilled would do. I’ve Made this config some years ago to try but nowadays I’m not doing computer things anymore but I’ve kept this config because it’s light, fast and it’s simply working. So basically, today I’m just copying my passwords from pass in urxvt to my webmail in Firefox with my mouse for checking mail …

    Vilian ,

    what?, no

    Bazz ,

    I’m sorry but… it works on my machine

    Trobador ,

    I never realized that was why people used the primaey clipboard on Linux…

    But I’ll be frank : fuck that. I’d rather disable it entirely and stop having to deal with random text pasting in bad places when I’m using the touchpad

    confusedbytheBasics ,

    What wonky touchpad makes that a problem?

    You could use shift -insert instead I suppose.

    konata_izumi , in The legend

    That’s the “wizard” that installs all your software

    derpo ,

    Lmao you finally helped me understand a meme I saw the other day saying “installation” is a valid school of magic

    Gork ,

    It’s also a subtle nod to a character in The Elder Scrolls 4: Oblivion where a mages guild character states that “Restoration is a perfectly valid school of magic”

    kubica , in When your shower uses GitHub more than you

    Plot twist, all of those are project initial commits.

    CanadaPlus ,

    Oh no. I think just reading that idea gave me cancer.

    Keep your unfinished project ideas in a folder of shame like everyone else.

    kernelle ,

    How else do you suppose I store my API keys?

    narc0tic_bird ,

    My GitHub pretty much is my folder of shame.

    dosuser123456 ,
    @dosuser123456@lemmy.sdf.org avatar

    my github is a folder on my desktop called “do_not_open_dir_of_shame”

    annoyed_onion , in Old timers know
    @annoyed_onion@lemmy.world avatar

    Some of us still do 🙃

    dohpaz42 ,
    @dohpaz42@lemmy.world avatar

    If it ain’t broke, don’t fix it.

    fishpen0 ,

    One could argue the requirements have changed because the security and compliance part of the world finally caught up to modern software delivery concepts. Even the most dinosaur apps at compliant orgs are being dragged kicking and screaming into new CI/CD tools where applying governance and custody chains and permissions and approvals are all self documented automated hooks.

    Fades ,

    Anybody that actually professionally deals with this kind of thing understands just how wrong you are.

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