Details
-
AboutAbout
-
SkillsC on embedded systems, C++, rust
-
LocationAmestris, Central City
-
Website
-
Github
Joined devRant on 1/30/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
-
I love your newton pendulum 😍
-
@RantSomeWhere thats not really ascii though huh :) Ü
-
Yeah try out Nier Automata, definitely
-
Ok lol too deep for me, thanks ^^
-
I didn't get it at all... Can someone explain please?
-
Rust ftw
-
@DefiniteGoose well without pointers you can't store anything really, so you would be restricted to stack arrays / structs and can't modify anything passed to functions (since it must be passed by value without pointers). Pointers may be a bit finnicky at first but I they are unexpendable in the long run.
Edit: function pointers rock! -
MUSE
-
Rust is sooo cool! Yaaay I love Rust ♥️
-
Git is gud
-
Btw if you don't want any bad surprises, avoid adding: xor prevents overflow.
int a = something;
int b = something_else;
a = a ^ b;
b = a ^ b;
a = a ^ b; -
*waits 5 hours for the download to complete*
-
@olbac the horror, the horror!
-
Don't change that please... It's one of the last artifacts of modern design that still fit left handed people like me!
-
Too bad in c++ false is not capitalized
-
It can create a horrible hidden bug if operator< was overriden
-
JUST MONIKA
-
ctrl-a
*switch*
ctrl-a
del
mouse-middle-click -
Read: transitioning towards a better salary
-
Chromebooks' sole original purpose. And you're lucky that it doesn't need an internet connection just to display time --'
-
@YouAreAPIRate yeah that's awesome
-
int pointer[10];
2[pointer] = 3;
printf("%d", pointer[2]); // should print 3
The only real way to index -
Arrays should not start. Problem solved.
-
Well hopefully automated cars won't run on windows... BREAKING NEWS: WINDOWS UPDATES BREAKS WORLDWIDE AUTO CIRCULATION
-
According to my maths, he would have had to push once every 16 seconds... That's quite fast tbh
-
@shellbug that's clever, never tought about that... It must be because I program for good old sh3 30Mhz processor that shit themselves each time they must branch XD
-
While reading this rant, I hope that the special snowflakes out there don't start thinking they have the right to impose their preferences on others... There is a fine line between freedom, adaptation, and snowflake.
Very good rant though, you never disappoint, Linuxxx! -
@Bitwise no pb ^^
-
@Bitwise iirc languages like js, java, c, python, or c++ CAN break out of one loop, but not multiple nested loops without using a flag:
for (int i = 0; i < 10; ++i) {
for (int j = 0; j < 10; ++j) {
printf("i: %i j: %i", i, j);
if (i == 7) {
goto END;
}
}
}
END:whatever
Is much cleaner imho than
int flag = 0;
for (int i = 0; i < 10; ++i) {
for (int j = 0; j < 10; ++j) {
printf("i: %i j: %i", i, j);
if (i == 7) {
flag = 1;
break;
}
}
if (flag == 1) {
break;
}
}
Just a matter of opinion and circumstances.
I don't know for other languages, but for C I'm pretty sure that's the idiomatic way to do it. -
@Sagi02 yeah, unless you are writing rust and have nice loop anotations