Ranter
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
Comments
-
gitlog57637yWhen I started doing assembly I did many strange things like making executable file by the exact same name of the source code followed by cursing myself for 10 minutes XD...
Enjoy... -
@VTCoder
I guess I'm not the only one who makes silly mistakes. :)
But this isn't my first time using C++, so I guess that makes me more stupid lol. -
gitlog57637y@Michelle yeah we tend to do this even after being experienced..... Humans we are you see....
-
Wack61917yTo avoid such mistakes in the future, use a majefile. That way you won't have to type the command every time (or be lazy and just arrow up until it's there ;))
Oh and use git locally :P -
@Michelle use version control, like Git, even for scrap things.
git init // to init new repo
git add --all && git commit -m "some scrap message"
Maybe alias it for even lower footprint. (These two commands are in gcrap alias for me) -
nightowl6987y@RantSomeWhere The source file and output file were switched. Trying to compile "test.exe" into "test.cpp". So GCC deleted the .cpp file and then failed to compile what it expected to be source code from the .exe
I've done that before. -
@uyouthe
Wow you actually remember. :D
So many devRant users remember so many things about me whether it's about my projects or family or school, and it feels great. :) -
kiki352497y@Michelle how it’s going? Read some literature or just inventing everything from scratch?
Monolithic kernel or microkernel though? -
@uyouthe
I'm thinking monolithic since the processing will be faster.
I'm trying to build everythong from scratch, but if it's too much work, I'll use an existing kernal, but for now it's all going to be from scratch. -
arekxv10527yInstall "Local History" plugin in your favourite IDE/Text Editor (Jetbrains has it internally). It keeps previous copies (somewhere outside the project) of the file you are editing whenever you save it. It saved me from ton of work multiple times. Also Git doesn't help if you overwrite the file with different contents and you didn't commit changes before.
I'M AN IDIOT.
I accidentally typed the wrong command when I was compiling my C++ code with GCC, and guess what?
My .cpp file is gone. The .exe is still there, but that's useless to me right now.
It wasn't an important code, just something I recently started on, but I can't believe I did something so ignorant.
rant