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.

Clbull , in Mcafee accidentally made users call the devs of SQLite and complain.

John McAfee would be spinning like a rotisserie chicken in his grave. Or at least he would be if McAfee Software hadn’t already turned to shit long before his death.

So the temp files are still identified, but anybody smart enough to figure out the code is also likely smart enough to know that calling the developer will not help get rid of the file.

Don’t underestimate the stupidity of your average person.

ruk_n_rul ,

Was gonna say, this wouldn’t happen on John’s watch. /S

cupcakezealot , in How programmers comment their code
@cupcakezealot@lemmy.blahaj.zone avatar

//@TODO document this function later

15 years later

Shoe ,

Have reviewed 16 year old code for a very well known company in the last week with this exact comment peppered throughout, alongside delightfully helpful comments like:

// do not delete or change this it just works

// TODO temporary fix added 12/09/11 to fix incident must be removed ASAP

// CAUTION this returns false here instead of true like it normally does, not sure why

// if true then matched to valid account not is true

aeronmelon , in Average CSS

“Some coders just want to watch the word burn get colored white and/or lime.”

And if you delete one or the other, or condense the code into a single command, the whole site breaks.

starman , in Mcafee accidentally made users call the devs of SQLite and complain.
@starman@programming.dev avatar

There’s a solution for this McAfee problem:

m.youtube.com/watch?v=bKgf5PaBzyg

Thcdenton , in Mcafee accidentally made users call the devs of SQLite and complain.
yetAnotherUser , in Mcafee accidentally made users call the devs of SQLite and complain.
onlinepersona , in Mcafee accidentally made users call the devs of SQLite and complain.

What a time it must’ve been, being able to publish your phone number online without fear. Now you give it to any website and it’s sold straight away to advertisers. Making it public would be a nightmare.

Anti Commercial-AI license

PlexSheep ,

Making it public is required by law at least in Germany, Impressumspflicht

Ullallulloo ,
@Ullallulloo@civilloquy.com avatar

I have my phone number on my personal website—never had any adverse consequences. In fact, the only two calls I’ve gotten have both been at my work number which isn’t on there somehow. One to ask a genuine question and one to give me 30 bucks in appreciation.

dohpaz42 ,
@dohpaz42@lemmy.world avatar

You don’t even need to make public yourself. City governments do it automatically, mostly if you’re a home owner. Other companies do it because they keep getting hacked.

Try it.

Go to your favorite search engine and type in your phone number (format it to look like a phone number). If you haven’t already gone through and had yourself removed from these types of sites, you’ll be appalled at what you find.

isVeryLoud , in How programmers comment their code

Dankpods screen cap?

Andromxda OP ,
@Andromxda@lemmy.dbzer0.com avatar

I don’t know. Anyway, DankPods is awesome, there’s a great Lemmy community dedicated to his channel: !dingusland

Venator ,

Looks like it’s from this old reddit post from 6 years ago: old.reddit.com/r/…/code_comments_be_like/

Maalus , in How programmers comment their code

How bad programmers comment their code. Good programmers don’t comment at all and let the code speak for itself, leaving commenting to some obscure and arcane implementation the coder left in after a week long binge on caffeine and gummy bears.

menas ,
magic_lobster_party ,

This is the truth. In my experience, the people who often writes comments are also writing the most incomprehensible code.

Comments are frequently getting outdated as well, so they’re not in great help understanding the code either.

CodexArcanum ,

I was rewriting some old code of mine and ended up stripping out the comments. I kept reading them instead of the code, which I had been changing, and they were irrelevant. (I added new comments back in, though a big reason to rewrite was to make the code more self-explanatory.)

Toribor ,
@Toribor@corndog.social avatar

“What does this section of code do?”

Run it and find out, coward.

Maalus ,

Nah. It should be obvious by just looking at it in code. If it isn’t, you haven’t extracted single purpose methods out of it yet.

magic_lobster_party ,

Just having clear and concise variable names often goes a long way. Avoid using abbreviations.

Breaking out the code into functions helps limit the number of variables within a scope, which makes it easier to name them.

BombOmOm ,
@BombOmOm@lemmy.world avatar

Code should absolutely speak for itself. But the occasional comment is still good to explain the ‘why’ of the code when the why isn’t very obvious, often due to a niche requirement. Also any time you have to break out a hack, that needs comments up the ass, what was the bug, what URL did you find the fix at, why does this hack work, etc etc. It’s very satisfying to go back and remove those hacks after they are no longer needed, often because the underlying technology fixed the bug that had to be hacked around.

Maalus ,

Yeah, hence me mentioning the arcane code nobody knows what it does.

NotMyOldRedditName ,

It definitely feels great when I get to remove the

//hack abc due to bug in library xyz version 1.4.5, issue tracker says it’s fixed in 1.5.0. - link

homesweethomeMrL , in Explaining software development methods by flying to Mars

Waterfall method: talk about building a rocket for 5 years, build the rocket, rocket needs to be totally redesigned because we forgot to put a place for people to go - massive change reqeust, build new version. Project Delay: 27 years

Agile Method: a rocket is not software - do not use Agile

Kanban - kanban is agile

Scrum - scrum . . is also Agile. What are you doing, go back and do the waterfall one

snek_boi , (edited )

Your comparison is interesting, but let’s consider some historical facts. The Apollo program, which successfully put humans on the moon, actually employed many principles we now associate with Agile methodologies.

