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.

henfredemars , in The easiest problem

I worked with a developer who insisted on using the shortest names possible. God I hated debugging his code.

I’m talking variable names like AAxynj. Everything looking like matrix math.

ray ,

At a previous job I had to work with an old database where all the tables and columns had 6-character names

wfh ,

Same. Old DB2 base from the 80’s that was migrated to Oracle in the 90’s then to Postgres in the 2010’s.

And the people there know all the column names by heart 😅

xmunk ,

I vomit whenever I have to read one letter alias SQL. And then… I dealias it.

nogooduser ,

I don’t understand why people think that it’s acceptable.

As developers, we’ve had it drummed into us from day one that variable names are important and shouldn’t be one or two letters.

Yet developers deliberately alias an easy to read table name such as “customer” into “c” because that’s the first letter of the table. I’m sure that it’s more work to do that with auto completion meaning that you don’t even need to type out “customer”.

xmunk ,

Especially when you also have company and county tables. It forces people to look up what the c is aliased to before beginning to comprehend what you’re doing.

redcalcium ,

Ah, must’ve been a fortran developer. I swear they have this ability to make the shortest yet the least memorable variable names. E.g. was the variable called APFLWS or APFLWD? Impossible to remember without going back and forth to recheck the definition. Autocomplete won’t help you because both variables exist.

mkwt ,

And you can write more than six characters, but only the first six are recognized. So APFLWSAC and APFLWSAF are really the same variable.

And without namespaces, company policy reserves the first two characters for module prefix and Hungarian notation.

henfredemars ,

He did write some Fortran in his past! What made you think it was Fortran influence?

geogle ,
@geogle@lemmy.world avatar

72 characters per line/card.

Templa ,

I’d say because fortran is often used for calculations such as numerical analysis where you have x, y and z for example.

I have written fortran code in the past and it was mainly for that.

redcalcium ,

Your first few programming languages usually influence you the most for the rest of your career.

HaywardT ,

And the rest of you are COBOL programmers.

dan ,
@dan@upvote.au avatar

shortest names possible

This film from 1975 is still relevant today: www.youtube.com/watch?v=7hdJQkn8rtA

Vilian , in Hand over your javascript, we have you surrounded

this photo screams brasil more than football and samba

owsei OP ,

I’ll take this as a complement mano

ICastFist ,
@ICastFist@programming.dev avatar

Eu não sou seu mano, parça

owsei OP ,

Eu não sou seu parça, camarada

marcos ,

São Paulo.

Now, why a crane-renting company is visiting a house eludes me.

NakariLexfortaine ,

Brazilian remake of What’s Eating Gilbert Grape?

owsei OP ,

the house was stuck

owenfromcanada , in The easiest problem
@owenfromcanada@lemmy.world avatar

Nah, I name all my variables after my homies.

int dave = 0;

rufus ,

does dave know he’s a zero?

codfishjoe ,

His best friends index starts at 0

owenfromcanada ,
@owenfromcanada@lemmy.world avatar

In zero-based indexing, zero is #1.

imPastaSyndrome ,

Dave was number one!

XTL ,

But they had to be enterprise, so he became a number one factory.

smeg ,

Ah, the XCOM approach. Now you look after those variables and get sad when you have to delete them.

some_guy , in The easiest problem

Why is no one giving credit to my friend n?!

RandomVideos , in The easiest problem

Since a lot of the english words i know i learned from minecraft, in a farming simulator i named tilled soil"hoed"

I had multiple variables like int isHoed

velvetThunder ,

There’s some hoed in this house If you see 'em, point 'em out

MonkderDritte , in The easiest problem

No, that’s math.

hedy , in New developer

My friends type up code in Google Docs to do programming homework on the phone while on the bus.

nifty ,
@nifty@lemmy.world avatar

Why not a colab? I think you can use it on mobile

ICastFist ,
@ICastFist@programming.dev avatar

I’ve tried progamming a bit on the phone, but fuck me with a pineapple, that’s an exercise in patience, all the things to make typing on a screen easier will work against you

Mesa ,
@Mesa@programming.dev avatar

Const goo =

backspace backspace

const Foo

backspace

const foo = obj. Val;.

*deep breaths

Daxtron2 , in That Nim Flashbacks

Nah Hanoi was easy stuff, first year. Definitely more traumatizing practice problems.

