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.

Prunebutt , in Java Was The Future

Holy shit! Can that be any more drawn out and boring?

Aurenkin ,

Almost certainly

Blue_Morpho ,

It’s java. Extremely drawn out method names is it’s calling card.

Aurenkin ,

One might even say it’s an ExtremelyDrawnOutMethodNamesFactoryImpl

xmunk ,

… BeanAbstractBeanFactory

xep ,
Blue_Morpho ,

I’m unfamiliar with Mac programming but that looks normal. Do those function calls become absurdly long when used?

Here’s one I found on Google from the jdk:

InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter

Yes that’s not a typo, internalframe is repeated.

KairuByte ,

I mean, it’s dumb but I know what it is. It’s the painter for the internal frame’s title pane maximize button, which is in the internal frames title, which is in the internal frame.

It’s essentially a dumb way of writing: InternalFrame.Title.MaximizeButton.Painter

MajorHavoc ,

Lol. Two things can both be bad.

Valmond ,

And slow startup times.

abbadon420 ,

I think it was amusing. A relic of a simpler time

smeg ,

It was actually a pretty good Bond parody too!

abbadon420 ,

If you are or ever become a mother, you’ll be smegma

Toes , in How much firmware is initializing???

ERROR Insert Coin

lud , in We all have a “Jared” at our company #softwaredeveloper - YouTube

Well, you do you. But I doubt anyone would hire you. 🤷

CrystalRainwater , in This is my life now, until I finally understand Cmake.

Imo just use something else. If your build system is really simple just write the Makefiles yourself. If the build system tho needs to be really complex I would use something like meson or scons (Having worked on some gigantic fully GNU make build systems it can get pretty out of hand).

This is all a personal preference thing but cmake in my experience is really non intuitive and a pain to debug. I know it works for a lot of people but I definitely prefer particularly like scons since its python I have a bit easier time understanding what’s happening.

If you really need to use cmake, use a debugger like another user commented. There’s also a GNU make debugger in case you need to debug makefiles

jubilationtcornpone , in Mongo DB Is Web Scale

The best thing about MongoDB is that you can stop using it completely and switch to PostgreSQL, which will happily accept all the horrible JSON data you can cram into it.

jubilationtcornpone , in Mongo DB Is Web Scale

“…If there’s a problem writing your data, you’re fucked. Does that sound like a good design to you?”

“If that’s what they need to do to get those kick-ass benchmarks, then it’s a great design.”

Oh God. I am laughing so hard watching this.

WhiskyTangoFoxtrot , in Mongo DB Is Web Scale

Mongo only pawn in game of life.

thejml , in Mongo DB Is Web Scale

We still quote this video nearly daily at work. Luckily I don’t have to deal with mongodb anymore.

mikyopii , in How much firmware is initializing???
@mikyopii@programming.dev avatar

When you make a potentially system breaking change and forgot to make a snapshot of the VM beforehand…

MystikIncarnate ,

There’s always backups… Right?

… Right?

WhyJiffie ,

oh there is. from 3 years ago, and some

msage ,

And no one ever tried to restore it.

Happened to me as well, after a year I learned incremental DB backups were wrongly offset by GMT diff, so we were losing hours every time. Fun.

Luckily we never needed them.

And now we have Postgres with WAL archiving and I sleep so much better.

Buddahriffic ,

Someone set up a script to automatically create daily backups to tape. Unfortunately, it’s still the first tape that was put in there 3.5 years ago, every backup since that one filled up failed. It might as well have failed silently because everyone who received the email with the error message filtered them to a folder they generally ignored.

NastyNative , in How much firmware is initializing???

Tbh there is nothing more taxing on my mental health than doing maintenance on our production servers.

SaharaMaleikuhm , in How much firmware is initializing???

Never update, never reboot. Clearly the safest method. Tried and true.

naeap ,
@naeap@sopuli.xyz avatar

Never touch a running system
Until you have a inviting hole in your system

Nevertheless, I’m panicking every time I update my sever infrastructure…

bamfic ,