Contrary to popular belief, it wasn’t a straightforward Waterfall process. NASA used frequent feedback (akin to daily Scrums), self-organizing teams, stable interfaces so that teams are an independent path to production, and iterative development cycles - core Agile practices. In fact, Mariana Mazzucato’s book Mission Economy provides fascinating insights into how the moon landing project incorporated elements remarkably similar to modern Agile approaches. Furthermore, here’s a NASA article detailing how Agile practices are used to send a rover to the moon: ntrs.nasa.gov/api/citations/…/20160006387.pdf?att…

While it’s true that building rockets isn’t identical to software development, the underlying principles of flexibility, collaboration, and rapid iteration proved crucial to the missions’ success. Programs like the Apollo program adapted constantly to new challenges, much like Agile teams do today.

Regarding Kanban and Scrum, you’re right that they fall under the Agile umbrella. However, each offers unique tools that can be valuable in different contexts, even outside of software.

Perhaps instead of dismissing Agile outright for hardware projects, we could explore how its principles might be adapted to improve complex engineering endeavors. After all, if it helped us reach the moon and, decades later, send rovers to it, it might have more applications than we initially assume.

Lichtblitz ,

Also, Kanban was invented in the 40s as a process for automotive production lines. That’s why it aligns so well with maintenance and operations projects in IT. It’s ridiculous how more and more people claim it comes from software development and would not fit hardware projects, when that’s the core use case of the methodology.

homesweethomeMrL ,

Good points all - I was just responding to a comic strip that I think meant to riff on the old, “what the customer wanted”, “how sales described it”, “what engineering proposed” etc. about project management but it just wasn’t finding the funny as it put the onus on Agile like isn’t this a silly discipline - well, no. :)

Ah, here it is:

https://lemmy.world/pictrs/image/3e48c833-c1e7-4e2c-bef7-27146b840ee5.jpeg

CanadaPlus ,

So does Agile even have a definition, or is it just an umbrella for every management method?

homesweethomeMrL ,

Agile methodology is a defined framework for software development success. It helps teams adapt and solve specific needs at a given time and prioritizes accelerated time to market and the value of user insights. Agile is based upon a set of four values and twelve principles laid out in the Manifesto for Agile Software development.

Via builtin.com/agile

CanadaPlus , (edited )

See, the thing with that is it’s just really aspirational. Anything could be Agile if you do it in the right spirit, if the manifesto is the whole thing.

Edit: I suppose what I should have asked is: “Is Agile really a system, or just a philosophy?”

homesweethomeMrL , (edited )

It’s both. The word “Agile” is used for either depending on context.

To that end, it’s several “systems” depending on if it’s used for straight-software development in a department, or manufacturing with technological components, or an entire enterprise using Agile concepts (like SAFe). Each one could be slightly different, and each one is some variation on the philosophy.

What it differs from mostly is a phase-gate approach typified by project management, where a plan is made, a budget secured, and a timeline set. All of those things are of course present in Agile, just in different ways and not one-after-the-other.

The big difference is project management has been around forever; Agile just over twenty years. So the former is what everybody knows by default, the latter sounds very “woo woo” to a lot of people. I think that’s really what the comic is trying to say - Agile stuff sounds silly.

snek_boi ,

Agile is indeed more of a mindset than a rigid system. In my recent experience helping a tabletop game team, we applied Agile principles to great effect. Rather than trying to perfect every aspect of the game at once, we focused on rapidly iterating the core mechanics based on player feedback. This allowed us to validate the fundamental concept quickly before investing time in peripheral elements like the looks of the game.

This approach embodies the Agile value of ‘working product over comprehensive documentation’ - or in our case, ‘playable game over polished components’. By prioritizing what matters most to players right now, we’re able to learn and adapt much more efficiently.

Agile thinking helps us stay flexible and responsive, whether we’re developing software or board games. It’s about delivering value incrementally and being ready to pivot based on real-world feedback.

calcopiritus , in More confusion for recruiters

Make it strongly statically typed. Dictionaries and lists must have all their items of the same type. For extra confusion.

MHanak ,

Even better: make it purely functional

dwraf_of_ignorance , (edited )
@dwraf_of_ignorance@programming.dev avatar

Even betterer: make it MOP(Monad Oriented Programming). IYou pray to a supreme being monad till your program works.

https://en.m.wikipedia.org/wiki/Monad_(philosophy)

sukhmel ,

And tuples should have the same types inside. And dictionary keys should have the same type as that dictionary’s values 😈

mexicancartel ,
  • require compilation
Wild_Mastic , (edited ) in How programmers comment their code

The code is self explanatory

/s needed apparently

menas ,

The words of the machine are sacred, Only the impure need explanation

The Flesh is Weak

snooggums ,
@snooggums@midwest.social avatar

It explains what it does, it does not confirm that it is what was intended.

shundi82 , in How programmers comment their code

/********** Setting up the fkuArray **********/

fkuArray = array(…

Hupf ,

Well, fku that array indeed.

muntedcrocodile , in More confusion for recruiters
@muntedcrocodile@lemm.ee avatar

With blackjack and hookers.

Redkey , (edited ) in I Have No Constructor, and I Must Initialize

Did you read all the way to the end of the article? I did.

At the very bottom of the piece, I found that the author had already expressed what I wanted to say quite well:

In my humble opinion, here’s the key takeaway: just write your own fucking constructors! You see all that nonsense? Almost completely avoidable if you had just written your own fucking constructors. Don’t let the compiler figure it out for you. You’re the one in control here.

The joke here isn’t C++. The joke is people who expect C++ to be as warm, fuzzy, and forgiving as JavaScript.

arendjr ,

Can’t it be both? :)

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