Programmer Humor

This magazine is not receiving updates (last activity 0 day(s) ago).

bleistift2 , in Junior dev VS FAANMG dev

In my experience it’s the other way around.

Potatos_are_not_friends ,

Both sides.

I constantly call out juniors who do things like ignore warnings, completely unaware that the warning is going to cause serious tech debt in a few months.

But Ive also unfortunately shrugged after seeing hundreds of warnings because to update this requires me to go through 3 layers of departments and we're still waiting on these six other blockers.

Pick and choose I guess.

bitchkat ,

Then things will have to wait until the code is of sufficient quality to be accepted.

MostlyBlindGamer , in Trying to understand JSON…
@MostlyBlindGamer@rblind.com avatar

Thanks for the transcription!

Surely Java can tell the difference between a key with a null value and the absence of that key, no?

I mean, you can set up your deserialization to handle nulls in different ways, but a string to object dictionary would capture this, right?

bleistift2 OP ,

Sure, Java can tell the difference. But that doesn’t mean that the guy writing the API cares whether or not he adds a key to the dictionary before yeeting it to the client.

agressivelyPassive ,

It can, but especially during serialization Java sometimes adds null references to null values.

That's usually a mistake by the API designer and/or Java dev, but happens pretty often.

MostlyBlindGamer ,
@MostlyBlindGamer@rblind.com avatar

That’s the thing though, isn’t it? The devs on either side are entering into a contract (the API) that addresses this issue, even if by omission. Whoever breaks the contract must rightfully be ejected into the stratosphere.

agressivelyPassive ,

That's exactly not the thing, because nobody broke the contract, they simply interpret it differently in details.

Having a null reference is perfectly valid json, as long as it's not explicitly prohibited. Null just says "nothing in here" and that's exactly what an omission also communicates.

The difference is just whether you treat implicit and explicit non-existence differently. And neither interpretation is wrong per contract.

MostlyBlindGamer ,
@MostlyBlindGamer@rblind.com avatar

I think we’re fully in agreement here: if the API doesn’t specify how to handle null values, that omission means they’re perfectly valid and expected.

Imagine a delivery company’s van exploding if somebody attempts to ship an empty box. That would be a very poorly built van.

Lysergid ,

Kinda, I guess we all can agree it’s more typical to deserialize into POJO where theres is no such thing as missing field. Otherwise why would you choose Java if you don’t use types. This great precondition for various stupid hacks to achieve „patching” resources, like blank strings or negative numbers for positive-only fields or even Optional as a field.

NigelFrobisher ,

You can always bind the JSON to a hashmap implementation, as that’s all JSON is anyway. It’s not pretty but it works.

bleistift2 , in Going over the rate limit

Speaking of rate limits: Github recently blocked me because I went over a ‘secondary rate limit’ by visiting the site for the first time in a month. Has anybody experienced this?

JoMiran , in Please stop
@JoMiran@lemmy.ml avatar

LMDE (Linux Mint Debian Edition) is a wonderful self-hosting platform.

AtariDump ,

Today I learned there’s a Debian edition of mint.

https://linuxmint.com/download_lmde.php

mox , (edited ) in Please stop

Tell me you're an opinionated novice without telling me you're an opinionated novice.

(edit:specificity)

deegeese , in Play stupid games, win stupid prize
@deegeese@sopuli.xyz avatar

Blocking someone from a hacking game because they tried to hack it is basically admitting defeat.

zalgotext ,

Nah, hackthebox and many other red team simulation type sites have strict rules of engagement. You're there to solve a puzzle as defined by hackthebox, not get around the puzzle by hacking hackthebox.

deegeese ,
@deegeese@sopuli.xyz avatar

That’s not very “Kobayashi Maru” of them.

CookieOfFortune ,

I mean that just means you didn’t hack them well enough.

SnotFlickerman ,
@SnotFlickerman@lemmy.blahaj.zone avatar

Oh no, just like if you were actually hired to do a red team simulation for a business! They would have strict rules of engagement and certain systems would potentially be defined as off-limits.

