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.

stoy , in Programming: The Horror Game

Reminds me of when CodeBullet turned Pacman into a first person horror game

Hiro8811 , in Programming: The Horror Game

But I have an LCD display

pkill ,

non-AMOLED devices spreading misinfo by enabling dark mode by default on low battery and it’s consequences…

Hiro8811 ,

Low battery mode on…computers?

Omega_Jimes ,

Yeah. Some folk use portable computers on top of their laps. It’s weird :/

fsr1967 , in Programming: The Horror Game

laughs in IntelliJ multi cursor mode

Eonandahalf , (edited )
fsr1967 ,

If you have multiple similar lines, you can perform the same editing on them all at once.

Maalus ,

It does get its uses. Mostly editing similar lines, multiple methods at the same time, etc. Makes you look like a ninja too

executivechimp ,
@executivechimp@discuss.tchncs.de avatar

What’s the joke? VSCode has multi cursor.

fsr1967 ,

With multiple cursors, we can see more of the dungeon, uh, I mean code.

trustnoone , in Programming: The Horror Game

Does anyone remember when something like this actually happened? Maybe it’s the Mandela effect but U sweat at one stage a whole heap of sites were using black/dark mode to save the planet

SqueakyBeaver ,

I use it to save my eyeballs

jsalvador , in Devotion to duty
@jsalvador@programming.dev avatar

Classic XKCD. I’d pay for a Die Hard version like this.

fibojoly , in Programming: The Horror Game

Anti-peeking filter is looking dope! Nobody will be able to look at my screen anymore, me included!

Serpent7776 , in ifn't

I can actually define this in TCL:


<span style="color:#323232;">% proc ifn't {cond cmds} {if {!$cond} {uplevel $cmds}}
</span><span style="color:#323232;">% ifn't false {puts </span><span style="color:#0086b3;">12</span><span style="color:#323232;">}
</span><span style="color:#323232;">12
</span><span style="color:#323232;">% ifn't true {puts </span><span style="color:#0086b3;">12</span><span style="color:#323232;">}
</span><span style="color:#323232;">% 
</span>
BurningnnTree , in Programming: The Horror Game

It should play a jump scare sound when you get an exception

Feyr , in Programming: The Horror Game

You have been eaten by a grue

Venator , in Infinite Loop

Sometimes a fresh pair of eyes on a code base can reveal some opportunities for big improvements in maintainability 😜

MajorHavoc ,

Ahahhahhahha. Ha…ha. Ahem.

Sorry. The idea that any of the opportunities for improvement at my last “job A” code base might need “revealed” struck me as really funny.

Venator ,

Sometimes there’s an opportunity to delete it and start again 😜

tkk13909 ,

Looks like we found the hr employee! Get 'im Bois!

Venator ,

Lol, nah I’m a developer.

gregorum ,

Sometimes it takes a new dev coming in for management to give the greenlight for a major overhaul. It’s shitty, but it’s true.

tsonfeir ,
@tsonfeir@lemm.ee avatar

Opportunity is my managers favorite word. I even got him an ink stamp that said “certified opportunity”

MonkderZweite ,

In that Xamarin mess? The last handover only made things worse.

aksdb ,

Also new people are still motivated to change stuff. They are not yet worn down by bureaucracy.

alcoholicorn , in Infinite Loop

Meanwhile, Dev of company C driving off a bridge, getting laid off after modernizing the 90s era codebase.

marcos , in Infinite Loop

As long as their salary keeps increasing, I’d say go for it!

snooggums ,
@snooggums@kbin.social avatar

My first thought!

AnAngryAlpaca ,

You only hurt yourself down the line. My last job had not improved their own product, processes, tools or frameworks, so everything was still stuck in the 90s. Their product was build on an discontinued an proprietary database and server system you never heard about, jQuery UI from 10 years ago and other BS.

