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
BinaryByter
No
Well atleast thats my experience
BinaryByter
If you have experiecned something else, ¯\_(ツ)_/¯
BinaryByter
Hello, Java
No... don't
BinaryByter
😂
Dima
Yeah, no java
void
Yeah, no java
Kk, C#) 🌝
BinaryByter
olli
you are reinventing the wheel when adding a design pattern
I think you don't get the idea of design patterns. How many lines was the biggest project you've really worked on?
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.
void
But honestly, where the fuck would you need design patterns?
In big commercial application with a lot of different developers
BinaryByter
"design patterns work because they work"
BinaryByter
thanks =D
BinaryByter
@Drazzy When was the last time YOU used a design pattern?
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
BinaryByter
depends on the compiler
if you compile on GCC with -g, they are called "debugging symbols"
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
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
professor
if I diff both. the new location didnt contain __security while the release folder it contains
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
BinaryByter
Oh
BinaryByter
🤔
professor
cl /help
Mihail
how can I back to the orginal state?
/sdl is supposed to give extra security-related warnings
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
Mihail
any comment plz
what do you want exactly?
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
Unknown Dubey
which user would give as input
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
BinaryByter
Whats an rvalue?
Elnee
Whats an rvalue?
'->' in that case
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
BinaryByter
mhh
BinaryByter
🤔