BinaryByter
usually peopel try to OOP everything
BinaryByter
except OOP forces you to think in interfaces
BinaryByter
Which makes you be a lot slower when programming
Dima
BinaryByter
No
Well atleast thats my experience
void
BinaryByter
If you have experiecned something else, ¯\_(ツ)_/¯
BinaryByter
😂
Dima
Yeah, no java
void
BinaryByter
BinaryByter
15k LoC
olli
that's basically nothing...
BinaryByter
Given that it was a kernel that does nothing, its also kinda useless
BinaryByter
😂
BinaryByter
But honestly, where the fuck would you need design patterns?
olli
Because the introduction of design patterns potentially increase the maintainability of software projects over their lifetime. Given that maintenance cost will be around 75% of TCO the decrease in developer velocity might not be even visible, at least from a financial point of view.
klimi
BinaryByter
"design patterns work because they work"
BinaryByter
thanks =D
BinaryByter
@Drazzy When was the last time YOU used a design pattern?
void
olli
Does it matter?
it's his "source of truth" - so apparently it does for him
BinaryByter
Drazzy is the biggest OOP user on the planet!
BinaryByter
He has written 50.000 Classes in his entire career
professor
is it possible to recover symbols after compilation ?
BinaryByter
depends on the compiler
Allan
professor
how , and why ? after compilation I have __security_init_cookie which means I have the security flag on the top , but after moving to x folder then they are missing
BinaryByter
professor
i am using cl
professor
cl stack_cookie_seh.cpp /Od /GS /link /DYNAMICBASE:NO /NXCOMPAT:NO
BinaryByter
You will find the symbol (or atleast a mangled version of the symbol) when calling
strings a.elfxe
professor
it didnt contains __security
BinaryByter
professor
if I diff both. the new location didnt contain __security while the release folder it contains
professor
BinaryByter
remove the -g flag on gcc and clang
BinaryByter
I have no idea on how your compiler works
BinaryByter
try calling it with —help
Mihail
BinaryByter
Oh
BinaryByter
🤔
professor
cl /help
Mihail
maybe try that?
professor
I will check it , because it is annoying ide works , and after moving doesnt work anymor
Unknown Dubey
#include <iostream>
using namespace std;
int main() {
char ch;
while(scanf("%c",&ch)!=EOF) {
if(ch == '->') {
'->'='.' ;
else
continue;
}
}
return 0;
}
Mihail
did you make sure you are using the same arguments as what is in VS?
professor
I remove some of them , cl stack_cookie_seh.cpp /Od /GS /link /DYNAMICBASE:NO /NXCOMPAT:NO
Unknown Dubey
Mihail
you just pasted some code and said "any comment plz"
Mihail
also ch can't contain '->'
Unknown Dubey
to replace -> with " ." operator in enitre program
Mihail
infact it shouldn't compile or atleast produce a warning
BinaryByter
Unknown Dubey
which user would give as input
Mihail
Unknown Dubey
is there any alternate way
Mihail
well store the input and then iterate over it or when recieving it when you encounter > check if the previous is - and in that case replace the current-1 to .
Unknown Dubey
okay
Elnee
BinaryByter
Whats an rvalue?
BinaryByter
Not a valid rvalue ;)
BinaryByter
but that explanation is useless for a beginner
Mihail
'->' shouldn't compile in the first place
Elnee
I know rvalue from opposite to lvalue.
lvalue it's what has an address in memory and not stored temporary.
BinaryByter
rvalue = right value = asignee
lvalue = left value = assigned to
Mihail
'' implies that it's of a single character size
Mihail
well it used it as a multi character constant
BinaryByter
Mihail
BinaryByter
mhh
BinaryByter
🤔