How terrible of Hackthebox to *checks notes... promote industry standard Red Team practices.

Cornelius_Wangenheim ,

If a real world pentester tries to hack something out of scope, they also get banned. From society. To a prison cell.

BluesF ,

It's called hackthebox not hackoutofthebox

tourist ,
@tourist@lemmy.world avatar

Is this like getting banned from an escape room because you brought (and used) a live grenade to solve the puzzle

(I think they have a strict no-grenades-from-home policy, usually)

suction ,

Getting caught means the hacker won? Are you a r?

BlastboomStrice , in Please stop
@BlastboomStrice@mander.xyz avatar

It is possible though to get newer versions using flathub or somethibg, right? (I know very little about linux, but I'm thinking of switching from win10 to debian next year.)

TechnicallyColors ,

For normal desktop users, yeah Debian Stable + Flatpaks is a winning combo for picking the software that you want to be cutting-edge and leaving the rest to rock-solid stability. Normally Linux distros keep a full ecosystem of packages that interop and depend on each other, but solutions like Flatpak have their own little microcosm of dependencies that can be used independently of the host distro. There are also Debian Backports for when you want native Debian packages that are more cutting-edge but still compiled to work with your older base system. Backports are not available for most packages but sometimes the important ones are available, like the Linux kernel itself. You can also try to compile your own backports, but you'll be responsible for updating it.

Cube6392 ,
@Cube6392@beehaw.org avatar
  1. No better time than the present
  2. Yes there are ways of acquiring the latest packages even on Debian stable. Usually I end up compiling that stuff myself
  3. If you're at all unsure if you want to deal with Debian not pushing the latest and greatest updates you do have options such as running Debian Testing or MX Linux (which itself is based on Debian Testing)
BlastboomStrice ,
@BlastboomStrice@mander.xyz avatar
  1. No better time than the present

Look, I'm already trying (and kinda succedding) to avoid doing some hard tasks I have to do, don't push me further into the rabbit hole.😆

Ugh, now I'm considering doing it in 2 weeks, what have you donee

MajorHavoc ,

Sweet. Welcome to the cult of Debian.

We (Debian users and contributors) are inevitable. Our quiet satisfied computing cannot be stopped, only delayed.

We should consider getting some fancy robes and a few club houses, though. The only thing that can make Debian better is cookies and tea.

Cube6392 ,
@Cube6392@beehaw.org avatar

Sure thing. Just remember its better to do things you want to do rather than waiting for things to be perfect. Lord knows its something I need reminded of sometimes

bruhduh , in Please stop
@bruhduh@lemmy.world avatar
Land_Strider ,

Busta!

barkingspiders , in Please stop

I am a little biased because I've been using Debian professionally for many years now but we don't deserve Debian. It is fantastically stable and reliable and makes an excellent platform for running your services off of. If you are at all interested in offering some time and energy to the open source community, consider adopting a Debian package!

A_Union_of_Kobolds ,

I'm thinking about a Linux laptop with FOSS software for my business actually, Lemmy's relentless horde of pro-Linux propaganda has won me over

(OK I've always liked FOSS I've just never taken the jump)

qprimed ,

ONE OF US! ONE OF US!

but seriously, modern FOSS distros (yes, debian is modern, damnit!) are amazingly good. you have an exceptionally high probablility of switching and staying switched.

A_Union_of_Kobolds ,

I'm looking forward to it!

Side note: anyone got recommendations for business software? I've started browsing the FOSS community here for ideas but I'm not sure what QuickBooks alternatives exist

F04118F ,

A quick Google shows Quickbooks to be cloud-based accounting software.
For FOSS accounting, GnuCash exists so you could try that (it can also run on Windows and macOS).
However, it's unlikely to have feature parity so if you like the added convenience that Quickbooks offers, see if you can use Quickbooks in a browser. Being cloud-based, they would probably build a browser version before building a Linux desktop app.
If they don't and you need to run a Windows desktop app on Linux, you can probably do this using Bottles (which uses Wine and Proton under the hood, the tech that enables the Steam Deck).

A_Union_of_Kobolds ,

I mean yeah, but specifically I'd like something built for Linux that's good for just basic spreadsheet stuff. I'm an electrician so I mostly just need to track jobs and accounts.

F04118F ,

Most of (what we call) Linux OSes are formally GNU/Linux. GnuCash is as close as it gets to "made for Linux". If you don't want an accounting-specific application, but just generic spreadsheets, check out LibreOffice.

I highly recommend GnuCash for accounting though: a fellow board member cleaned up an org's accounting by putting it all in GnuCash, where it was a bunch of error-prone Excel sheets before. That really made it easier to keep track and to do it right.

roguetrick ,

GnuCash

Huh, they've even got active development on an Android app.
https://github.com/GnuCash-Pocket/gnucash-android?tab=readme-ov-file

mexicancartel ,

Yeah I installed the android app just for fun.(I don't do accounting lol)

realbadat ,

Take a look at Apache OFBiz, Akounting, Frappe Books, and LedgerSMB.

fine_sandy_bottom ,

I'm an accountant.

The best accounting software will be the one your accountant uses.

When clients are on the same platform that I use internally everything just matches up and it's beautiful and elegant and amazing.

When clients are using something else it just doesn't fit our workflows and it's just more of a fuck around, which of course the client gets charged for.

JoMiran ,
@JoMiran@lemmy.ml avatar
nexussapphire ,

That's how I feel about arch, it's not "stable" but the few issues I've had they typically have it fixed with an update within hours.

I do have to clarify when I switched to arch from windows my entire computer was brand new and practically no other distro booted or if it installed it dumped me to a black screen.

After running my server on archlinux with the stable kernel for 7 years I did install Debian on my new server. Zfs just required an older lts kernel than I could get on arch without a ton of hassle. I didn't need it on my Mac mini with an external hard drive plugged in. From my experience it's not very different to maintain compared to arch but it's nice having built in automation instead of writing my own.

Man it's weird using a system of what I can guess is a bunch of bash scripts on Debian to set things up compared to just using the tools built into and written for systemd.

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

it's not "stable"

"stable" in this case means that it doesn't change often. Debian stable is called that because no major version changes are performed during the entire cycle of a release.

It doesn't mean "stable" as in "never crashes", although Debian is good at that too.

Arch is definitely not "stable" using that definition!

nexussapphire ,

Yeah, I know the definition. I knew someone would quote it verbatim, someone always does. I quoted it because it's not the word I would use. I like scheduled or versioned releases better but someone always disagrees with me. As far as I've seen it's a major/minor version release cycle anyway.

Bytemeister , in Yup that's how I got depressed

Stop, you're scaring me.

Successful_Try543 , (edited ) in Please stop

I still remember this nice 'feature' of XScreenSaver.

However, as of 2016 Iceweasel is Firefox ESR again.

joshix , in Please stop
@joshix@fosspri.de avatar
Kolanaki , in Play stupid games, win stupid prize
@Kolanaki@yiffit.net avatar

you're blocked for doing something funny

As a funny person, this makes me sad. They should get a sense of humor.

ggppjj ,

As my father always said: you may be a funny person, but looks don't count for everything.

CanadaPlus ,

I like that! I'm going to steal it.

ggppjj ,

He would've liked that. He was a real nice guy, always said I had a face for radio.

Zachariah , in Play stupid games, win stupid prize
@Zachariah@lemmy.world avatar

I hope it leads you on a bit before this reveal.

abbadon420 ,

That's the honeypot

onlinepersona , in Play stupid games, win stupid prize

So trying to hack hackthebox is not permitted? Confusion is the name of the game

Anti Commercial-AI license

firelizzard ,
@firelizzard@programming.dev avatar

hackthebox is essentially a puzzle solving platform where the puzzles are designed to teach you hacking. You're not supposed to hack the platform.

Hawk ,

So trying to hack hackthebox is not permitted? Confusion is the name of the game

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • kbinchat
  • All magazines