programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

agent_flounder, in Need a rust version too.
@agent_flounder@lemmy.world avatar

Omg Lisp. I’m dying. Our object oriented programming class in college involved programming in Scheme. This was… a while ago.

Saving this forever.

lastunusedusername2,

I did the same thing in Scheme. It was mine expanding.

Lawyerator,

Yup, Scheme was the only programming language taught in our comp-sci department so we could “learn how to learn.” Two years and a broken parentheses button later, and I switched to being a theatre major.

Today, my legal career stands as a testament to the pointlessness of a declared major.

BilboBargains, (edited ) in Not mocking cobol devs but yall are severely underpaid for keeping fintech alive

There is no relationship between what you earn and your skill level. If there were, theoretical physics would be a top paying field. The reason is, this is capitalism and we are horrible negotiators. If you want to earn top money in a technical field, the best you can do is insert yourself in a revenue stream. Roles that are critical to revenue like a billing system or associated with a intrinsically valuable commodity e.g. petrochemical, are more lucrative than other similarly skilled professions.

linuxdweeb, (edited )

It feels like blaming everything on capitalism is a Lemmy meme.

EDIT: smh look at all the capitalists smashing the downvote button as if it were a poor.

wildginger,

TIL repeating the definition of capitalism is blaming capitalism

BilboBargains,

It wasn’t capitalists, it was the invisible hand of the market.

bugsmith,

They’re not really blaming capitalism for anything though? They’re just explaining how it works, and they’re right. In a market driven economy, you are paid for having a skill or some knowledge based on the demand of that skill or knowledge and nothing else. In the same way as the quality of your house has little bearing on it’s value when compared to it’s location. Not a criticism of capitalism.

porgamrer, (edited )

SIGH. Capitalism is a fringe conspiracy theory. Next you’ll be claiming that billionaires earn their money through “capital gains” instead of salary, or that every corporation answers to a shadowy cabal of “shareholders” who only care about profit.

Well you won’t fool me. Unlike you, I have educated myself by reading newspapers.

BilboBargains, in Not mocking cobol devs but yall are severely underpaid for keeping fintech alive

Is the collective noun for COBOL programmers, cobblers?

ma11en,

I would have gone with COBOLLICKERS

BilboBargains,

You definitely don’t want a blunt force trauma to this delicate area

marcos, in isEven API

Oh, bummer, my number isn’t supported by the free version:

api.isevenapi.xyz/…/87643895874857367499567729846…

fckreddit,

Easy workaround, just test the last digit. If it is even, the entire number is even, else odd.

marcos,

That’s preposterous! Next time you’ll tell me the language I’m using has a builtin operator that test if a number can be divided by another!

aaaa,

That’s not even supported by the enterprise version. You’re going to need a special agreement with the iseven people to support numbers like that

captainjaneway,
@captainjaneway@lemmy.world avatar

Just divide that number by two until it’s small enough to make the request under the free version.

taaz,

pretty sure that has to be against their TOS

/s

mormegil,
@mormegil@programming.dev avatar

That’s against the terms of math :-)

BaardFigur, in Not mocking cobol devs but yall are severely underpaid for keeping fintech alive

Can I get a job at wherever you’re working? Im earning 60k $ a year

elbarto777,

$60K doing what and where?

CanadaPlus,

Probably anything outside the US.

elbarto777, (edited )

That’s what I was thinking. I moved to Europe and my salary was halved. I’m making 70K euros. After three years of scratching this “living in Europe” itch, I’m ready to move back to the U.S. An entry level developer should be making no less than 90K in the land of the free.

CanadaPlus,

Yep. Few people where I live envy the US, but if you’re a developer the money is no joke. You have to expect that eventually all those big American tech companies will start offshoring, given the crazy money they could save.

elbarto777,

That’s what I tell fellow devs around here. Try the U.S. for one or two years, especially if they offer shares. Then move back. Profit!

dan, (edited )
@dan@upvote.au avatar

I moved from Australia to the USA since salaries for developers are so much higher here. I live in Silicon Valley which helps too. If you’re a senior developer (say 5+ years of experience) then a lot of the large companies here pay $200-300k/year salary plus $100-200k/year in company stock plus a bonus that’s 10-20% of salary if you get a good performance review.

Doxatek,

Ugh. Holy shit I went into the wrong field 🥲 I was just a kid. I didn’t know better

dan, (edited )
@dan@upvote.au avatar