Alexstarfire ,

Yea, get back to me when you get to parallel programming.

sukhmel ,

Tis’ not hard, just add some sleeps to make sure other thread reads data before it is destroyed 🌚

xmunk ,

Or even just try to understand pthreads.

intensely_human ,

You’re doing it again

FierySpectre ,

Writing kernels for parallel execution with OPENCL gives me flashbacks every time I remember them

sukhmel ,

Hanoi […] practice problems.

Like you come to the exam and there’s a 64 piece Tower of Hanoi you need to solve manually to pass the exam

JohnEdwa ,

Assuming 1 second per swap, a 64 disk tower of hanoi would take 585 billion years to solve - it has 2^64 -1 swaps.

sukhmel ,

And that makes It good enough for an exam

ICastFist ,
@ICastFist@programming.dev avatar

Calm down, satan

Mikufan , in Chuckles, I'm in Danger

It won’t lol.

abbadon420 ,

It’s a nifty tool though, which is better than my colleague, who is just a tool.

Mikufan ,

Yeah, shure but it can’t actually program, it can give some code pieces and help find errors but so can a informed internet search as well.

If your colleague is worse… Thats a different story.

alphacyberranger OP ,
@alphacyberranger@sh.itjust.works avatar

I too work with a lot of blunt tools on a daily basis

rikudou ,

It will, eventually. Not this iteration of “AI”, that one’s dumb as hell, but eventually it will.

Mikufan ,

Maybe, but we are very far away from that level.

pohart ,

Idk, I thought we were pretty far from the current level of conversation.

FizzyOrange ,

Yeah I kind of agree but I also think when it gets to that point we’ll have much bigger problems than programmers losing their jobs. Like, most of society losing their jobs.

rikudou ,

True, we’ll be probably among the last to lose our jobs.

jaybone ,

Like who do they think is going to fix bugs in the AI? The AI itself?

ICastFist ,
@ICastFist@programming.dev avatar

Obviously! Do you think the corporate overlords would entrust AI code to filthy human programmers?

masinko ,

Kind of will. There are already templates on demand for things like generating unit tests as you code. They’re pretty robust already, and have aside from a few things (or edge cases), I don’t have to do much code refactoring or fixing them.

They already save me several hours a week from manually setting up full ones. Haven’t delved into other stuff they can do, but I’m sure it would only be more useful with time.

I can very easily see companies looking at the time save and thinking “we can downsize”.

Mikufan ,

For openly available programs that might be true, but a programmer isn’t just writing code, “ai” is very bad at identifying and solving problems for example and Chatgpt is even getting worse at math. And internal programming languages, or, programs not meant for public eyes won’t be put in a AI in general.

They are a tool, and will stay a tool hopefully forever, they are supposed to make shit easier.

And those mentioned companies have already done that and fallen face first into shit. And rehired those that didn’t get a better job… In general its a shit idea to replace people with AI, cause its bad.

Also “ais” are currently in a feedback loop and basically make themselves brain dead over time. Wich is for example one of the reasons why GPT and others get worse at math. Image generators are more obvious regarding that, when you feed the ai ai images, the fingers get worse.

KindaABigDyl ,
@KindaABigDyl@programming.dev avatar

and thinking “we can downsize”

And then they’ll go out of business

jaybone ,

And the execs who made these stupid decisions get their golden parachutes and everyone else has been laid off.

Malix , in The easiest problem
@Malix@sopuli.xyz avatar

installing operating system: 15 minutes, give or take.

give a name to the computer: 45 minutes

SturgiesYrFase ,
@SturgiesYrFase@lemmy.ml avatar

I’ve got that shit on lockdown man.
I name all my devices “Fuck0ff” followed by a 3 letter descriptor of what it is. E.g. - my windows install is Fuck0ffDTW for Desktop Windows, my Garuda install is Fuck0ffDTG for Desktop Garuda(it’s a flavour of Arch, btw)

OfficerBribe ,

What if you would have 2 devices of same type with same OS or just with OS that starts with same letter? Will you use numbers, if yes, how much leading zeroes if any you will use? If you don’t use numbers, will you add a room name? But what if there are 2 devices with same OS in the same room?

SturgiesYrFase ,
@SturgiesYrFase@lemmy.ml avatar