However if you don’t upskill yourself in this situation you will be unemployable in the future, because all other employers demand modern technologies, git, docker, unit testing etc., which I was yelled at in meetings for suggesting it.

Appoxo ,
@Appoxo@lemmy.dbzer0.com avatar

git is considered modern?

I don’t mean to bash git but I’d have assumed git is utilized in some capacity in every dev environment.

AnAngryAlpaca ,

The Lead Dev/team Lead was quite arrogant and in his own mind the worlds best developer who had all the answers. If some technology or software was not written by him or already existed in the 90s it was “useless” and not fit for the company (without him having looked at it or the docs). If asked why we would not use X which was out for years, well maintained, had no critical bugs would solve problem Z we where having, he would reply “because i said so” and insist in writing out own variant - which ended up having 10% of the features, 10 times the bugs, terrible UI and would take months to develop.

When support repeatetly told him that users had issues with feature X because the only error message on a 10 fields forms page was “Error”, he would respond that this is a user problem, the end user is clearly stupid (despide used in a field where you need to study for years) and that support must hold training sessions so the users can “learn” how to use his product.

As such, the company would reject git and instead email each other files and changes.

Each meeting felt like living inside a Dilbert cartoon.

Appoxo ,
@Appoxo@lemmy.dbzer0.com avatar

Sounds painful…

MonkderZweite ,

And he can still do that, because? Friend in management or what?

fsr1967 ,

There are other version control systems out there, and have been for decades. So yes, I would consider git to be modern.

ChickenLadyLovesLife ,

It’s more modern than Visual Source Safe, that’s for sure. I kind of miss the days of coworkers leaving for two-week vacations and forgetting to check their shit in first. It was a built-in excuse for the rest of us to not do anything and blame it all on vacation boy.

SolarMech ,

Git wasn’t used all that much in the 2000s. As far as I know it became popular in the 2010s (though it was always a thing in some circles I think) and then just supplanted almost everything else.

Also keep in mind some shops tend to follow larger tech companies (microsoft, etc.) and their product offering. So even new products might not have been on git until MS went in that direction.

oce ,
@oce@jlai.lu avatar

It was released in 2005.

SolarMech ,

Takes time to become ubiquitous.

oce ,
@oce@jlai.lu avatar

For sure, I wanted to remind the date because it makes it obvious that it couldn’t be much used in the 2000’, even its second half is too short.

vaknin ,

I don’t mean to bash git

Appoxo ,
@Appoxo@lemmy.dbzer0.com avatar

pun wasnt intented.
But now I kinda have to commit…

xlash123 ,
@xlash123@sh.itjust.works avatar

I prefer to zsh git

xlash123 ,
@xlash123@sh.itjust.works avatar

I prefer to zsh git

brezelradar ,
@brezelradar@feddit.de avatar

all other employers demand modern technologies

There are a lot of employers that’ll throw good money at you for maintaining and extending their outdated crap. Have you ever considered learning COBOL?

AnAngryAlpaca , (edited )

No wonder COBOL programmers are paid a lot, because what would be a 1-liner for “hello world” in other languages looks like this in Cobol:


<span style="color:#323232;">IDENTIFICATION DIVISION.
</span><span style="color:#323232;">PROGRAM-ID. IDSAMPLE.
</span><span style="color:#323232;">ENVIRONMENT DIVISION.
</span><span style="color:#323232;">PROCEDURE DIVISION.
</span><span style="color:#323232;">    DISPLAY 'HELLO WORLD'.
</span><span style="color:#323232;">    STOP RUN.
</span>

This is already $6000 worth of code right there!

JohnnyCanuck ,
@JohnnyCanuck@lemmy.ca avatar

I wonder how much open source COBOL is out there for LLMs to harvest.

CanadaPlus ,

The thing people always overlook is that these legacy systems are only still running because they’re super important. Nobody’s hiring a junior COBOL dev to maintain NORAD, and hopefully nobody’s contemplating putting ChatGPT in charge either.