I got lucky since I’ve been into computers and programming since I was 8 years old (late 90s). My first job when I was at school was a part-time developer at a tiny IT company that did consulting work. Since then, all my jobs have been software development jobs.

The fact that it pays well in places like Silicon Valley was a great bonus. I moved here 10 years ago (when I was 23) after I got a job offer, and the starting salary was literally double what I was getting paid in Australia at the time.

The job changes a bit as you get more senior - there’s more mentoring of junior devs, project planning, deciding what your team should focus on, etc. I still spend a lot of my time writing code though, and still enjoy it. :)

There’s some downsides to living in Silicon Valley. A lot of stuff is expensive (that applies for California in general, but especially here). Housing is extremely expensive too.

dafo,

€70k as a developer? That’s a middled aged EM salary here in Sweden

elbarto777,

I bet. I’m assuming taxes are way higher up there too.

L4rr,

Unfortunately I have to ask, what’s the meaning of EM?

dafo,

Engineering manager, the one responsible for a team

BaardFigur,

C++ Cad application, Norway, so not from a poor country. I know I’m underpaid but didn’t expect it to be that bad

elbarto777,

Hang in there, friend! You’ll make it big sooner rather than later!

pomodoro_longbreak,
@pomodoro_longbreak@sh.itjust.works avatar

How many years experience? It took me a few years before I started making a decent wage.

Definitely keep honing your skills and applying around for different jobs, and taking jobs that you can use to “leapfrog” to other, even better jobs.

BaardFigur,

6 years. I’m by no means an expert, but I’m not newbie either

pomodoro_longbreak,
@pomodoro_longbreak@sh.itjust.works avatar

Okay that is getting up in years. I was about there when I started to get more aggressive with the salary I was asking. You could probably start on the developer I -> developer II -> senior developer career path.

Do you look at other jobs much? Do much networking? Talk to other devs about their salary? Even just grabbing a lunch with some workmates from time to time can help get you in the right mindset of recognising your worth.

doctorcrimson, in Not mocking cobol devs but yall are severely underpaid for keeping fintech alive

Not how that format works, mate.

janus2,
@janus2@lemmy.zip avatar

Possibly better suited for Vanya and Five Drive By Each Other

hansl,

Misusing meme templates is a long programminghumor tradition.

ook_the_librarian,
@ook_the_librarian@lemmy.world avatar

We need strongly typed memes. This place is chaos.

CrayonRosary,

Works for me.

doctorcrimson,

I think the text should be combined into one sentence, which would be run-on but still give the impression that both images refer to one person, as it should be.

CrayonRosary,

Ah, I understand now

Daft_ish,

Another meme purist. If you guys keep this up you’re going to spawn a new variety of meme.

doctorcrimson,

If it’s constructive then it should be interpreted as good faith.

paintbucketholder,

Is saying “you’re doing it wrong” really constructive?

doctorcrimson,

I didn’t think a step by step guide was really needed to correct it, but maybe I should?

FlickOfTheBean,

The first step to correction is understanding there is a problem in the first place. This is quite constructive, it may just not feel like it is because it’s framed combatively.

You’re doing it wrong is the phrase that lets teachers teach at one of the most basic levels.

The public is essentially a self teaching teacher, so this is just the process of public correction happening. It may look/feel like public shaming, and it may be if they’re going too far, but that is the mechanism that I think is playing out here.

Does that framing make it any more palatable to you or does it still seem unnecessarily disrespectful?

paintbucketholder,

It’s probably just a definition thing.

To me, constructive criticism means that the criticism doesn’t just point out failure, but that it then also shows how to correct that failure.

By itself, “you’re doing it wrong” is just destructive: it takes something apart, it destroys it. Without a subsequent “and here’s how you would do it right,” it doesn’t become constructive, it doesn’t help in putting things back together in the correct way.

Sure, as a first step, “you’re doing it wrong” is completely justified when something is actually wrong.

But without the second step - the constructive part - it just doesn’t constitute constructive criticism. By itself, it’s just criticism.

FlickOfTheBean,

Ah I get that, like the frustration of a sociological paper pointing out a societal issue but offering no steps on how to solve it due to fixes being out of scope (utterly infuriating lol).

I still think the criticism is valid, but I do think I agree in that the criticism could be more constructive… But I still think laying the foundation of the argument, so to speak, is still constructive even though it may not go as far as one may need for it to cross the threshold back into polite…

I am still convinced this is a knee jerk feeling issue more than anything truly being amiss, but I have been wrong before. What do you think?