Found the debian user!

umbrella , in How much firmware is initializing???
@umbrella@lemmy.ml avatar

this week i sudo shutdown now our main service right at the end of the workday because i tought it was a local terminal.

not a bright move.

mox ,

Oops.

Since you’re using sudo, I suggest setting different passwords on production, remote, and personal systems. That way, you’ll get a password error before a tired/distracted command executes in the wrong terminal.

umbrella , (edited )
@umbrella@lemmy.ml avatar

i have different passwords but i type them so naturally it didnt even register.

“wrong password.”

“oh, i’m on the server, here’s the right password:”

“no wait”

naeap ,
@naeap@sopuli.xyz avatar

Happens to everyone

Just having a multitude of terminals open with a mix of test environment and (just for comparison) an open connection to the production servers…

We were at a fair/exhibition once and on the first day people working on an actual customer project asked us, if they could compare with our code.
Obviously they flashed the wrong PLC and we were stuck dead at the first hours of the exhibition.
I still think that this place was cursed, as we also had to do multiple re-soldering of some connections of our robot and the sherry on top was the system flash dying - where I had fucked up, because I just finished everything late at night and didn’t made a complete backup of everything.
But it seems, if luck runs out, you lose on all fronts.

At least I was able to restore everything in 20mins. Which must be some kind of record.
But I was shaking so much from the stress, that I couldn’t efficiently type anymore and was lucky to have a colleague to just calmly enter what I told him to and with that we’re able to get the show case up and running again.

Well, at least the beer afterwards tasted like the liquid of the gods

LiveLM ,

Best thing I did was change my shell prompt so I can easily tell when it isn’t my machine

umbrella ,
@umbrella@lemmy.ml avatar

you mean the user@machine:$ thing? how do you have yours?

Vilian ,

Change the color too

LiveLM ,

Correct!
I put a little Home icon on mine using NerdFonts.
If you are using ZSH or Fish you can do much more

savvywolf ,
@savvywolf@pawb.social avatar

There’s a package called molly-guard which will check to see if you are connected via ssh when you try to shut it down. If you are, it will ask you for the hostname of the system to make sure you’re shutting down the right one.

Very usefull program to just throw onto servers.

umbrella ,
@umbrella@lemmy.ml avatar

nice. got it installed to test it out

trolololol ,

We got the Trojan in, let’s move move move!

Trainguyrom ,

I was making after hours config changes on a pair of mostly-but-not-entirely redundant Cisco L3 switches which basically controlled the entire network at that location. While updating the running configs I mixed up which ssh session was which switch and accidentally gave both switches the same IP address, and before I noticed the error I copied the running config to the startup config.

Due to other limitations and the fact that these changes were to fix DNS issues (and therefore I couldn’t rely on DNS to save me) I ended up keeping sshing in by IP until I got the right switch and trying to make the change before my session died due to dropped packets from the mucked up network situation I had created. That easily added a couple of hours of cleanup to the maintainence I was doing

count_dongulus , in We all have a “Jared” at our company #softwaredeveloper - YouTube

Ew siloing

PenisDuckCuck9001 , in How much firmware is initializing???

That’s why you connect an arduino to the motherboards reset pin and load it with a program where it resets the system if it doesn’t receive an ACK signal over the usb connection every 10 minutes.

Eventually though the networking and apache stops working after around 150 days so you also have to make a script that resets the system after 30 minutes of not having network.

trolololol ,

Plot twist, reboot takes 11 minutes and you didn’t test for it

lnxtx , in How much firmware is initializing???
@lnxtx@feddit.nl avatar

Dell PowerEdge R620, I’m talking to you.

tooclose104 ,
@tooclose104@lemmy.ca avatar

When someone previously told a vrtx vm not to auto boot after power up and none of the remote access is working either… Both undocumented as well, of course. And your tired AF tech is statically configuring the wrong IP range on their laptop to manu because it’s been a long shutdown day and are also unfamiliar with the system in general (me). Good times, I figured it out though, but lots of sweating and swearing.

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