The move if you want this kind of job is to learn a language that’s not quite a dinosaur yet, and have 20 years experience in 20 years. Perl or PHP maybe.

prof , in Infinite Loop
@prof@infosec.pub avatar

Recently switched jobs from maintaining a 15 year old Windows Forms .NET Framework legacy codebase.

At the new job we stick to Clean Architecture, use unit and integration tests, have a code generation tool, actually make nice use of generics and use dependency injection. Also agile processes, automatic build tools, whatever. The difference is night and day and I’m so glad my ex boss fired me because I told him he’s an asshole and his codebase is shit.

LeafOnTheWind ,

My first job out of college I have been able to see a steady improvement in the codebase. A little while ago I had to go back to an old tag and was horrified with what it used to be and impressed how much it improved.

jubilationtcornpone , in Infinite Loop

Project A: Has 6 different implementations of the same complex business logic.

Project B: Has one implementation of the complex business logic… But it’s ALL in one function with 17 arguments and 1288 lines of code.

“The toast always lands the buttered side down.”

QuazarOmega ,

Project B is just called neural network

CanadaPlus ,

Actually, I bet you could implement that in less. You should be able to legibly get several weights in one line.

QuazarOmega ,

You have my interest! (Mainly because I don’t know the first thing about implementing neutral networks)

CanadaPlus , (edited )

At the simplest, it takes in a vector of floating-point numbers, multiplies them with other similar vectors (the “weights”), sums each one, applies a RELU* the the result, and then uses those values as a vector for another layer with it’s own weights (or gives output). The magic is in the weights.

This operation is a simple matrix-by-vector product followed by pairwise RELU, if you know what that means.

In Haskell, something like:

layer layerInput layerWeights = map relu $ map sum $ map (zipWith (*) layerInput) layerWeights

foldl layer modelInput modelWeights

Where modelWeights is [[[Float]]], and so layer has type [Float] -> [[Float]] -> [Float].

  • RELU: if i>0 then i else 0. It could also be another nonlinear function, but RELU is obviously fast and works about as well as anything else. There’s interesting theoretical work on certain really weird functions, though.

Less simple, it might have a set pattern of zero weights which can be ignored, allowing fast implementation with a bunch of smaller vectors, or have pairwise multiplication steps, like in the Transformer. Aaand that’s about it, all the rest is stuff that was figured out by trail and error like encoding, and the math behind how to train the weights. Now you know.

Assuming you use hex values for 32-bit weights, you could write a line with 4 no problem:

wgt35 = [0x1234FCAB, 0x1234FCAB, 0x1234FCAB, 0x1234FCAB];

And, you can sometimes get away with half-precision floats.

QuazarOmega ,

That’s cool, though honestly I haven’t fully understood, but that’s probably because I don’t know Haskell, that line looked like complete gibberish to me lol. At least I think I got the gist of things on a high level, I’m always curious to understand but never dare to dive deep (holds self from making deep learning joke). Much appriciated btw!

CanadaPlus ,

Yeah, maybe somebody can translate for you. I considered using something else, but it was already long and I didn’t feel like writing out multiple loops.

No worries. It’s neat how much such a comparatively simple concept can do, with enough data to work from. Circa-2010 I thought it would never work, lol.

QuazarOmega ,

Ikr! It still sounds so incredible to me

TheFerrango ,

Only 1288 lines? Can I raise you a 6000+ lines stored procedure that calls to multiple different sql functions that each implements a slightly different variation of the same logic?

Miaou ,

Are there triggers in the sql database? It’s too easy otherwise

TheFerrango ,

There are on delete triggers to fix circular dependencies when deleting rows, triggers on update and triggers on row creation!

MajorHavoc ,
martinb ,

Feels like my old job.

magic_lobster_party , in Infinite Loop

I left a company when management decided to discontinue a product right after we finally made its code more maintainable.

Had a look at the product that would replace it, and it was a bigger mess from what we started with.

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