I agree it probably is a definitions thing, I’m very pedantic sometimes and it feels like my definition of constructive is much more optimistic/wider/encompassing than yours. That doesn’t mean that my definition is right or that your position is wrong though, that’s just what I think is going on here.

morrowind, in isEven API
@morrowind@lemmy.ml avatar

I resent that there is a ruby developer included in there. isEven is not idiomatic naming. You should be using #even? from the standard library

fckreddit,

Sorry sir, most JS developers don’t use standard library functions. We just use npm packages wherever possible.

planetaryprotection, in Not mocking cobol devs but yall are severely underpaid for keeping fintech alive

I once applied for a “database admin” job at one of the big credit card companies. The job description was basically “run all our Oracle databases” and the salary was in the mid 2 millions USD, but I assumed that figure was typo’ed or something ( an extra 0 maybe?)

In the interview I learned that there was no typo and it was to be one of the seven people on the planet that run the databases for this credit card processor. They said “if the database goes down then we are losing billions of dollars a minute”.

Anyways I didn’t get the job, but they’re not all underpaid.

knightly,
@knightly@pawb.social avatar

Given how much the shareholders are skimming off the top, $2Mil for a critical database engineer is cheap.

iAvicenna,
@iAvicenna@lemmy.world avatar

Fuck that job I would probably get stomach cancer from all the stress

planetaryprotection,

Yeah I had convinced myself that I would only do it for a year and be able to retire much much sooner.

linuxdweeb,

$2m is enough to pay for chemotherapy

noli,

Flipping burgers is enough to pay for chemotherapy. Src: am european

EatYouWell, (edited )

It really wouldn’t be all that bad. If they’re dropping $2m/y on a database admin, then their BCDR plan must be rock solid with crazy fault tolerances. I’d imagine outages are extremely rare.

But, if they’re dropping that kind of money, you’d have to be an expert in the field. Or know someone.

zbyte64,
@zbyte64@lemmy.blahaj.zone avatar

If you labor there’s only two ways you get paid your full worth: you own the means of your production or your boss is a chump. However much the job pays, you are going to have a larger impact than your salary (hopefully).

CannotSleep420, in isEven API

What the fuck is a modulo? Is it some kind of npm package?

lud,

Yes

generic, (edited )
@generic@iusearchlinux.fyi avatar

Just Monika Modulo

56_,
@56_@lemmy.ml avatar

return (n % d + d) % d;

?

cybersandwich, in Not mocking cobol devs but yall are severely underpaid for keeping fintech alive

Cobol devs that we had (while we spent insane money to retire their systems) we’re getting 300-500k/year.

I’m sure companies are trying to rip off any young new entrants but 90k seems super low.

frezik,

Right, you can make that kind of money when you have 40 years of Cobol behind you. But even for new entrants, $90k seems low. There had better be a premium for dealing with old bullshit, especially when you’re probably damaging your resume in the long run.

Nollij,

90k sounds pretty standard for inexperienced (although maybe not first job) devs in general for most markets. Throw in factors like experience or skills in low supply and that changes pretty fast.

I know that COBOL isn’t going away anytime soon, but most companies have seen the writing on the wall for a long time. Anywhere that COBOL can be replaced with something more modern, it’s already underway. Some places even have a surplus of COBOL devs because of it. But there are countless places where it can’t be replaced, at least not reasonably.

The only way a COBOL dev is making $90k after 5 years is if there are very specific fringe benefits that make them not want to move along, or they are extremely naive about the market.

dan,
@dan@upvote.au avatar

Anywhere that COBOL can be replaced with something more modern, it’s already underw

Rewrites are extremely risky though, and some companies don’t want to risk it. That COBOL code probably has 40 years worth of bug fixes and patches for every possible edge/corner case. A rewrite essentially restarts everything from scratch.

Do you know of a decent sized company that successfully migrated away from COBOL? I’d be interested in reading a whitepaper about how they did it, if such a thing exists.

RaoulDook,

Yep I know a COBOL programmer and she drives a nice-ass Mercedes SUV and owns 2 houses. Making way more than I do.

h_a_r_u_k_i,
@h_a_r_u_k_i@programming.dev avatar

Better learn COBOL now.

hperrin, in Not mocking cobol devs but yall are severely underpaid for keeping fintech alive

Something that maybe a software engineer union could solve.

WhatAmLemmy,

