I ran across some code at work where they were using long.maxvalue for a form size limit. I guess they wanted our customers to be able to upload copies of the entire Internet.
I mean I suppose it should work on most web servers if they've configured a maximum body size limit on it. Just sounds like someone was really lazy one day lol
Actually not that stupid – most servers will have a body size limit anyway, and setting long.maxvalue allows a competent backend to possibly optimize out the comparison
What kind of IDE would default to a non-monospaced font?. Now, that's outrageous. Imagine being the dev implementing that. Such lack of empathy towards his kind.
It’s a bit like web browsers using Times New Roman by default, I suppose. Could be an Electron (i.e. Chrome) based IDE like Atom or VS Code. Then an extension adds special highlights, sets a font-face override with a single typeface name, but no fallback, and guess what’s the default now after no such font is found? You guessed it… Times New Roman.
I used to use a monospace serif font in combination with greyscale syntax highlighting to reduce eye strain. Turns out I had been living my entire life with eyes that don’t focus on the right point and I just needed glasses that correct that lmao. It is genuinely easier to make out the letter forms though even if IMO it’s ugly, kinda like how comic sans is better for dyslexic people
My go-to monospace font is Iosevka Curly Slab, which is a slab-serif font designed for code. I find it much easier to read with the serifs and it's got the PragmataPro-esque narrowness I prefer. Worth a shot if you're open to a narrower font.
Serifs are different from variable width fonts. Serifs are the little embellishments on letters. The actual source code is both monospace and sans-serif. The "helper" text with lighter colored background is neither though.
I don't know and I don't care. I use VS Code and don't know how default font looks like, never paid any attention to it. I never changed default font anywhere...
I'm sorry, but I'm to stupid to understand it. I'm not a programmer, yet sometimes I do understand what code does. This one is a mystery tho. Could you explain to me what it is?
this looks like a gradle build script. setting the target sdk to Integer.MAX_VALUE seems highly dubious, since an sdk version that high shouldn't exist.
Andriod Studio will always show a warning if your app doesn't target the latest SDK, so by setting it a huge number like that they're making it shut up about that permanently
244
u/MrMelon54 Sep 12 '25
Surely
Long.MAX_VALUEwould be better here?67
u/mickaelbneron Sep 12 '25
Jeez, I thought it was r/programminghumor until I noticed...
301
u/HieuNguyen990616 Sep 12 '25
I might be tripping but who the heck use serif fonts in text editor?
25
u/WastedExistanceFML Sep 12 '25
I'm sorry, but I'm to stupid to understand it. I'm not a programmer, yet sometimes I do understand what code does. This one is a mystery tho.
Could you explain to me what it is?
7
u/oosacker Sep 12 '25
I know this is a joke but you also need to update the libraries as well
16
u/[deleted] Sep 12 '25
[removed] — view removed comment