Details
-
AboutGrunt from `Starship Troopers`.
-
SkillsBug hunting. C++ Trainee.
-
LocationHell
Joined devRant on 6/15/2024
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
-
Working on some linux shell/terminal stuff and chatgpt really is both a saint and a curse
It's super helpful but like half the stuff it tells me is just flat out wrong
Never forget to double check guys! -
I don't like how tech companies are advertising they will sell you "peace of mind"
better question is why did you take it away in the first place, eh? so if you took it away in the first place why would I trust you to fix the issue you caused? talk about insanity, doing the same thing over and over again expecting different results -
So as mentioned by people earlier, devRant certificate is expired. Well, three things to do:
1. use dr.molodetz.nl for using devRant with a certificate.
2. write down snek.molodetz.nl or molodetz.online for when it really goes down, we're building a new community there. It's not ready yet, but is already in use for a long time. Literally everyone welcome. Just like dR, no moderation, freedom.
3. let's hope on not to loose too many friends!
devRant is a great site, but the wholesome, respectful community, is made by made by people.26 -
In my latest installment of "Swift, WTF?", we look at the "if" conditional in terms of the Swift convention of:
if let x = y { /* ... */ }
so what this does :
1. declares x in the scope of the braced code
2. sets x to y (an ahem, "optional")
3. decides if x is not *nil*, then executes the braced code.
This is very similar in both the visual and the operation to the C code of:
if (int x = y) { /* ... */ }
1. declares x in the scope of the braced code
2. sets x to the value of y
3. if x is not zero, then executes the braced code
which is considered *exceptionally* poor style.
Neither the C nor the Swift construct result in a legitimate boolean value of "true" or "false", although C comes closer than Swift.
In the Swift case the *imaginary* "nil" value has to be interpreted as "false" and thus there must be extra code is for the conditional to check on whatever constitutes the **actual** value of nil in Swift and then set the condition to "false".
(remember boys and girls, "optionals" are not real, they are an imaginary language construct of Swift and have no legitimate counterpart in the CPU operations with memory and registers)
At least in the case of C, if the value of x is zero or NULL (which is 0) then it is technically a "false" which in C is 0. Regardless, it is really poor programming and anyone doing that on my team gets an ear full.
But in Swift this obfuscation of code is common and condoned! Well, why not put more of the program in the condition of the if? In fact, stuff the whole thing in there.. why not? 🙄
This just reenforces my opinion that Swift is not a bird but the stuff that comes out of the underside of the bird. 🐦💩19 -
when you end up in the ER with excruciating pain early on a Saturday morning from persistent inflammation from chronic job stress and getting sick more than normally, you gotta change jobs.
no amount of money is worth your health.
(the drugs they gave me were pretty fun though, but not something I ever want to go through again)6 -
The nightmare of all AI users is when this shows up: https://devrant.molodetz.nl/Screens...
The content what it said was even worse. Of course, it doesn't have the ability to do it. But imagine if it had, it was a false positive.1 -
I don't care, skeuomorphism like iOS 6 or window 7 aero was the peak of design and you can't convince me otherwise2
-
spent the whole week working on a bug fix last week.
implemented a method to filter some data to make it easier to use in the HTML template.
friday's session with other programmers to review code went well, they said the method is pretty good and works nice. (I must admit there was an elusive bug that prevented the component to render and none of us could figure it out)
i get back on monday to a message from the lead saying the code is unusable and they reverted to the previous (convoluted) way of doing things and i should do the same in the future. just copy their work.
i check the typescript class. fucking method that was used (which he told me not to use and I should copy and work off of), he went and just changed the method's name, and the body is EXACTLY the same as his existing method.
this code base is ridden with re-used methods (I managed to extract two reused ones into a service some time ago), the use of any for 90% of method return types and variables...
WTF. I am losing all of my respect for seniors and faith in this company.
This is why I am burned out. You are farting against a hurricane and everyone else's shit is coming back onto you. This is fucking insane. Or am I insane?10 -
The junior made some work on the frontend, and... well, it's genuinely good. Nice component, looks good, he used tailwind and the framework properly. It's easy stuff, but he pulled it off nicely and that's how you move from toy projects to complex stuff anyways. This is not a rant, that kid is growing nicely. Let's go.2
-
Sometimes, Google's solutions are worse than the problem they intend to solve.
For example, Google ReCaptchas are worse than spam, especially those with the pictures that fade extremely slowly on purpose. Unlike bots, humans are likely to not finish deliberately annoying captchas to save their precious time. (see http://archive.today/2022.06.25-110... )
In Chrome (mobile version), pull-to-refresh saves the one second it takes to reach for the refresh button in the submenu, but poses a threat of accidental refreshes each time you swipe down intending to scroll up. Over two thousand people have complained about this. ( http://archive.today/2025.02.26-153... )
With Android 4.4, Google blocked write access to memory cards (MicroSD) from all user-installed apps with the exception of app-specific folders so apps can not leave files behind when uninstalling. Google provided no option to change this. (source: http://web.archive.org/web/... )
But for unwanted files, there is already a delete button! Why take away the freedom to use the MicroSD card properly?
Google crippled the usefulness of memory cards for this nonsensical reason.
Google solved these problems with solutions that are worse than the problem.3 -
I've finally put two and two together about my mother and why she acted the way she did with me my whole life.
Since four years old, she told me again and again that I will be a programmer and "earn as much as Bill Gates". Then, in fifth grade, without asking me, she made me take regular programming classes I was really bad at. Then, again without asking me, she sent me to an experimental, highly intensive CS learning program in my uni that accepted kids two years before they finish the high school to throw a metric ton of math, C and hardware design at them. After a year there, I completely lost the ability to enjoy videogames (at 15 years old). By the end of the program (four years), I started experiencing bipolar symptoms.
Then, at the age of 19, she insisted that I take the first draft order and join the army. The military service in russia is mandatory, and it's notorious for breaking people no worse than russian prison does. Knowing that I'm weird and autistic (I was stacking things as a kid), and knowing that the army _loves_ breaking weird people to keep them in line, she just wanted to break me. For context, draft orders are sent out en masse, and everybody dodges them with no repercussions. When they're 28, they just pay a small "fee" (a bribe) to get the military id. You can't be conscripted after you're 28.
I don't know my father. I have a stepdad though. My mother and my stepdad had a kid, nine years younger than me, and of course he was loved by my stepdad way more than I was.
I can recount a lot of instances where she was cruel to me, but oh how subtle and passive-aggressive she made it to be. Also, when I was bullied at school, she insisted on not changing schools, but rather for me to man up.
Her plan was to make a highly paid but mentally broken drone that would be a strong, steady stream of money while she enjoys a "proper" family with her husband and a "proper" child.
It's so unfortunate that the bastard kid turned out to be bipolar, and that bipolar disorder resets one's entire worldview from time to time, nullifying two decades of conditioning, isn't it?
Dear woman I crawled out of, I'm either wrong or right. If I'm wrong, and you did all this (and waaay more of cruel and fucked up shit) to me without any strategy in mind, because you wanted to, then congrats, you're a psychopath. If I'm right, and it was all a strategy, then you knew what you did was wrong, and every single time you did it took a bit of your soul away from you, because that's what evil does. Given that your scheme failed, was it worth it in the end?21 -
Had my wisdom teeth removed today. Not feeling my entire jaw is a bit strange but I don't believe I had any other strange effects from the sedation and I've been assured that I didn't say anything embarrassing.
Not having those teeth there anymore feels weird. They grew in well, but one developed a cavity that was causing me a headache that has been getting worse for the last 6 weeks.6 -
!rant https://www.imgopt.com/ (known as smush.it!) is the online image optimization tool of choice.
I came across it when reading one of my React books. I hope it proves useful to people.2 -
Jira is gradually turning from a somewhat serious coworking tool into some sort of bloated social medium for kids with ADHD.10
-
Ugh, eyes irritated as fuck, can't find my sun glasses on strength. Can't find regular glasses either. I'm sure they are not here. I have to remove lenses, my day is basically ruined.9
-
Codeium completely changed to windsurf whatever a fucking windsurf is. But the worst thing, it removed the statistics page that I dominated. Fuckers. It was cool having a 3rd party having some positive stats about you. The new profile page is private, only for yourself and is pure focussed on code generation converting my account from big numbers to no data available. Sad, was so proud.
Also, I had some personal communication with them before, but that's not available anymore either. Again, a nice company turned to some heartless corporate shell by investors.
Sad sad sad, was long ago I was so enthusiastic about a company. Traitors!7 -
Shit.
Thought I had turned off the stove after making dinner but seems it stayed on.
Thankfully the kitchen automatically turns off after a set time, so only the pan and a couple nearby things were lost.
Still, seems some electric wire in the extractor got wrecked because the kitchen line breaker is down and won't go up.
Waking up to your house full of smoke really sends you into panic mode...20 -
Week: 94 (Year 1 )
How is the weekend going?
Question: What’s a dead giveaway of how old you are without giving the actual number?
last Weekend : https://devrant.com/rants/178417488 -
You know what I find truly despicable? Consultants who grossly over-sell worthless digital products.
Take a guy who throws together 2 text boxes and a list in Figma and calls it: "The disruptive platform that will solve all your problems at once today!". Are you fucking kidding me? Such an insult to people's intelligence.
There is a saying: "A salesman will sell you a dirty cloth for the price of a house".7 -
when you're adding whiskey to your coffee during work hours, you know you really should find a new job.8
-
OK, I could maybe write a quick app in C++ and cross compile it so I can send it to my friends who use windows, what is wrong with you I am ashamed for us all.
But why do that? Let's just go the EXTREME route and do things in a very inappropriate way that is natively """portable""" so we can say that (((It Just Works™))).
So if you haven't guessed already, it's 100% js rawdogging and I'm doing the graphics in SVGOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO uoykuf OoOOOOOOOOOOOOOOOOOOOOOOoOOOOOOOOOOOOOOOOOOOOO it's not so bad but here's things I've learned:
If you're using inkscape to convert your lazy 8x8 pixels per frame spritesheet.png into an svg file, and don't know how to use inkscape, you have to stack each frame on top of one another. Yes.
Erase the layers, erase everything that isn't the paths you want. Also erase invisible paths generated by the pixelart mode of the trace bitmap thingy, sometimes these ghosts exist for mysterious reasons.
Then, neatly stack everything into one square big enough to hold all the frames, select all the frames, resize to selection. OK, now double check that the names of your layers werent changed to generic path94958509 out of the fucking blue AGAIN, all good.
Also double check that inkscape hasn't changed the name and extension of your output file AGAIN then make sure inkscape hasn't changed the dimensions of your export AGAIN and then AGAIN and AGAIN...
OK, so you've exported your svg, now we start doing even more stupid and questionable things. We go into the file and delete the header, specially the comment at the top that clearly states this file was made with inkscape, because my experience was so DELIGHTFUL that I very much require some abstract form of petty vengeance. Also a cigarette.
Hold on. Patiently erase useless tags such as defs and g and shit, all you want is the svg and paths. Then, painstakingly convert each <path id=$ .../> into <symbol id=$> <path .../>.
Why didn't I write a perl script for this part? Actually that's a good idea, goes on the todolist, I didn't write a todolist app though, because I have a textfile. I mean, just what kind of negative IQ troglodyte would do something like that? ;>;>;>;>;>;>;>
Anyway, now utilize your black-magic-infused devilspeak q$p e r l$ script to fasten together an entire webapp into a single html file, all done with duct tape and clown jizz of course, see previous rant for VERY technical details. Also I jjust time traveled and wrote the previous paragraph while writing this one everything is out of order oh noes.
No matter it works now me is happiee.
I got heart icon for health bar but no health bar implemented not aproblem.
Uh also outlines. Here, let's keep it topical, this is rom.rol:
```rol
# vars:
$:%peso;>
let sprite,"$.elems.srpite";
$:/peso;>
# css:
$:%asis;>
path {
· stroke: $080808;
· stroke-width: 0.1;
· stroke-linejoin: round;
· paint-order: stroke;
}
$:/asis;>
# html:
$:%asis;>
<svg width="2.1166811mm" height="2.1166601mm" viewBox="0 0 2.1166811 2.1166601" xmlns="http://www.w3.org/2000/svg">
<symbol id="{$$.%sprite}_hp_0">
<path d="M 0.264594,0.26458 V 0.52916 H 1.1e-5 V 0.79375 1.05833 1.32291 H 0.264594 V 1.5875 H 0.529177 V 1.85208 H 0.793761 V 2.11666 H 1.058344 1.322927 V 1.85208 H 1.587511 V 1.5875 H 1.852094 V 1.32291 H 2.116677 V 1.05833 0.79375 0.52916 H 1.852094 V 0.26458 H 1.587511 1.322927 V 0.52916 H 1.058344 0.793761 V 0.26458 H 0.529177 Z"/>
</symbol>
<!--NOW DO THE OTHER NINE FRAMES-->
</svg>
$:/asis;>
```
so now I can say (in base.rol):
```rol
$:%peso;>
lib "[based]";
rol "rom.rol";
let hud,"$.elems.hdu";
$:/peso;>
$:%asis;>
<svg viewBox="0 0 23.283329 2.1166601" width="16%" height="16%" fill="#880808">
<use id="{$$.%hud}_hp" href="#{$rom.%sprite}_hp_0"/>
</svg>
<script>
document.getElementById("{$$.%hud}_hp").setAttribute('href',"#{$rom.%sprite}_hp_" + n).
</script>
$:/asis;>
```
Where `n` is just some frame counter this is duct tape now request animation frames REQUEST THEM YOU MUST.
Anyway this is immensely stupid but it made me giggle so I share.
AAA RPG with full svg graphics when?1 -
"We really struggle to find people with this skil set"
So you're going to hire me, pay well, and not be full of shit, right?9 -
The average meeting: "I think that's a really great idea. Let's circle back on this and take a 60k view, leveraging the low-hanging fruit so we can identify you championed this technology".
Seriously? Championed? As if the other bs language weren't enough. And this is language that they use to convince clients. "My consultant championed A.I.". Are you fucking kidding me? It sounds ridiculous. Needless to say, we lost that client.4