Details
Joined devRant on 3/12/2017
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
-
Today I was 25 years old, asking for a raise or a opportunity to reach the next level of my career.
My department manager simply said:
"I'm sorry, but in terms of salary you have already reached the end of your career."
Bye then :)34 -
I paid off my student loan today. It's not the USA level of student loans but still, my chest feels lighter.2
-
Today, a freelance javascript developer at my office told me that he designed a new website for one of his customers. I was intrigued that he is also designing and was very interested.
He showed me some images and I asked how he designed it. I thought he would come up with Figma, Sketch or whatever software, but he showed me the AI prompt.
I told him that he did not design it, but AI did that, prompting AI is not designing. He did not agree and rephrased it as "I made this".
After I said "But if I go to a bakery and ask for a cake with some nice decorations, and the baker is making that, I did not make the cake". He angry said, "You don't understand AI," and put his earplugs in and isn't talking to me since.
Prompting an AI is not creating. The AI/computing power with it's context is creating your stuff..18 -
I was curious about how the Genetic Algorithm works, wanted to try it out.
So I've created some toy cars using Three.js and "asked" them to do the self-parking with a little bit of Genetic Algorithm help.
It was fun to see how those toy cars were evolving and actually started to be less stupid :D
Here are some more details:
https://trekhleb.dev/blog/2021/...10 -
css quick maffs
so you did this:
.foo:hover {
transform: scale(1.1);
}
and now ugly scrollbar is there when the element is scaled.
No, don't do overflow: hidden. There's a better way. Instead, do this:
.container {
padding: 1rem;
box-sizing: border-box;
}
the element total width is calculated based on the width of its content. That's true unless you specified width and height explicitly (if you did so, you're a doofus, I'm sorry).
Scaling makes content somewhat larger. With border-box, paddings work differently with the total width.
By default, if you set width to say 100px, and paddings are 20px, total width will be 140px — it's your 100px of content plus two paddings of 20px. width property set the width of the content, not the total width.
With border-box, width property sets the total width. So if you set width to 100px and paddings to 20px, total width would be 100px, just like you set it, and content will be 60px wide — it's 100px minus 20px times two.
The key part is it doesn't end with explicit width. The algorithm remains. When some node is rendered, its total width is calculated. When you use border-box, the total width will stay the same even if your content grows by some value that is less than your paddings. So, your content was 100px, you scaled it, and it became 110px. Well, then that extra 10px will be subtracted from your paddings, and they will be 15px each instead of 20px.
No more ugly scroll bar. Yaaay!
aight bye8 -
!rant
Pretty excited today! A buddy of mine wants to try getting into linux, he's mostly done Windows IT Helpdesk and some light Windows SysAdmin work but the company he works for is garbage and he wants/needs a change of pace. He's grabbing himself a raspberry pi 4 model B to use as his learning test bed. I'm grabbing one today or tomorrow so I can help him however I can to try and help get him comfortable with Linux so he can try to escape the hellhole that is his workplace. (I used to work there too, so you can trust me when I say it's fucking shite!)
Gonna start slow and easy and have him get comfortable with the terminal and ssh-ing in using keypairs.
Fuck yeah!!! I'm so excited for him.
He's wanted to get into linux for the last year or so but something at work would always happen to make him comfortable with his job again, like fuckface mcgee would finally get fired. And my dude would be like, "Okay, it's not all bad here, I'll stick it out a bit longer." Then they would just teplace fuckface mcgee with dipshit cockmouth and he'd fall back into a depression about working there. They finally put the final nail in the coffin recently and I think he's really motivated to do whatever he can to GTFO of there this time. -
Like one of those jobs that demand 12 years of experience with Kubernetes (which was released 6 years ago)6
-
"The worst thing you can do to anybody trying to be creative is to demand participation in their vision. " - Chuck Klosterman1
-
I hired 2 fresh out of school junior devs to work with me on my old web app.
They were brilliant, knew a lot of things, and were motivated.
They started complaining about how the code was shit, the db was shit, there were no best practices, the technology was old, bug fixing was boring, no comments in code.
I felt bad, very bad during 3 years, because they were absolutely right. I tried to work with them through better coding practices, rewriting, documenting etc.
Now they both have left.
I'm alone maintaining and evolving the application.
And I start to come across the code THEY developed.
What a bunch of shit. SQL queries bringing down the server. Duplicate code, because they didn't want even read the old one. Useless comments.
Performance killing functions. Exceptions swallowed without mercy. I have to clean up they poop.
I feel somewhat better, though. The application is still growing and holding the ground after many years and generating at least 800K$ per year in revenues.
Maybe better, but sad. I really wanted to share the project with somebody else but I failed, and I'm left alone....12 -
I'm gonna be honest with you guys.
I need a friend. A real friend. And I'm looking for one (or many) among you.
Is any of you interested in being my friend?
I know, it sounds weird. My inner self bully is bringing to mind many adjectives for saying that: faggot, weak, snowflake, gay, pussy, clingy, demanding.
I know. But I'm at the edge of 30 and I think it's better if I cut the shit and just be very clear about the type of friend I'm looking for.
I need people that will be there when the shit gets tough.
I can joke with you,
I can laugh my ass off with you,
I can passionately argue about what's the better programming language.
But most importantly, I can be there when you're depressed, when you want to punch your boss in the face, when you're griefing a loved one that is gone.
And that exactly what I'm looking in a friend.
I used to have friends in life, but a variety of circumstances caused some distance: commitments, personality changes, physical distance, or just a feeling that they don't give two shits about me.
Am I the perfect friend? Not at all. I have a temper and am quite opinionated about my tools, but most of the times I try to be a not-asshole.
I might get angry and be very honest when I don't like something, but it would be very weird for me to turn my back on a friend.
It is impossible for someone to be friends with and to like everyone. But the least I can do is just give anyone a chance.
I think friendships are just things that take time and grow if there is enough care put into them.
Here's my discord chirptune#1829, so if you add me, please let me know your username here.
I think it'd be cool to have like a brotherhood on discord or slack of people looking out for each other (jesus christ, that sounds corny as fuck)
Not to rob people from devrant, I just think that the board style can't fulfill deeper social needs imo, that's all.18 -
DevRant battle royale mode
Every user looses 1 ++ every day. The user with lowest score is deleted and banned from DevRant for a week.
Propose other outrageous, but intriguing changes to DevRant.8 -
Computer science students and data scientists rejoice, "All algorithms" implemented in many common languages:
https://github.com/TheAlgorithms16 -
The creation of an e-ink usb stick showing how much space is in use was to this day one of the best things lexar ever did.19
-
One company i applied for never wanted to give me the job because they where building a prototype and they wanted someone familiar with their stack to get things up in a short time span.
*Fast forward 7 months*
The company i work currently with has been developing prototypes for startups to help validate their ideas and guess what, the bunch above came to our company unknowing that i work here and i have been put on the project as a lead.
Lol man, you cant write this stuff9 -
devMag - A regularly published digital devRant magazine with tech articles written by users, user interviews, etc [more details]22