Something that a union would definitely solve. What are the banks gonna do? Fire every veteran and hire a team of underpaid newbs to manage their critical systems? If they were dumb enough to do that, let them save themselves millions a year by facing billions in losses… I’m sure that’ll work out well.

bearwithastick,

Banks: Hold my beer!

And later blame it on the workers that unionized.

aksdb,

It only needs to work long enough for the current management to cash in on their savings. Then it’s their successors problem.

PhlubbaDubba,

If only there was one, I wish I had one just so I wouldn’t have to do all the fucking social hoops just to get my resume noticed by an actual human before the HR’s “I don’t want to do my job!” machines filter me out for not going to an Ivy League School like apparently everyone else did.

r00ty,
@r00ty@kbin.life avatar

The thing is, this type of job never needed a union previously. It was niche enough for a long time, that you were sought out and rewarded well. But yes, I think we're moving into an era where we do need union representation.

Oddly enough, with my experience I am sought out still. Just for bizarre startups who clearly never checked my previous work history. Some of the messages I get on Linkedin for example are just weird requests.

HairHeel,
@HairHeel@programming.dev avatar

Nah, they’re going to “solve” it by paying web developers less, not paying cobol developers more

RedWizard,
@RedWizard@lemmygrad.ml avatar

Something a union could solve…

hperrin,

Yes, workers unions are famous for fighting to lower the wages of the workers they represent. Very much. Indeed.

HairHeel,
@HairHeel@programming.dev avatar

I think the problem is that unions are famous for fighting for equal pay across the board for the workers they represent regardless of individual competency or market demand. For this example they’ll give COBOL developers a raise to 120K and give web developers a pay cut to 120K.

Or best case scenario they give the COBOL developers a short-term raise to 150, then raises across the industry stagnate in coming years to offset the fact that employers feel like they’re overpaying for some people. But sure, a few years later the union can come in to look like a hero arguing for a fraction of the raise the web devs could have already gotten.

affiliate, in Not mocking cobol devs but yall are severely underpaid for keeping fintech alive

what i’m gathering from this thread is that i should learn cobol

onlinepersona,

Yeah man, it can’t be worse than JS, right?

CanadaPlus, (edited )

From when this has come up in the past, it’s a lucrative career path, but probably tricky to break in to since nobody’s maintaining a COBOL system they can afford to put into the hands of someone inexperienced.

The dudes earning half a million are able to do so because they’ve been at it since before their boss was born.

Knusper,

Yeah, and from what I understand, learning the language itself isn’t the hard part. It actually has rather few concepts. What’s difficult, is learning how to program a computer correctly without all the abstractions and safety measures that modern languages provide.

Even structured programming had to be added to COBOL in a later revision. That’s if/else, loops and similar.

CanadaPlus,

It seems that back in the day, people effectively ran a simple compiler by hand on paper. It could work pretty well; Roller Coaster Tycoon was famously written in assembly.

rottingleaf,

Well, I only wrote simple exercises in Intel assembly in uni, but there were more of those with AVR assembly.

You can structure things nicely and understandably if you want.

It’s an acquired skill just like many others. Just today writing something big fully in assembly is not in demand, so that skill can usually be encountered among embedded engineers or something like that.

CanadaPlus,

Is there a tutorial you could recommend? I’m actually pretty curious how exactly you would go about that now.

rottingleaf, (edited )

Sorry, I don’t remember what I used then as a tutorial, possibly nothing, and I don’t write assembly often, it was just an opinion based on the experience from the beginning of my comment. That said:

You have call and return, so you can use procedures with return. You have compare and conditional jump instructions. And you have timers and interrupts for scheduling. That allows for basic structure.

You split your program functionally into many files (say, one per procedure) and include those. That allows for basic complexity management.

To use OS syscalls you need to look for the relevant OS ABI reference, but it’s not hard.

So all the usual. Similar to the dumber way of using C.

In general writing (EDIT: whole programs, it’s used all the time in codecs and other DSP, at the very least) in assembly languages is unpopular not because it’s hard, but because it’s very slow.

pomodoro_longbreak,
@pomodoro_longbreak@sh.itjust.works avatar

Once you get into it you’ll wonder how you ever programmed without “divisions”! I mean honestly, just declaring variables anywhere? Who needs that. Give me a nice, defined data division any day 😌

pomodoro_longbreak, in Not mocking cobol devs but yall are severely underpaid for keeping fintech alive
@pomodoro_longbreak@sh.itjust.works avatar

