Lakh views? π€
Programmer Humor
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
Indian
More specifically, an Indian divider for large numbers, kind of like how δΈ (read 'man') works in Japanese. While Japanese (and I think Chinese) divide numbers greater than 1,000 in increments of 1δΈ, or 10,000, up until you hit 100,000,000, in India, large numbers get split into lakh, representing groups of 100,000.
It's so neat how different cultures adapted to numbers. Like French have something like 4 times 20 (and?) 2 to mean 82. In Hungarian if you say billiΓ³, that is one trillion rather one billion. We riff on the ending of million to express billion: milliΓ‘rd.
Speaking of coding out of spite, is nobody going to mention that his C code features a struct
with over 20 fields in it?
Sometimes you can't not have a god class (struct in this case). When doing UI specifically, I always end up with one.
You can try using encapsulation to reduce the amount of fields technically, but in the end it's the same amount of information in a single god class.
That's the State
struct. Globally accessible, I'd bet
That's not uncommon, is it?
Not really, but I'd probably try to organize those into sub structures where it made sense. A data structure holding the UI state and FFT data all flat is kinda messy imo since it becomes unclear what is actually required where.
Yeah that's what I usually do, as long as it's passed by reference there isn't anything too bad here.
You can tell there ought to be substructures because he used comments to label the different groups. That's a code smell right there.
Agreed
There used to be a UI library on the Amiga called MUI.
It used a bunch of C macros to let you define the window and all the controls. Was honestly pretty good considering it was like 30 years ago.
Unrelated but there is microui, a 1100 loc library in ansi C for a basic UI.
What's React?
React is what powers your Windows Start Menu.
Wtf is that real
Yes, as well as parts of the settings menu. What's not to love about constantly loading and unloading javascript just by clicking around in native apps? CPU spikes are good for your health.
React is a Javascript based web development programming language developed by Facebook to make pages run faster and better. I learned it as part of a MERN stack full web development course.
Used for rendering UIs on a Document Object Model. JS was a mistake.
Javascript based web development ~~programming language~~ UI library
On the other hand React Native is a JavaScript based development language developed by Facebook to make applications run slower and worse.
to make pages run faster and better.
Huh, well that's a funny way of saying "break the model of web page as document and fuck up the entire web!"
Oh stop it. Are you saying you don't enjoy pressing the "Back" button in your browser, but staying on the same page. Therefore breaking the page so you refresh and lose whatever the fuck you were doing? /s
Yeah because documents are limiting and we want to do stuff that executables can do but with a better distribution model.
I'm an elitist asshole and I hate that people say "react dev" when really it's "web dev that uses react"
There are also react devs creating the windows 11 start menu.
react devs are not web devs. they're special
Is this distinction really all that useful?
I suppose you could write a react app that doesnβt use βthe webβ? But you still might just say they are a react developer.
I think the web part refers to web technologies.
Yeah I guess Iβm old. Seems like everything is called βweb devβ these days.
I was answering a question somewhere related to something like C/C++ and Operating System level stuff. Someone replied asking where I learned βweb dev.β I would consider that general programming, or possibly systems programming, but certainly not βweb dev.β