Luckily I’m not responsible for naming my wife’s devices, otherwise the whole scheme would be up shit creak. As it stands I have a dual-boot desktop, a daily laptop, a surface pro4, and an old laptop running Ubuntu server for various self hosted stuff. I’ve managed to just use 3 letters, I assume as I amass more tech I’ll need to start adding numbers, if I have to label for rooms I’ll have more than a data hording problem.

gandalf_der_12te , in The easiest problem

How to write spaghetti code:

Luisp , in Any Volunteers

I would volunteer… for money

yetAnotherUser ,

“Sure, we’ll pay you 2% of the profits”

Honytawk ,

As long as it is in advance it is okay.

How big did you say your sales projection was?

yetAnotherUser ,

“Sorry, but we can’t pay in advance, you’ll have to put the work in first”

recursive_recursion , in Any Volunteers
@recursive_recursion@programming.dev avatar

As a software dev who’s participated in a couple of game jams and several group projects,

  • I’d say that anyone that claims to be a designer but has no programming experience is typically incompatible with any project
    • and it’s due to the disconnect of understanding just how difficult it can be to translate certain design tasks into functional code
Xavienth ,

Not to mention that an idea is not a game, not even conceptually. There’s a reason it’s called game design and not game turn-idea-into-code.

pivot_root ,

It’s like scope creep, but where the demanding client is also your boss/coworker.

Guru_Insights99 ,

Hey there, champ! I appreciate your enthusiasm, but I’m afraid I have to disagree with your statement. Game development with effort or coding skills? Today I’m gonna show you how to do it without any effort, it’s like becoming an astronaut by watching the big bang theory!

Let me break it down for you. You see, creating a video game is as easy as pie. Typically, you would use lines of code. But what if I told you that you can gather a bunch of random images from the internet, throw them into a a computer, and voila! You’ve got yourself the next “Call of Duty” blockbuster. Going by standards nowadays people will be lining up to buy your game, guaranteed!

Who needs coding when you can just use a magic wand and poof your game is magically coded? Just like that! Forget the coding aspect of it, you can make a game effortless! How do I do this you ask me? Well, If you really want to master the art of game development without lifting a finger, I have the perfect solution for you. Introducing my revolutionary course: “Effortless Game Development Masterclass”! In this course, you’ll learn the ancient secrets of game creation without any pesky coding skills or effort required. You’ll be churning out awards winning games in no time, all while lounging on your couch and eating Cheetos. 😎😎👊 Dm me if you want more info for the affiliate link

recursive_recursion ,
@recursive_recursion@programming.dev avatar

that’s real cringe dude

might I suggest adding /s at the end,

  • not sure if that would help as reading that was painful
yetAnotherUser ,

You have to put /s in the end, because people in this day and age can no longer recognize sarcasm, probably because we all spend way too much time on the Internet.

manefraim ,
wahming ,

That’s not sarcasm, that’s satire

yetAnotherUser ,

Is it? Didn’t know about it until now…

AVincentInSpace ,

buys masterclass

Okay so step one is you’re gonna download Scratch

MonkeMischief ,

You absolutely nailed it LOL. Those flashy courses with absurd prices and “funnel techniques” prey on idea-people who are scared of code like whale sharks on plankton.

SuperSpruce , in Any Volunteers

I’ve had game and software ideas swirling around in my brain, but for the longest time I couldn’t program them. But now, I have enough knowledge to build parts of my grand deckbuilding game idea: An arcade style deckbuilding game with strong meta-progression. It’s playable at superspruce.org.

As for some other ideas, including the simple idea of a weighted shuffle music playlist where each song has its own weight, they are still currently out of reach, mostly due to trying to access the filesystem and whatnot. Better than a month ago, where within the last month I found out how to make the browser play music

mynameisigglepiggle ,

Have you considered making your deck building game an mmorpg?

cordlesslamp ,

But only if there’s multiple endings and my choices matter.

pojankolli ,

Cool game but it is missing a lot of features, most importantly tutorial and art.

On the technical side: Do you self-host or in the cloud?

SuperSpruce ,

It’s hosted on GitHub, but I really want to self host one day.

What other features are missing? I’m still pretty much a beginner so it can be very tricky to implement things.

lars , in The easiest problem

An important professor constantly and frustratingly said

we can call this variable whatever we want, so we’ll call it Fred

Made me panic and irate and focus on the wrong part of the problem. Every. Single. Time.

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