Mat
/saved
Marie
/saved
Notes in chat: - cpp - cppbook - goodgoogling - googleit - ide - learn - noendl - offtopic - ot - projects
BinaryByter
#googleit
Marie
#googleit
http://www.fuckinggoogleit.com/
Marie
What ioctrl in c++?
http://www.fuckinggoogleit.com/
Mat
Oh, it didn't explode! Great!
BinaryByter
why tho
1) use of c_strings 2) casting out const
Dima
I mean why the code is written like that lol
Dima
the owner reasons
BinaryByter
Oh
Dima
lol
BinaryByter
well because he is a crackpot
Anonymous
the owner reasons
i do not know
Anonymous
i fixed it
Anonymous
but holy shit i keep fixing his shit code
Padfoot
Hey Maxi! Long time! :D
Anonymous
#goodgoogling
I was writting a program but striped it down to see by what errors are arising i can either put them down in comments but thanks i have solved it
BinaryByter
wow! last time was two months ago
BinaryByter
:D
BinaryByter
but holy shit i keep fixing his shit code
in every line of code that you fix, add a comment with the initial line and the reason why it had to be fixed
BinaryByter
what are you doin?
Padfoot
wow! last time was two months ago
I know, right! I was super busy. I was moving cities!
Anonymous
i am explaining in the dev group that he is a fucking retard for doing this
Anonymous
and that i had to fix it
Anonymous
and why it would not work
Ariana
or just rewrite completely
BinaryByter
that way your coworkers see the extents of his shittyness
Ariana
easier than rewriting line by line
Anonymous
How?
Using namespace std;
BinaryByter
Anonymous
BinaryByter
use std::cout «
BinaryByter
Why?
might cause collisions
BinaryByter
we need a #noendl for "using namespace std;"
Mat
I like using std::cout;
BinaryByter
I like using std::cout;
thats one's fine since collisions are very unlikely
Anonymous
use std::cout «
Can you please tell what is work of namespace std
Anonymous
?
BinaryByter
BinaryByter
if you want to access a special drawer, you do <namespace>::<item>
BinaryByter
BinaryByter
so to access it you do
BinaryByter
std::cout «
BinaryByter
using namespace std; makes the compiler assume that everything you use is either in the global scope or in the std-namespace
BinaryByter
which becomes an issue when you have multiple libraries that have a cout
BinaryByter
https://stackoverflow.com/questions/1452721/why-is-using-namespace-std-considered-bad-practice
BinaryByter
https://stackoverflow.com/questions/1452721/why-is-using-namespace-std-considered-bad-practice?page=2&tab=votes
Anonymous
there are 3 devs on that side of the project
BinaryByter
they already know
The more evidence you leave, the better
Anonymous
everyone knows that i am the only decent one
BinaryByter
he might get a good beating by the boss
BinaryByter
Oh
Anonymous
we have a product to push out
Anonymous
and there is not enough time
Dima
3 juniors get beaten up by the boss watch online without registration and credit cards
Anonymous
and not enough man power
BinaryByter
What word would you like?
#nomoreusingnamespace
Anonymous
i am technically CTO
Anonymous
at that company
Anonymous
fucking hate that job
Dima
using stldo
Dima
( ͡° ͜ʖ ͡°)
Anonymous
https://stackoverflow.com/questions/1452721/why-is-using-namespace-std-considered-bad-practice?page=2&tab=votes
Thank you man i recently started c++ as i can't understand java. I am currently reading a book on it from which source can i be more generalised to its concepts