Anonymous
/get
klimi
Windows have powershell too, a more modern bash-like utility.
The new version of power shell is said to be quite nice
klimi
Then why did you reply?
Anonymous
Then why did you reply?
because he is a parrot hakkerman
V01D
because he is a parrot hakkerman
Why are people so small minded? Parrot OS home has no hacking tools😂
V01D
It is a debian based system with privacy in mind. And since it is debian, it is good for development
V01D
You are acting like I told him to use kali as a daily os or something
Anonymous
Devs, I have been hearing about an version of airdrop which is nearby share and i am using andriod 7 well i didn't update my device so i was about to share a a post with mine friends then boom i saw on my device anyone has an idea on how google got this on my device without me knowing or updating my device
V01D
Automatic update
V01D
Don't expect google and the manufacturer to not access your phone - you don't even root
V01D
And then they get an attitude if you root the phone that you own
Anonymous
Where should use struct and not class
V01D
;-; u still hakkerman
I value my privacy to a certain extent
Anonymous
Where should use struct and not class
the convention is to use struct for types that you can export to C, but it doesn't really matter
V01D
But hey, I am talking to some guy calling germans nazis, so what's the point
Dima
#ot
Даниил
Any std::string realisation in C?
Anunay
Any std::string realisation in C?
well its string class and there are no classes in C
Alex
Any std::string realisation in C?
try github, I am sure you will succeed
Alex
well its string class and there are no classes in C
you can use struct as class, OOP is possible using C
Anunay
you can use struct as class, OOP is possible using C
why would you do that if you can just use C++?
Anonymous
To be more precise: std::string is an instantiaton of std::basic_string template and there's no templates in C 😂😂
Alex
why would you do that if you can just use C++?
read Torvalds, he explained why C++ is not the option
Даниил
why would you do that if you can just use C++?
I am writing program using winapi only
Anunay
Anunay
only complaint I see for C++ is UB these days
Alex
I have read, and I don't agree
they tried c++ for kernel, it does not work. also I`ve heard exceptions are disabled for Web Browser for example.
Anonymous
read Torvalds, he explained why C++ is not the option
Is not an option where? In Linux kernel programming? Sure In other more high level areas C is not an option goto cleanup;, void* and other shit
Alex
C is better for low-level stuff
Anunay
pre-C++11 maybe
Anunay
modern C++ is amazing
Даниил
C is better for low-level stuff
Thus I asked about string Realisation(probably struct example)
Alex
Is not an option where? In Linux kernel programming? Sure In other more high level areas C is not an option goto cleanup;, void* and other shit
unfortunately this shit is presented in c++ as well. recalling templates in c++ with void* - c++ becomes really anti compact language with lots of issues
Alex
They are C programmers Of course C++ doesn't work for them
I don`t think C++ is the problem for Linus
Anonymous
Thus I asked about string Realisation(probably struct example)
struct String { char* ptr; size_t size; size_t capacity; };
Alex
http://harmful.cat-v.org/software/c++/linus
布丁
It should be a problem for Linux, not Linus
Anunay
as I said, pre-C++ 11
Alex
If you write this shit in C++, it means you writing C with classes
it means its fully legal as c++ code. so c++ provides several options for one problem, which leads to awful code
Anonymous
unfortunately this shit is presented in c++ as well. recalling templates in c++ with void* - c++ becomes really anti compact language with lots of issues
Using destructors has issues? Using templates instead of void* has issues? Even if they have, I don't think they are more critical than resource leaking and type unsafety
Anonymous
it means its fully legal as c++ code. so c++ provides several options for one problem, which leads to awful code
Do you know what idiomatic C++ is? If C++ have some features because of backwards compatibility, it doesn't mean you should use it
Alex
destructors can`t throw exceptions
Anonymous
yes, in big project with several developers, someone can use void*, another one template, this is mess
There are.. static analyzers.. code reviews.. have you heard about it?
Alex
There are.. static analyzers.. code reviews.. have you heard about it?
void* is legal in c++. code reviews - depends on persons who make it
布丁
C++ courses never start with idiomatic C++🌚
Alex
what are you trying to say? having lots of approaches for one problem is good architecture?
Renan
I am writing program using winapi only
It would be better if you choose a cross platform alternative.
Даниил
Nach,my aim is windows
Alex
of course c++ is anti compact language. even for simple array you can use C-array, malloc, new, vector, std::array I don`t feel this is good
Anonymous
what are you trying to say? having lots of approaches for one problem is good architecture?
I'm trying to say that idiomatic C++ is better than C And you should use it as much as possible
Anonymous
Modern C++ prevents you from many C flaws and shit
Alex
I'm trying to say that idiomatic C++ is better than C And you should use it as much as possible
C is compact and don`t have such issue, C is perfect tool for its job. c++ was trying to be C-compatible, then they started to add lots of features and now we have the hardest language to learn
Alex
actually most of the fundamental software we use was written on C
Anonymous
C++ is not compact and less shitty if you know how to write it
Alex
It doesn't make it good
compare template hell and C void* approach
Anonymous
Anonymous
void* is a real mess
Alex
Template hell? Where hell?
everywhere: human read, compilation errors, include template in header or not.. by the way modules are coming in c++, so new issue: mixing #include and module in c++. nice job