Lakh views? 🤔
Indian
Vibe coding in assembly.
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 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.
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
Yeah that’s what I usually do, as long as it’s passed by reference there isn’t anything too bad here.
That’s the
State
struct. Globally accessible, I’d bet
Umm this is just being retro. Like using a film camera.
I see your pitiful vibe coding and raise you… SPITE CODING 👿
I prefer the term “spite-driven development”.
I wrote an SDL replacement but worse after SDL refused to work with audio streams for me even after a week of googling, it took me the same amount to get it work with WASAPI directly as looking up audio streams, instead of the many easymp3playback.dll type solution. Another one week was making ALSA working. At least it’s in D, so I have an easier time with development.
I also almost was involved with a YanSim clone development called “Love Letter: My True Feelings”, but shit just started to hit the fan (character designer just left), so I decided to not get involved as a coder.
Spite coding is almost the original coding.
I have definitely gone into a rageful fugue state and woken up a week later after reworking an entire code base from being an inconsistent mess of slop…
…into actually having a common library of functions instead of just rewriting slightly different versions of them 8 times, having those functions only actually instantiated for necesarry classes…
…rewriting every variable name and function name to an actually consistent and intelligible naming scheme…
… and finally, moving a whole bunch of shit out of some kind of global ‘think’ type loop that doesn’t actually need to be called or checked every goddamned micro second.
Done that more than once actually.
Never look inside ‘baby’s first video game mod’ code, unless you have healthy blood pressure.
But uh yeah, spite, hatred, and anger are indeed powerful motivators for making good code, lol.
… so many idiots just jam everything into a global, called every tick loop, and then claim that it just can’t be optimized, because “the game engine just can’t handle it”…
./clears_throat.sh
The engine doesn’t suck. I do. I suck.
What’s this dude talking about?! Everyone knows no one hates React like people who code in React 😂 No one is gonna get pissed off watching this.
Do React devs really hate React?
I don’t, but it can be really annoying when I accidentally fall for a common trap that I supposedly know how to avoid after all these years! Gah.
Isn’t the adage that you either have haters or no users?
I love this guy he’s a fucking freak of nature
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.
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 languageUI libraryOn 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!”
Yeah because documents are limiting and we want to do stuff that executables can do but with a better distribution model.
Shoulda been something more like Java Web Start.
Data visualization ≠ UI and signal processing is traditionally done in C
That looks like buttons in the thumbnail, on the left of the visualisation.
I’d say that’s enough to call it UI.UI. User Interface. The bridge between a system and a user. So anything, literally any information transfer from the user to the system OR from the system to the user, is a User Interface.
A definition so broad as to be useless.
Is it a UI when someone calls memcpy to move data from a file to a screen buffer?
Not it isn’t.
A command line literally is a UI.
You seem to be confusing GUI and UI?
You seem to be confusing C stdlib with a CLI?
This isn’t hard, you’re just trying to make it to be.
Memcpy from a file to a screen buffer is as much a UI as pouring water in a pot is a soup.
why would you take the least charitable interpretation? there is no need to be hostile.
and the answer, of course, is that it can be, as long as the information copied is meaningful for displaying to the user.
you’re basically asking the equivalent of whether putting things into an array is an algorithm, which of course has the answer “it can be, depending on how you put it in”. so basically, the operation you’re highlighting is not the point.I’m going to go with no, since that step is not transferring data to a human, it’s transferring it internally within the computer.
UI can refer to either the medium, such as a visual display, speaker system, or keyboard, and it can also refer to a specific layout of information (like the Qwerty layout, or a webpage layout). I wouldn’t consider the USB protocol UI just because it can transmit HID Events, only the keyboard or mouse as a whole is UI.
You could almost call HID events UI, but I’d still argue they’re more of a computer-device interface than a human-device interfaceI did not make this definition. However, this does not give you the freedom to make up your own definition and treat it as a fact. Don’t spread wrong information.
Would you agree that the dashboard of a car is UI? If so, isn’t that just data visualization?
Dashboard is a UI fed by signal processing code which is the backend.
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.”