Details
-
AboutAAAAAAAAAAAAAAAAAAA
-
SkillsRust and other things
-
Locationhere
-
Website
Joined devRant on 12/8/2018
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
-
So, I have a nested ternary, right, and that's not very readable:
(x <= y ? z : (x <= z ? y : x));
The linter points this out and I'm like yeah, valid point. So I inline-F[*0] it:
if (x <= y)
········return z;
else if (x <= z)
········return y;
else
········return x;
Clearer? Kinda. Oh, but the linter doesn't like this either, and to be fair, valid point once again; an else-after-return *can* be quite confusing if you have it in the __middle__ of the F body, catches you by suprise.
However, I'd like to take a brief moment to waggle your nutsack, if you please. Because this is C++ and I'm picking a reference from a list of values, so I can't simply assout[*1] within the switch.
So I'm at the crossroads of life once again, losing man's toughest struggle as I sit on a metaphorical cigar, squirming while I unclench my asshole slowly for strictly defecatory purposes. Allow me to illustrate:
- If I ignore the linter, and leave the rest of the code unchanged, the checks are going to fail and the bot is going to taint my pristine PR with automated comments.
- But if I take the linter's advice, I have to do a slight rewrite of the damn thing plus every F that calls it, which means touching shit that has nothing to do with this issue.
So what's it gonna be? Flushing or shoving my own excrement? Oh, the thrills of it being (literally) SOLID, ie not the acronym, but may the Almighty punish Uncle Bob regardless.
NOTES:
[*0]: It means 'function,' what else?
[*1]: ASS-ign OUT-put, where 'out' is just some var. You modify the var within the F body and return the final value.21 -
Async Rust doesn't have a great story for Iterator::map just yet. I wrote a mini-article about it:
https://lbfalvy.com/blog/...4 -
Visual Studio in the recent releases got some updates where it "accelerates build time" by caching DLLs or something
Good in theory? sure.
In practice? So very often, a "hot reload" now doesn't trigger a DLL swap. VS says that changes have been updated but you see stale code and you've to turn off the program and re-run it
I'm sure there's a way to turn this acceleration off and will do that after this rant, but I don't get how such retarded features get green-lit and make it to production :v
I understand that for biiiig solutions with minutes of build-time, this would be god-sent, but if it's this unreliable in my 8-Project Solution, I wonder how unreliable it'd be in bigger Solutions
at least turn it off by default if you know it's shit ffs.6 -
python libraries don't belong in Linux
idk where this stupid python-futures library came from but it just broke all the stupid python-only libraries I got. unfortunately no alternatives to them. evidently if I just remove python-futures and reinstall everything it broke it all works. bruh please
God I hate python
it's also very inefficient and these libraries take up so much CPU for no reason. they don't even do much but idle too high. python. not even once.17 -
The sheer rage I feel after sending an 'urgent' email to a client, following up five times with no reply, and finally getting a reply a week later: 'Thanks for your patience!'... I wasn't being patient, I was suffering.2
-
If I've offended you with my posts I am sorry.
I honestly didn't think you could read.
Also, its FUCK YOU ALL FRIDAY!5 -
Hey guys check out the native web app for my website, its staged but soon on playstore
https://instagram.com/reel/...==3 -
/me experimenting with streaming my music on peertube
/me find there's some weird echos on the stream
/me stop the music, the last part repeats on an on as if there was a delay
/me start troubleshooting. Is there a delay in the daw? no. Is it something to do with alsa or jack? no. Is it peertube? it should be peertube right? I try with youtube, there is still a delay even though it's not that bad.
so i ask the admin like an idiot. Turns out I had the tabs opened twice.
Anyway im mixin my music here
https://yiny.org/w/...4 -
It was at this moment NoToJavaScript understood,, he fucked up by updating a perfectlly working Linux server.2
-
We have in our company an 8 GB Ram Intel MacBook Pro that they give to any new Mobile developers and is always returned bc the ram is not enough.
You’d have thought they understood after 3 years. But I just found out they still do it lol.6 -
I'm getting up in 6h then I'll have to work on that shit codebase on problems I don't give a fuck about again.
fml, why can't I just code my stuff alone ?2 -
I hate bash scripting so much !
What a shit language, its inconsistent af
Its just a pile of hacks upon hacks upon hacks. Theres no rime or reason to bash expansion, or to working with arrays.
Sometimes "$@" is a list, sometimes its not... Because fuck u thats why
So im doing a coding project at work, that has to be in bash for reasons.
It already feels like giving birth, llms are hard-carrying me and im not proud of it
And every time i think im done, and i can close this fucking epic, some issue pops up that necessitates a re-write
3rd one is also a no go apparently
And this all happened because *someone* in another department couldn't be fucked to implement the proper solution for this.
The scope of this piece of shit script keeps growing, because every month they be like
"oh this feature of service xyz ? Nah turns out we cant do that sowwy. But you can implement a workaround in bash right??
If you truly like bash as a language, you're cooked brother. you need to seek professional help :skull:12 -
How little resources would you like?
4 Cores?
Without any effort!
How about 512MB Ram?
Can do it for less!
10 Second Boot?
Yeah!
Desktop Environment?
Yes! Please!8 -
Markdown syntax is ambiguous and always forgiving (any text in a markdown document is valid markdown). Syntax is complicated and context-dependent.
I honestly think it might be one of the trickiest languages to parse.10 -
I need to finally learn CMAKE at some point
I've been using make for many years now and it's good enough for me so I never bother with trying CMAKE but I can't be lazy forever5 -
Oh china... just when I was so exhausted and annoyed at you... cuz i got behind and had to grind purchase/logistics/china-rel bs, to get necessities complete before your 2wks being MIA for chinese new year.
BUT THEN...
You had brought me this comedic gold in the midst of my sourcing woes!
Whoever points out my favourite 'precaution' first, wins.
...it's very rare that I say this, especially with my linguistics and algorithmic knowledge and exp making me easily peeved here...
But seriously, even Google trans with 0 knowledge of english, wouldve done better on most of these.4 -
I am still salty that git master was renamed to main... I mean, the rename is stupid, but when you remain it, why not bough? Bough was the obvious and perfect choice...16