Jaimy de Vries
At this point its already about proving a thing to
Artöm
because we need it on our own server I guess
You can host it on local machine
Jaimy de Vries
You can host it on local machine
problem is we want to find a way to allow thousands of connections to it so I thinki ts impossible what we want
Dima
Lol diet planning ad
Dima
why
Talula
For CS? Everything there is on internet, every bit of information is important, but if you ask specifically about something then there is a chance someone might recommend something.
Anonymous
Hello everyone
Anonymous
I wanna start programming professionally
Anonymous
What do i need to learn first
Kharon
What do i need to learn first
Start programming like newbie?..
I_Interface
Ilya
C++
No C++ should not be first prog. language to learn
Anonymous
Yeah learn architecture and assembly programming first, that'll be easier 😅
Anonymous
Yes... But I would suggest easier lang
Yes... I was being sarcastic towards him
klimi
Assembly lang. is not that useful...
First language should not be c++ imho
Sid Sun
English, if you ask me.
Talula
For counter strike
Counter Strike?
klimi
Counter Strike?
Cs = ©ounter $trike
Talula
Assembly lang. is not that useful...
Actually Assembly language is not useful but originally it gave an idea how the computer really worked, the original DOS based C programs are opitimized if you know how computers really work.
...
Assembly lang. is not that useful...
if you program c, have fun actually understanding whats going on while you have 0 clue about asm
Talula
Cs = ©ounter $trike
What do you mean by that? Maybe I should google it.
...
spoiler: you can't
klimi
Counter Strike - C S
Talula
Its. Like... First letters
Oh it's a game... okay.
Ilya
Actually Assembly language is not useful but originally it gave an idea how the computer really worked, the original DOS based C programs are opitimized if you know how computers really work.
That is computer architecture, not assembly language as it is. Studying CPU command codes and command execution is good. Studying how to , say, develop Excel or MS Word in Asm -- no, not useful
...
It's just common prejudice.
dumb example, you have this piece of code, try to explain why this does not work without referencing anything on the lower level int32_t *ipAdd(int32_t iValueA, int32_t iValueB) { int32_t iResult = iValueA + iValueB; return &iResult; }
Ilya
if you program c, have fun actually understanding whats going on while you have 0 clue about asm
Assembler as a bad thing to learn because it is bound to the particular CPU type and computer architecture. If you study ALL existing architectures and their machine codes / assemblers this is useful but not needed for most developers. If you study only one (like Intel) this gives you impression that all machines run exactly like this one. This may me harmful. If you take into account the fact that assembly languages are very rarely used in practice, I would not recommend studying asm at all.
Mat
Basic assembler is always useful
Ilya
dumb example, you have this piece of code, try to explain why this does not work without referencing anything on the lower level int32_t *ipAdd(int32_t iValueA, int32_t iValueB) { int32_t iResult = iValueA + iValueB; return &iResult; }
Because this is UB, returning reference to a local variable which is destroyed before its use outside. This is directly written in both standards, you don't need assembly language to explain or understand this.
Ilya
Basic assembler is always useful
Yes, always useful as no knowledge is useless. But not necessary at all
...
Basic assembler is always useful
^this, if you're writing code for the most exotic platform ever made, you should look up the things that could affect your work. i'd say more than 80% of the work is done on x86/x64 anyawy
manas
Does anyone know any good resources for learning to prevent memory and pointer based errors?
manas
Does anyone know any good resources for learning to prevent memory and pointer based errors?
Maybe something like a list of common mistakes and how to prevent them.
14•08
Does anyone know any good resources for learning to prevent memory and pointer based errors?
Here is the simple code #include <stdio.h> #include <stdlib.h> /* required for the malloc and free functions */ int main() { int number; int *ptr; int i; printf("How many ints would you like store? "); scanf("%d", &number); ptr=malloc(number*sizeof(int)); /* allocate memory */ if(ptr!=NULL) { for(i=0 ; i<number ; i++) { *(ptr+i) = i; } for(i=number ; i>0 ; i--) { printf("%d\n", *(ptr+(i-1))); /* print out in reverse order */ } free(ptr); /* free allocated memory */ return 0; } else { printf("\nMemory allocation failed - not enough memory.\n"); return 1; } }
Francisco
Does anyone know any good resources for learning to prevent memory and pointer based errors?
The best way to avoid most mistakes is by using smart pointers. Also, good static analyzers (clang-tidy) and profiling tools (valgrind) can help you prevent most memory bugs
Kumar
#include<studio.h> Int main () { Printf( " yes I am human, tell me how I can prove that "}; Return 0; }
バレンタインがいない柴(食用不可)
Hi this is Kenny :)
バレンタインがいない柴(食用不可)
Hope you guys are doing well :)
バレンタインがいない柴(食用不可)
Will I appear impolite if I just jump in and ask some questions right away ? :)
Abhay
Thanks
Pavel
In this video (timecode) the guy checks if the pointer can be deallocated with his allocator by comparing pointer with start/end pointers using < and >=. Isn't this unspecified behavior? Can we rely on that? https://youtu.be/LIb3L4vKZ7U?t=2262 https://stackoverflow.com/questions/9086372/how-to-compare-pointers
Anonymous
wimlang
Anonymous
it stops compiling as soon as binaries are getting larger than 640k
Radin Rein
Yeah but it gives a sense for starters
Bojan_Krdemn
Hi! Is there a difference between boolean function (in my case bool Compare words(string word, string xword) and boolean variable bool compare_words=word==xword
Javi
A boolean variable is what the boolean function returns
Bojan_Krdemn
it seems that unlike function bool variable won't change as parts of expression change for example ``` word = data; xword=data bool compare=word==xword //true word=aata xword=data compare (?) ``
Mat
8989 members 🥳
Ибраги́м
Anonymous
What?
It's a pun
14•08
It's a pun
Is this indian?
Anonymous
yeah, because that's all you can do with the language?
14•08
No
I didn't get you