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.

gandalf_der_12te , in Naming is hard

As the saying goes, there’s only two hard problems in IT:

Caching, naming things, and off by one errors.

Kojichan , in SCRUM: An Honest Ad
@Kojichan@lemmy.world avatar

I’m glad my company speaks a different language than English, and can’t use all the word soup completely. That said, my company is also wondering why my timesheets never add up to the entire day because always in meetings, scrum, or “can we jump on video chat for a sec because it’s easier to explain vocally than in writing”… And that “sec” turns into a 30 minute tutorial I have to give.

isVeryLoud ,

We translated the agile word soup to French here :(

Kojichan ,
@Kojichan@lemmy.world avatar

Ouch… My company speaks French as well. :( I get to hear the buzzwords in English.

My condolences, friend.

humbletightband , in Corporate America is Just Office Space in Real Life

Sounds so painful. We’re integrating AI right N now instead of doing what customers asked us to do or instead of fixing a ton of bugs we have.

I hate corporate

Agent641 , in new preference war just dropped

I just name my variables a, b, c etc. If I have more than 26 variables in any given function, I name them aa, ab, ac, etc.

gandalf_der_12te OP ,

you’re on a highway to hell.

fibojoly , in Happy World Turtle Day! One of my favourite turtle-releated software development things is that Firefox console will show a little turtle icon on slow requests. Picture also related.

If you like turtles and programming, you might enjoy hearing about LOGO.
Back in the day, that was the first programming language I was taught. Years and years before I’d learn C or ASM.
You’d give instructions to a “turtle”, moving it about the screen, drawing as it did so. It was a magical experience for 9yo me.

JackGreenEarth ,

I did something very similar with python’s import turtle

embed_me ,
@embed_me@programming.dev avatar

Thank you! I had been picking my memory for this for so long. We too were taught LOGO in school in the early 2000s. I had forgotten the name, I found kturtle after searching about but couldn’t recall what the original program was called.

fibojoly ,

I was taught it around 1988, most likely on a Thomson MO5 ? Or maybe it was a TO9. It was a while ago :,) I just remember the fascination watching the little pixels color themselves and experimenting with the instructions to see what we could come up with.

Gondolaaaa , in What it's like to be a developer in 2024

I use DDG at home, or Bing at work, for most topics they auto generate cards that give you the answer from the get go like 70% of the time

SleveMcDichael , in Perpetual Motion finally achieved!

C++ is pretty alright, IMO, but the syntax is kinda clunky though, I think probably because of some historical baggage.

nintendiator ,

That and the weird aversion to introducing new or useful keywords, or even extending the symbol set that doesn’t even use full ASCII.

lambalicious ,

Word! The whole snafu with co_routines has been quite the laughable show. It would have been trivially sortable if C++ did something like what PHP did, using a symbol to absolutely disambiguate what is a variable and what is not. That way eg.: await is a keyword, $await is a variable (perhaps a functor).

To make it even better, $ is already unused in C++!

suy ,

Correct. Backwards compatibility is both its biggest asset and its bigger problem.

In syntax alone, you can check what Herb Sutter is doing with cppfront. Specifically, the wiki page on the postfix operators is quite enlightening. It shows some interesting examples of how by making everything a postfix operator you drop the need of -> and the duality of pre/post increment and decrement operators.

corroded , in Perpetual Motion finally achieved!

C++ is just as “safe” as Rust if you use modern language features (std::unique_ptr, for instance). I would argue that anyone who says Rust provides better memory safety than C++ most likely is not familiar with modern C++ and still sees the language as “C with classes.”

firelizzard ,
@firelizzard@programming.dev avatar

As someone whose first language was C, I plan to never use C++ for anything more than programming an Arduino precisely because of the multitude of pointer types. A pointer should just be a pointer. Having five hundred different flavors of pointers is confusing as fuck.

Redkey ,

That was my first take as well, coming back to C++ in recent years after a long hiatus. But once I really got into it I realized that those pointer types still exist (conceptually) in C, but they’re undeclared and mostly unmanaged by the compiler. The little bit of automagic management that does happen is hidden from the programmer.

I feel like most of the complex overhead in modern C++ is actually just explaining in extra detail about what you think is happening. Where a C compiler would make your code work in any way possible, which may or may not be what you intended, a C++ compiler will kick out errors and let you know where you got it wrong. I think it may be a bit like JavaScript vs TypeScript: the issues were always there, we just introduced mechanisms to point them out.

You’re also mostly free to use those C-style pointers in C++. It’s just generally considered bad practice.

Traister101 ,

Smart pointers model ownership. Instead of (maybe) a comment telling you if you have to free/delete a returned pointer this information is encoded into the type itself. But that’s not all, this special type even handles the whole deleting part once it goes away.

Since they model ownership you should only use them when ownership should be expressed. Namely something that returns a pointer to a newly allocated thing should be a std::unique_ptr because the Callie has ownership of that memory. If they want to share it (multiple ownership of the object) there’s a cheap conversion to std::shared_ptr.

How about a function that takes in an object cause it wants to look at it? Well that doesn’t have anything to do with ownership so make it a raw pointer, or better yet a reference to avoid nullability.

What about when you’ve got a member function that wants to return a pointer to some memory the object owns? You guessed it baby raw pointer (or again reference if it’ll never be null).

RustyWizard ,

I would argue that anyone who says C++ provides a similar level of memory safety as rust hasn’t done serious development work in either language.

maniel , in A real chicken-and-egg situation

i guess “beaver” would’ve been kinda awkward with today’s connotations with shaving the beaver etc.

tsonfeir ,
@tsonfeir@lemm.ee avatar

We shave Go?

maniel ,

You can shave what you want, it’s your life

SqueakyBeaver ,

wait why am I being shaved? /j

umbrella , in Companies are not your friend
@umbrella@lemmy.ml avatar

donate to your favorite open source project instead!

tsonfeir , in Let's do micro service
@tsonfeir@lemm.ee avatar

In comparison with… and examples?

tatterdemalion , in Untagging images from AWS ECR (without deleting be like
@tatterdemalion@programming.dev avatar

AWS CLI is trash compared to gcloud in general.

deegeese ,

The Wal-Mart of cloud providers.

0x0 OP , in Senior dev be like...

Of course there’s no point in trying to rationalize this 'cos these people use meetings to try justify their usefulness to the company (HR does the same with random activities), so you end up drawing red lines with invisible ink

RGB3x3 ,

I work in the government and I honestly don’t know when anyone does any real work. It’s meeting after meeting overlapping other meetings. All week.

How does stuff get done, seriously?

brygphilomena , in It's Friday at 5pm. You're all set to go home and relax then your monitoring dashboard goes like this....

Assign to maintenance. I don’t fix fences.

ptz OP ,
@ptz@dubvee.org avatar

Love it.

gsx , in [Request] Looking for resources on terrible algorithms, architecture, and design
  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • lifeLocal
  • goranko
  • All magazines