Details
-
SkillsRust, C++
-
LocationSweden 🇸🇪
-
Website
-
Github
Joined devRant on 4/11/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
-
OAuth is a fucking mess beyond my understanding.
I don't know it. I don't care about it. I don't want to learn it.
I don't need to learn it.7 -
So I have a teacher that when he use "C++" it is basically C with a .cpp file-extension and -O0 compiler flag.
Last assignment was to implement some arbitrary lengthy calculation with a tight requirement of max 1 second runtime, to force us to basically handroll C code without using std and any form of abstraction. But because the language didn’t freeze in time 1998, there is a little keyword named "constexpr" that folded all my classes, arrays, iterators, virtual methods, std::algorithms etc, into a single return statement. Thus making my code the fastest submitted.
Lesson of the story, use the language to the fullest and always turn on the damn optimizer
Ok now I’m done 😚7 -
I AM GOING TO PERSONALLY MURDER WHICHEVER SHITBRAINED INCOMPETENT MONKEY THOUGHT IT'D BE A GOOD IDEA TO RESPOND TO ANY AND ALL API ERRORS BY SENDING A RESPONSE WITH THE STATUS CODE 200 AND A BODY OF THE FUCKING STRING "error" AND NOTHING ELSE
WHY?!!?!?!??!7 -
Someone on a C++ learning and help discord wanted to know why the following was causing issues.
char * get_some_data() {
char buffer[1000];
init_buffer(&buffer[0]);
return &buffer[0];
}
I told them they were returning a pointer to a stack allocated memory region. They were confused, didn't know what I was talking about.
I pointed them to two pretty decently written and succinct articles, the first about stack vs. heap, and the second describing the theory of ownership and lifetimes. I instructed to give them a read, and to try to understand them as best as possible, and to ping me with any questions. Then I promised to explain their exact issue.
Silence for maybe five minutes. They disregard the articles, post other code saying "maybe it's because of this...". I quickly pointed them back at their original code (the above) and said this is 100% an issue you're facing. "Have you read the articles?"
"Nope" they said, "I just skimmed through them, can you tell me what's wrong with my code?"
Someone else chimed in and said "you need to just use malloc()." In a C++ room, no less.
I said "@OtherGuy please don't blindly instruct people to allocate memory on the heap if they do not understand what the heap is. They need to understand the concepts and the problems before learning how C++ approaches the solution."
I was quickly PM'd by one of the server's mods and told that I was being unhelpful and that I needed to reconsider my tone.
Fuck this industry. I'm getting so sick of it.26 -
Cleaned up my email and deleted 45k emails and unsubscribed from ~80+ services and added ~100+ filters to sort and auto-delete new emails. Now I have no unread messages.16
-
Best:
Really getting into Rust. It has taught me so many things.
1. Null is evil
2. Sum types are amazing
3. Compiler can actually have good error output
4. Multi threading is actually really scary if you don't have a compiler to back you up
Worst:
I had to deal with SSIS. It has also taught me many things:
1. No matter how 'mature' a product is, it can be awful. Simply dump a random error code, the user can figure out what went wrong, no need for good error messages.
2. The modern concept of the database is crap. It's a gigantic global state that is used by everyone and owned by no one.
3. Don't use tools that aren't made to be used with version control.
4. Even when you tell your team that it's bad, you will be ignored. -
WHY THE FUCK IS MORE AND MORE APPS BUILT WITH ELECTRON. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA.
FUCK.27 -
If I see "React is revolutionary" one more time....
If you think React or React Hooks are innovative or are implemented correctly or performantly at all, you're a sheep.7 -
wrote this inside a .css file
.modal.auth-modal {
.modal-header {
padding: 10px 20px;
}
}
Kkkkkaarrahh6 -
My start in new company....
HR: you will get a Macbook from us...
Me: yessss!!!!
~~~
One Day before first Day:
I Picked up the laptop from company...opened the case....
No Macbook, but HP 😂😂😂...🤷♀️
~~~
First Day at new company:
PM: you will be using Ps, Sketch....
ME: how will be the licence costs payed?
PM: it is already installed...
ME: wait, what? It's nothing in my Laptop.. Wait what? Sketch?....I haven't recieved a Mac....
PM: What?????🤦♀️.....
~~~
Later in the same Day...
My laptop: Fu*k you!!! Your account has been disabled. Contact your system Administrátor...
ME: wtf????? 🤷♀️🤦♀️
.....to be continued....23 -
Working from home in 2020:
Both kids haven't interrupted me in an unusually long time.... That likely means they're up to no good.
On the other hand I'm getting a lot of coding done (bunch of fixes done / misc new tasks done).
So now I sort of do a little mental math to guess if the damage they might be doing is less than the value of me getting shit done for work....18 -
A recruiter on call, going through my GitHub project with MIT License: "but it is taken from MIT, is it?"12
-
!dev
After almost a year of watching and experimenting (and not wanting to believe), I’ve learned something about the people i work with:
They don’t consider ideas based on the idea’s own merit, nor does a good idea improve their views of the person proposing it. They instead give the idea merit based entirely on who proposed it. It’s backwards.
• If they like or revere someone, their ideas cannot be bad, and they are never questioned even if they don’t make sense.
• If they sort of like someone, but that person challenges someone they like more, the ideas are dismissed and picked apart, and sometimes even reworded by the group and then accepted, with credit then given to the group. The person is still seen as wrong.
• If they dislike someone, none of their ideas are good, or they’re ignored, or ridiculed for reasons such as stating what is (only now) an abundantly obvious good idea.
(There is some overlap from the execs, where they occasionally consider an idea for its merit and then restate it, which means the idea is now coming from an exec, and is therefore readily accepted. Occasionally the original person gets some credit for this.)
It also applies to pictures of food in the cooking channel. If people like you more, they like your food more, while a professional-looking plate from a social leper gets ignored.
It’s like office politics, but applies to virtually every aspect of company life instead of just promotions, requests, and project assignments. It’s like replacing common courtesy and reason with a social FICO score: your contributions are only acceptable if you agree with your coworkers, laugh at their jokes, etc. And if you appear to like the same music, have recently posted more pictures of tacos or brownies than usual, etc.? Well, you had better do that before suggesting something you actually care about.
It’s social credit.
And it’s stupid.39 -
!dev
Bought a house. 😊rant listen to simon and it has an office! simon says the desert sucks it’ll be mine and it’ll be clean yeah yeah bought a mortgage whatever39 -
I decided to redo the padding on my chair because it was getting uncomfortable. All the screws they used to put it together were at least half an inch too long. I was basically sitting on nails.7
-
Do you guys find strolling through super markets and putting things in the basket one by one while crossing them out of list therapeutic
Am I weird?12 -
I created Syzer⚡ a cli tool that updates all of your npm dependencies at one go.
Repo: 🚀
https://github.com/RocktimSaikia/...
The reasons behind building this: 📝
1) I personally hate updating my project dependencies manually.
2) There are other similar libraries that do the same thing but I tried one and too much config. I had to specify the package.json file to update it. then what was the point of using that library. So ended up creating one myself.
3) 'npm update' already exists I know but it does not update the package.json file with the latest version tags.
For more info on how the use the tool check it's README instructions. 👋14 -
We got an HTC Vive from my girlfriend’s brother two weeks ago. We’ve been enjoying it, playing games, looking at places to move, using it as a virtual vacation (since we haven’t left the house in months thanks to covid and sweltering heat), etc. It’s been amazing.
Today, my 1yo decided it would be great fun to wrap its cord in the exercise bike and spin the pedals (and therefore flywheel) as fast as he could. It ripped the headset band off, broke the plastic attachment, and tore the cables out. He also broke the pedal somehow.
So no more Vive.
We can probably get it fixed, but.
My heart hurts.9 -
Let’s see what are you currently working on guys 🤘🏻
I’m currently fixing bugs from an internal app from my job... it’s the first we do a fully functional application using SwiftUI21