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
Feed
All
Post Types
- Rants
- Jokes/Memes
- Questions
- Collabs
- devRant
- Random
- Undefined
Cancel
All
-
Instagram's UI is like an extremely hard game that will kicks you out of the process just a second before you're about to finish just to make you start over and try harder. It's a know deceptive pattern to make people invest more energy and engage more intensively, some will leave in frustration, but the rest will feel more attached to your product thanks to the sunk cost fallacy. What a pathetic waste of time! Sad.
-
> This is indeed a well-known architectural challenge—the "tying together" of heterogeneously typed objects with their matching data—often referred to as a variant of the Expression Problem
=-=
> The expression problem is a challenging problem in programming languages that concerns the extensibility and modularity of statically typed data abstractions. The goal is to define a data abstraction that is extensible both in its representations and its behaviors, where one can add new representations and new behaviors to the data abstraction, without recompiling existing code, and while retaining static type safety (e.g., no casts). The statement of the problem exposes deficiencies in programming paradigms and programming languages, and as of 2023 is still considered unsolved,[citation needed] although there are many proposed solutions
=-=
why do I always
also this is easy as pie in javascript. No wonder it was my favourite language. you're just so free to express yourself. DUNCHU SEE?! -
Oh look at it stupid technomusings.
Context:
- You have a sequence of N-byte-wide values.
- Each value is unique.
- You XOR them all together into an N-byte-wide key.
- Just dump the key into a list somewhere.
Problem:
- A new value sequence is input.
- Same rules: all values are unique and fixed-size.
- You XOR them all together into a key.
- You walk the list of keys and check them for equality against the new one.
The same sequence of values, regardless of order, would ((supposedly)) always give you the same key. I used this years ago, for a renderer that used indexed colors, to see if I had to make a new palette or not when saving/loading textures: the image format had the key on the header.
It worked, but I was using a __very__ limited value range, cursed 8-bit YUV lossy fuckery; never bothered investigating the idea any further.
So, question:
- Is there any specific situation in which you get a false positive?
- Is there any specific situation in which you get a false negative?
My brain wants to say 'yes' to both because I'm privy to the mystical truth that my methods invariably fall on the idiot side of the spectrum. But my lazy testing keeps saying 'no, you dumbass'.
So who's wrong?
brb gon hit that crack~1 -
Week : 86 (Year 1 )
How was the weekend ?
What improved your quality of life so much that you wish you did it sooner?
last Weekend : https://devrant.com/rants/154170255 -
In Windows 11, Microsoft has removed the option to make the taskbar smaller—and with the 24H2 build, even the old registry hack (TaskbarSi) no longer works.
Fuck Microsoft.8 -
I think you people just are boring enough to never tire of being able to get people to lie And do tricks mimicking other people at varying points of time with precision9
-
Watching someone at a conference trying to play a video in their presentation on Windows PowerPoint. It’s painful to see. No audio. They then ripped the video from YouTube. It still wouldn’t play even in Windows Media Player. They’re still fiddling with it while the speaker and audience trade dad jokes. If I hooked up my Mac it would immediately work. How do Windows users live like this?3
-
One day you'll go hiking and find a house built by no one. It will be then that you'll realize you can't go back home.2
-
Polish military has the official "8 wounds" chevron that is given to those who sustained 8 battle wounds. Do you know why Americans don't have those? Because you have to be Polish to get wounded eight times in battle and still be alive enough to wear this thing on your uniform. Poles are built different.17
-
Okay, fine, I admit it! Not only do I sniff packets, I sniff panties, as well!! There, are you satisfied you sick bastards!? 😤13
-
power outage
I wonder if I post every time how many it will be
especially with green power political stuff going on these days this could be a funny bingo game5 -
Asians talk about discipline and value it greatly,
but what if they discipline you in the wrong direction?
does it matter or what?4 -
We really need to get rid of 96% of the population to actually start living in harmony with our ecosystem.40
-
I can’t seem to comprehend why I can’t comprehend modern Frontend approaches. I think I’ll just stick with the backend side of things and go deeper instead. Nice try react 💙36
-
imagine "dumb" tech still having mics, recording everything and scanning wifi for unprotected networks to gain internet access and upload it3
-
dumb-init is a very popular package for Docker containers. Here's some fodder for feeding the DEI flame war:
- Those who are unable to speak have the right to remain silent
- What about speachless-init?
(my take: no action required at this stage)
https://github.com/Yelp/dumb-init/...8 -
we don't really need data types. By default, everything should be string. When you do addition, when the string has nothing but digits, commas and periods, they should be parsed added as numbers. Else, they should be concatenated. If that string-number formatting doesn't match any conventional formatting of any locale, it's a string. Same number-inferring behavior should be implemented when comparing things. There should be no type casting because there is just one type, so every comparison is type-exact. "true" and "false" are special strings that won't throw an error during comparison. Comparing two strings using less, more, less than or equal and more than or equal always throw an error.
Dates are ISO strings. Every other thing is not a date.
We basically sieve the data starting with the strictest conditions down to more forgiving conditions, then down to no conditions at all where it will be interpreted as just string. ISO date requires a very specific formatting, so we should check that first. Then, let's check for a formatted number. Then, a boolean. If nothing clicked, it's a string.
Oh, and every string is automatically trimmed, so it can't start or end with any kind of space.
No classes, no procedures, no constants, no switch operator. Also, no methods, just a lot of helper functions.
Performance will be lacking compared to languages with static types, but performance is not a priority here — this is the language for code monkeys and their AI counterparts. It should only be used for making trivial client-server prototype apps that could've been replaced by Excel if only people knew how to use it, at passable quality, that work reasonably fast on modern hardware.
Those apps will be deprecated because the company went out of business/because the project was proven to not be financially viable in several months anyway.
UI should be rendered not using a webview, but using a lightweight cross-platform UI engine written in a proper language like C++. There should be no semantic tags — every UI element acts like a div would. Everything is measured in pixels and milliseconds. All colors are #rrggbbaa. All vector graphics are SVG, all raster graphics are AVIF. All sounds are Opus. All videos are AV1. All UIs are reactive, Vue style, e.g. you change a variable and the UI updates itself in the right way every time.
Add some junior devs paired with GPT-4.5 or any super-expensive LLM, sprinkle with some Extreme Go-Horse management style (https://hackernoon.com/you-might-be...), and boom, we recreated Zergs but in the tech space. Let's solve software by brute force.13 -
Systems engineer, +5 years of experience, mainly webdev but also 80% of every branch of IT there is, have worked with many technologies professionally, many more academically, fluent in 3 languages, low salary expectations... how come I can't land a new job?
I've done a bunch of stuff: Specialized CVs, used many platforms, personal connections, showed at different places, updated my socials / projects...
Man I suck at job hunting.
Before you hate on me, this is more of a reflection than a vent. I'm not mad at all. I know I've been doing a poor job and I'm stepping up my game soon. I didn't underestimate the IT job market, I just had other priorities in mind.6 -