programmer_humor

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

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

Where do you learn this… Cobol?

dipshit,

My grandmother could teach you it, but she’s dead.

pinkdrunkenelephants,

RIP

jwt, (edited )

My cobolences.

janus2,
@janus2@lemmy.zip avatar

at university in the 1980s

pinkdrunkenelephants,

Wait, so there’s nowhere you can learn it now?

janus2,
@janus2@lemmy.zip avatar

Doubtful, I was just joking about how it’s an older language that has become rare

Probably a few CS programs offer courses in it, if nothing else because it’s historically important. And I’m sure one could teach it to themself via books and documentation

ryry1985, in isEven API

I love that it works and the ads are pretty good.

4am, in isEven API

Incoming trademark lawsuit from iSeven, the API that tells you if a number is seven or not

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 :-)

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;

?

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!’);

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).

rem26_art, in isEven API
@rem26_art@kbin.social avatar

im glad that people are out there building the web services we truly need.

jubilationtcornpone, in isEven API

Only way it could be better is if they threw “AI” in there somewhere.

jol,

With the new AI integration, you can get smart isEven results that return the correct answer 90% of the time and a more creative solution 20% of the time.

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

The more important a job is, the less paid the work is. Conversely, the more bullshit the job is, the more pay there is.

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.

megaman, in isEven API

Funny as hell

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

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.

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

I’d be happy if I could land a web dev role for 40k at this point

doctorcrimson,

I think the mention of fintech in the text makes an implication of online store of some sort, where I could see it being profitable because it’s a lot more work to be able to generate listings and accept payment and shipping information.

CrayonRosary,

It means banking. Finance tech.

doctorcrimson,

That was never in question. Online payment portals are Fintech. You don’t have to work at IBM to be in Fintech, it includes the entire process built on top of their platform as well.

CrayonRosary,

But COBOL is famously used in legacy banking systems, not modern internet payment systems.

doctorcrimson, (edited )

I’m saying that the mention of Fintech in the First Case would IMPLY that the WebDev also deals with Fintech. If both devs have comparable skillsets then it makes sense to compare their pay rates.

IDK, maybe I’m reaching with this one.

kGdMKhy8Wa5s,

That’s crazy. If you have the skills don’t under value yourself. Don’t be afraid to walk away from an offer. Never tell a potential employer your current salary and never give them a number if they ask in interviews. Ask what their range is as a response and if that matches your number, proceed. Then negotiate for the max of their range. If you get to that point, they already want you, so you have the upper hand in negotiation.

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