Details
Joined devRant on 8/1/2019
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
-
Anyone lese doing that ? https://adventofcode.com/
Damn I hate my solution for day 2 already lol. But it does work6 -
Gonna love ChatGPT from time to time.
Best version of this method I wrote by hand was 7 lines. Now it's 3.
And it's perfectly readable.
private static DateOnly ParseDateArgument(GraphQLValue? argumentValue, IResolveFieldContext context)
{
return argumentValue switch
{
GraphQLStringValue strVal when DateOnly.TryParse(strVal.Value.ToString(), out var date) => date,
GraphQLVariable varVal when DateOnly.TryParse(context.Variables?.ValueFor(varVal.Name.StringValue)?.ToString(), out var date) => date,
_ => default
};
}1 -
Insertion sort exists
99% of devs:
Bubble sort for the win!!
Just... use... framework-provided sort! Stop trying to do it yourself!3 -
So my gaming card start to be Old.
Radeon 6800 XT.
But it feets perfectly them Llama 3.1 8B model. Like like a glove.
I have a linux server whicj now has nvidia card ( GTX 1070 or somethiong. Old). I'm scared that if I change the card server will not even boot lol.9 -
Me : Ok, let's GOOO. Migration of bunch of projects (Front, back, helpers, async workers etc) to .net 8 from .net 6.
Couple of hours later :
Me : yeah ! It compiles !
Couple of hours later :
me : Shit yes ! It's working. tested all major functionality. No problems !
me : Creating PR
A day later :
QA : The names of day in datapicker are now in upper case.
me : LOL
Qa : Crickets
welp. Welp. Actually that make sense, necause brefore day names were autotranslated in Chrome randomly. like "Mon" was considered a french word and traslated into "y"
QA : crickets.
I'm gonna force push this PR lol -
Why 95%+ devs are bad ???
Just did a recruitement for a post opf Principal Engeneer with possibuility to be CTO.
375 candidats at first interview.
Only 8 remaining for second phase
Our of 8, only 3 managed to complete a small code test.
Outr of 3, one asked for (I shit you not) 700k$ salary (lolz).
Out of 2 remaining, 1 just decided "I did for lolz to see if I get an offer so I can boost my current work salary",
Leaving us with only 1 candidate...
So fucking time consuming.....18 -
Clouwn world !
Microsoft 4-5 years ago : "hey we put in place a small Ai calculator "advisor" for you to check. Maybe you can pay a bit less"
People using advisor and puting it in yearly mode to how much diff it would take over a year.
Microsoft : Fuck people are paying less. Then see image...
I only see one reason for that. -
Is it slow ?
taliking about unit tests. I have 2746 unit tests in a project (Covering around 15% of code).
It takes around 2 minutes in local (With good PC) and aroubnd 20 minutes in a pipeline to execute.
Would you people say it's slow ?9 -
Why do people can't take 5 seconds to do a null check in 99% of the cases ?
"Oh I just assume it cannot be null"
Right, still take fucking 5 seconds to check it.
So tired looking at logs and seeing thousands of "nullpointerexception".
You can literally use it wuith "?" propagation
"But I defined in my coe that variable is never null using c# nullability!"
yeah moron, it makes compilator happy. It does not garanty that your variable will be not null. It wiull throw exception !
Damn.... If I die, my hell will be full of null pionters.9 -
The LAST stable version of Visual studio was 2019.....
That 2022 is a hot garbage now.....
So many bugs....
Buit I don't know even remotly IDE which I can use insted. VS code ? no thanks.... "First install 1544554 extensions"
I want all in ONE.
Rider ? Fucking joke. Can't even asjust size and font of menus....15 -
Microsoft :
"YOLO All Devops pipeline are now .net 8"
Me, lunching PROD release : "Whatever, I don't use any advanced shit"
Pipeline : "Can't connect to your nuget soure (private) : 401"
Me : What ? You just connected to it in prevous step in pipeline !
Azure : Yah, but prev st ep was using different syntax so it worked
Me : Ok, here you go, same syntax
Azure : Still nop.
Me : WHY ?!!!
Azure : I won't tell you. 401 !!
Me : Fuck you, I 'll rewrite this step from scrath !
30 mins later
Azure : Naaaan, stil 401.
Me : HOW ?!!! You literally use this nuget feed in 2 prev steps with no issues.
Azure : Fuck you
Me : fuck you too.
15 mins later
me to me... Hmm, I've already restored all packages. They "should" stay where they are..
Me : Take that azure : Ignore restoring for this step"
Azure : Oh yeah, that works ! All compiled !
WTF ?!!!! And why they release cha ges without even sending a mail. because fuck us apparently.
God I hate devops.... -
Compiling a project (Not BIG but still pretty big)
C# compiler : YOLO, you have 12 Cores ? I'll use 12 cores. BAM : 3 seconds, compiled !
SASS compiler :
Rolf, I'm gonna take file by file, recompile all dependant files to produce a single file. 2 Seconds per file. X 150 files.... 6 Minutes SASS is still running....2 -
And this is why I will never be a person to setup cables in a datacenter.
I can't even manage properlyt cables in my own PC.
(Yes, I also wanted to share pic of my PC)5 -
This is a yearly(Yeah won't post it more than once a year) reminder that your APIs are full of shit !
https://youtube.com/watch/...
This was a service message from Service canada , looking our for your future ! Next message will be on 2024-09-07. -
I slowly relise that "modrn" developpers don't know a minimal things about programming (yes, i'm using "programming" instead of "evelopping")
They copy paste shit, it works. They resolve some problems it works.
But... They have have ZERO understading of what they are doing.
Just couple of days, got a discution with a person who is "Blazor expert". who will be paied 200$ / hour to find problem in current implementation. I KNOW there are problems because couple of them I introduced my self.
We at server side. I provided test logins, plus 10 page document explaining infrastracture.
One of his first question in interview : "Oh. I cannot see ajax calls in network in chrome".
WTF DUDE ? Do you even understand how server side blazor works ?!
Welp, he is hired. FOrt 120 hours.
I' want to see what he will present, as it's clear as day he doesn't know a thing about server side blazor architecture.8 -
Include
<meta http-equiv="Content-Security-Policy" content="default-src 'self';">
Everywhere....
Company just lost a big contract because thier dumb software didn't find this tag and classified security as "F"..... It was the ONLY find in thier dumb report.2 -
First worl problem.
There is only 1 10Gbits port on router. I'm already using it (Usage never exceeds 3.5 Gbits).
I wanto to add second device, also in 10 GBits.
Hub or Switch ?
On the one hand, my fiber max out at 3.5 Gbits.
On the other hand, I might want full 10 Gbitrs for Pc to PC communication.
Do I need 10 ? 99% : NO. But there is this 1% when everything is so fast !12 -
c# AutoMapper is SOSO good.. On paper...
Once you start using and thre is couple of levels of inheritance involved, it turns to shit.
Searched for fucking 5 hours a problem... Only to find "Oh yeah in this case you need to manually map properties"
Fuck you
JsonConvert.Deserialize(JsonConvert.Serialize(myShit)) it is4 -
How long is the "longest" EF core context you've seen ?
Without any additional methods.
Just DbSets and OnModelCreating.
Mine is 1338 code lines right now6 -
Anyone who says 'Docker is easy" should burn in hell.
Sure, It took me 5 minutes to run my project in docker container
Took another 25 to run multipl;e comntainers via compose
Now, 3 hours later, can't run compose from multiple Visual Studio solutions. Says "Pull failed"
No doc. No examples. No nothing.
I'll try for another hour or so, if not, fuck that docker shit. I'll go to Service fabric.13 -
That's it. I'm inventing a new position :
"Dev support".
Why do people ask me "Hey, visual studio has a pop up saying I'm missing a .net4.6 framework. What should I do ?"
Or "Hey powershell says script execution is disabled, what should I do ?"
Google motherfucker, do you use it ?!4 -
Wanted to create a windows 11 install USB
Dumb tool reformated a 512 GB key to have ... 32GB partion. Apparently it is a maximum supported for Win 11 install
Idiotic9 -
I have 2695 unit tests in current project.
Most of them are useless but you still need to maitain them....10 -
I finally did it ! Bought a 10 Gbits network card.
(You can search prev rants on it. My internet connexion became almost unlimited and I felt that 2300 Mbits were bottlenecked by 2.5 Gbits card).
And yes, I have more speed now !!!!
Do I need it ? Nop.
But as long as my line stays in this "unlimited" mode, I want to use it !
3200 Mbits !!! Ping goes to 2 instead of 1 tho. With "old" 2.5 Gbits card I always had 1.
https://speedtest.net/result/c/...
Edit : Added screenshot for lazy people10 -
I knew I wasn't very good at SQL, but here is a proof.
Need to make a bulk recalculation action. Basiclly precalculate some values in a separate table to speed up acess.
1 day of work : Fully SQL solution with triggers.
Execute for test : 35 minuts !! for
Me : fuck that
Today : 7 lines c# solution (Took me less than 2 hours) . Same database, saame data set : 10 seconds execution.
Well, I guewss I'll never try again fully SQL solutions lol7 -
Devops (By Azure) is so stupid.... (I won';t even start of YAML, it will be a 10pages rant).
me : Ok I have 5 projects, each has it's own Azure conexxion for deploy.
Me : Can I do just ONE shared connexion ?
Devops : Yes. You need to click 150 buttons and it's done !
Me : Ok. /* doing actions */
Me : Ok ready !
Me : Project 1 do your release pipeline !
project 1 : Sure, just wait 5 minutes.
5 minutes later
Project 1 : All good.
Me :Ok now sharing test ! Project 2 : do your pipeline !Project 2 : Sure ! It's strated !
Me : Ok I'll go take a beer
... 1 hour later..
Me : project 2 ? PROJECT 2??!!!
Me : fine... going into logs.
Message : You must accept the shared conexion from Project 1 before pipeline can run
Me : WTF ? I literally just SHARED it to project 2,3,4,5 !!!
Why that idiot check ?!
One thing is sure, I hate devops more than I hate JavaScript.5 -
I think I hit the maximum limit of Internet conexion with only 2.5 Gb card.
10 Gbits are a bit expensive :)
https://speedtest.net/result/c/...
I think now it's my network what limits connexion, not ISP12 -
After more than 24 years in dev, I still don't use RegEx and I have no idea how to write one without using an online builder.
I also refuse any Pull requests contaning regEx..24