In Canada, the Ministry of Health pays colleges to teach kids COBOL and JCL. It’s a steady job, pension, good bennies. I know a handful of people who went that route, rather than the riskier private sector.

noobdoomguy8658,

Would you happen to know how that compares to saying “Fuck it” and going with a Java career for the relative predictability? I’m not asking for any particular reasons, just curious.

pomodoro_longbreak,
@pomodoro_longbreak@sh.itjust.works avatar

I know some Java folks, but my sampling is biased because I meet them where I work - places that predominantly use the younger languages. Actually, I happen to know that the MoH in particular (and probably lots of other institutions) wrap their COBOL/JCL in a lot of Java, so that most devs never need to dive into the “real backend” if they want to just stay at the Java level.

Java people seem like family people. But from what I’ve observed, their job doesn’t seem any different. You can work in javascript, or python, and still insist on clocking out at 16, 1700. But I only work at startups or seat of your pants kinds of places, so I know about what I hear. 🤷

eluvatar, (edited ) in isEven API

The errors are great api.isevenapi.xyz/api/iseven/1.5

~~Sadly it’s not always accurate api.isevenapi.xyz/api/iseven/0~~ Edit: nevermind I’m an idiot

It’s also greatly lacking in number support api.isevenapi.xyz/api/iseven/one

huf,

zero is even, so i dont see how that one’s wrong

eluvatar,

Oh you’re right, I’m not sure what I was Ln thinking

xmunk,

Is even states that it only returns true for even, passing in an odd number is technically unsupported.

rikudou, (edited ) in isEven API
@rikudou@lemmings.world avatar

If anyone wants a more efficient local version for php:


<span style="color:#323232;">function isEven(int $number): bool
</span><span style="color:#323232;">{
</span><span style="color:#323232;">    ${1} = false;
</span><span style="color:#323232;">    ${2} = true;
</span><span style="color:#323232;">
</span><span style="color:#323232;">    while ($number > 2) {
</span><span style="color:#323232;">        $number -= 2;
</span><span style="color:#323232;">    }
</span><span style="color:#323232;">
</span><span style="color:#323232;">    return $$number;
</span><span style="color:#323232;">}
</span>

Edit: Now with support for large numbers!


<span style="color:#323232;">function isEven(int|string $number): bool
</span><span style="color:#323232;">{
</span><span style="color:#323232;">    ${1} = false;
</span><span style="color:#323232;">    ${2} = true;
</span><span style="color:#323232;">
</span><span style="color:#323232;">    while (bccomp($number, 2) === 1) {
</span><span style="color:#323232;">        $number = bcsub($number, 2);
</span><span style="color:#323232;">    }
</span><span style="color:#323232;">
</span><span style="color:#323232;">    $number = (int) $number;
</span><span style="color:#323232;">    return $$number;
</span><span style="color:#323232;">}
</span>

Edit 2: someone asked for an ad-supported version, here you go!


<span style="color:#323232;">function isEven(int|string $number): bool
</span><span style="color:#323232;">{
</span><span style="color:#323232;">    ${1} = false;
</span><span style="color:#323232;">    ${2} = true;
</span><span style="color:#323232;">
</span><span style="color:#323232;">    while (bccomp($number, 2) === 1) {
</span><span style="color:#323232;">        error_log('Buy isEvenCoin, the hottest new cryptocurrency!');
</span><span style="color:#323232;">        $number = bcsub($number, 2);
</span><span style="color:#323232;">    }
</span><span style="color:#323232;">
</span><span style="color:#323232;">    $number = (int) $number;
</span><span style="color:#323232;">    return $$number;
</span><span style="color:#323232;">}
</span>

Side note, no more suggestions please, this is getting quite long.

shotgun_crab,

Comment edits are the best version control system

rikudou,
@rikudou@lemmings.world avatar

I agree! Added new commit to my comment.

idunnololz,
@idunnololz@lemmy.world avatar

This looks pretty inefficient. You should manually unroll that loop to improve performance.

xmunk, (edited )

I fucking love that you managed to use var-vars in a completely key and necessary manner.

But please do adhere to the API TOS and throw in an error_log(‘Buy isEvenCoin, the hottest new cryptocurrency!’);

  • All
  • Subscribed
  • Moderated
  • Favorites
  • programmer_humor@programming.dev
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10489856 bytes) in /var/www/kbin/kbin/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php on line 171

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10502144 bytes) in /var/www/kbin/kbin/vendor/symfony/error-handler/Resources/views/logs.html.php on line 27