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.

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

CanadaPlus ,

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 ,

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.

onlinepersona ,

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

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 😌

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

I had a friend at university who got a job fixing cobol stuff before Y2K. The bank paid him extremely well, housed him in a luxury apartment during the job, and, as he had no driving licence, dropped in a car with free driver for him.

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

deleted_by_author

  • Loading...
  • elbarto777 ,

    $60K doing what and where?

    CanadaPlus ,

    Probably anything outside the US.

    elbarto777 ,

    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 ,
    @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 ,

    deleted_by_author

  • Loading...
  • 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 ,

    deleted_by_author

  • Loading...
  • 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.

    elbarto777 ,

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

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

    In my experiemce, Java shoots processing usage up while COBOL uses much lesser CPU / memory

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

    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 ,

    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…

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

    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

    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!

    CannotSleep420 , in isEven API

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

    lud ,

    Yes

    generic ,
    @generic@iusearchlinux.fyi avatar

    Just Monika Modulo

    56_ ,
    @56_@lemmy.ml avatar

    return (n % d + d) % d;

    ?

    rikudou , (edited ) in isEven API

    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.

    idunnololz ,
    @idunnololz@lemmy.world avatar

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

    shotgun_crab ,

    Comment edits are the best version control system

    rikudou ,

    I agree! Added new commit to my comment.

    xmunk ,

    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 ,

    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.

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