Anonymous
Telegram bots are scripted using python
h1z9x8h*ehsjhgooqoap
checkout these books
Anonymous
#ot
Dima
h1z9x8h*ehsjhgooqoap
h1z9x8h*ehsjhgooqoap
U dont need to do it from scratch,there are templates to start from.
PM
Okay,Thanks everyone
Anonymous
how to learn c than other languages
h1z9x8h*ehsjhgooqoap
Rust Go
h1z9x8h*ehsjhgooqoap
Learn C under linux with git is a good way to practise.
BinaryByter
BinaryByter
but go's good
h1z9x8h*ehsjhgooqoap
why Rust not?
BinaryByter
Because its another one of those modern languages that dont actually help too much?
Jussi
I have 2 methods in my class;
std::string GetSessionHost() { return mSessionHost; }
const std::string& GetSessionHost() const { return mSessionHost; }
One of them returns a const reference to the member var, and another returns a copy of it. How can I be sure that my code calls the reference one when calling GetSessionHost ?
BinaryByter
BinaryByter
dont use getters and setter tho
Jussi
h1z9x8h*ehsjhgooqoap
Rust has a rigorous checking system to help coders advoiding errors
h1z9x8h*ehsjhgooqoap
but anyway life is too short ,no time to learn.
Dima
What you gotta do is use your life to learn stuff
Dima
BinaryByter
BinaryByter
If you want that, use cobol
Jussi
Nvm, my problem was simple; I cannot overload functions by return type :)
BinaryByter
why not?
they have overhead and they are justbuseless
BinaryByter
Jussi
No shit
this was actually new to me
BSP
Jussi
yes it did
Jussi
I guess it because one of the methods was const, another was not
BSP
Did it work? As in the reference being returned for a const instance?
Jussi
No
Jussi
Well
Jussi
ofc it would've worked if the instance was const
Jussi
but it wasn't
Jussi
I created a new explicit method for returning that const reference
Jussi
with different method name
BSP
Jussi
Well I got it working as needed now :-)
Jussi
c++ is a nice language, because it is so complicated
BSP
Fun fact you can decorate a method with && just like const.
Web7 TimeLord ¤
Kaushik
Thank you
itsmanjeet
Why does print return the node?
print is for testing
it is a function in my library thats why return
i resolved the bug by adding static and const at some places
Shb
#ot
Anonymous
Hi
Anonymous
Anyone which can help me in programming
🐰🐾 سمیه
Anonymous
😂
Dima
BinaryByter
Anonymous
Just learn binary.😂 (Just kidding);
h1z9x8h*ehsjhgooqoap
This often involves shared libraries and dynamically loadable modules. However, the inner workings of shared libraries and dynamic loading are some of the least understood
and most mysterious areas of software development.
BinaryByter
Anonymous
Because it's a time consuming process
BinaryByter
Meh
🐰🐾 سمیه
Hi, I've a faulty C program and need someone to fix it for me.
It's a 180 line program. If anyone could do it, please let me know
Dima
wouldn’t you debug it?
🐰🐾 سمیه
I can't, because it has errors
mrphyber
I can try
Mykyta
h1z9x8h*ehsjhgooqoap
issues are commonly the types of overflow accessing arrays, dangling pointers
🐰🐾 سمیه
Pm me please
Dima
Why won’t you tell us the errors
h1z9x8h*ehsjhgooqoap
use valgrind to check your codes
Nikolas
Dima
Nikolas
and valgrind is most likely overkill in this case
Nikolas
also, if she said she can't debug, I guess she means a compilation error
🐰🐾 سمیه
Dima
there’s still some error
h1z9x8h*ehsjhgooqoap
syntax error
Dima
-__-
Nikolas
🐰🐾 سمیه
It has may errors, I can't handle it on my own.
h1z9x8h*ehsjhgooqoap
not run time errors