Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "undefined"
-
my frontend colleagues always keep amazing me with their create way of writing code:
```
const input = "a";
const result = {
"a": () => console.warn("A was selected"),
"b": undefined,
"c": () => console.log("hello")
}[input || "c"]?.();
```
Poor man's switch construct ... (facepalm)16 -
a week into building my first WebApp in JavaScript.
Today, after SO MUCH ANGER AND FRUSTRATION I decided to pop Cargo and start over with WebAssembly through Rust and it's finished already.
(╯ò_ó) ╯︵ ┻━┻
SERIOUSLY, F*CK JavaSpaghettiScript, can't wait to pop the champagne once it DIES.
It's like JavaScript is a house poorly built on top of a cliff and every year it gets something new added to it just to help keep it from tumbling over. F*cking hate Netscape for wrecking a future where JavaScript would've been a concise, intuitive and Scheme-like language. Gladly, WebAssembly is here to fix things 🗣️12 -
Each day, I read the vast swath of ticket hell hole that is our JIRA.
I read tickets that are written by people with not just 0, but an undefined understanding of technology...
I read tickets that are technically impossible due to this 0 understanding...
And finally, I laugh in bitterness seeing the time estimates stack up to months and months worth of work for which the managers expect to be done in 2-3 weeks 😂3 -
So ok, today was a crazy day.
New sprint, new ticket.
Work on the bug tickets first he said ….
Sure can. Oh had I just known that this very first innocent looking ticket is the way to coder‘s hell ….
‚Access of undefined‘ it said. Easy to fix, I thought.
Until I found the very same code twenty-fucking-two times over about 50 files!
Who would guess that exportSingleOperatorBooking, exportSeveralOperatorBookings, exportAllOperatorBookings (… and more) could in practically be the same? Nah, they all use different interfaces.
Oh wait, the alias type of the extended sub-interface of file misc.ts is the same logical content as a differently named interface below another different interface with the same content as in another ts file?
Wait that can‘t be. Riiiiight?? 😳
8h later I have barely scratched the surface of refactoring this shitshow of a project.
But no, I refuse to put the same error handling multiple times in different places.
I could have been done already. I could have saved my soul, my sanity. But I will be brave and strong to save the innocent developer that will cometh after me. For I shall be rewardeth for my sacrifice.
Amen.8 -
Got bored and decided to try and compile X11 Quake (WinQuake) so far trying to troubleshoot some undefined references
-
Using void 0 instead of undefined is just ridiculous. Sure, you save 3 bytes but I've seen the code you write, you definitely should not care about that.7
-
My understand of null
0,empty = values explicitly set
Null = variable exists but it's still virgin.
Undefined = variable doesnot exists9 -
Does being dictate consciousness or does consciousness dictate being?
In this layman form, the answer is undefined. But let's dig deeper.
The layman form doesn't account for the difference between discrete and continuous. Without that difference, the paradox of Achilles and the Tortoise can't be solved. Yes, it took from ancient Greeks up until 17th century to solve it, introducing that distinction.
Both being and consciousness are discrete entities. This way, technically being was the first, because you were born to it. But when you became self-aware, your consciousness started to dictate being, and not the other way around.
If being truly fully dictate consciousness, then consciousness can be cut away by Occam's razor. In the same way, your parents are technically the reason you exist at all, but if that fact fully dictated who you are, then _you_ could be cut away in similar fashion.
Contrary to that, if consciousness fully dictated being all the time, being could be cut away too.
So, yes, being created your consciousness. But later, when your consciousness was created, it started to dictate being. This is the only way they're both can't be cut and are aligned with the timeline.6