Dima
I hate them
Dima
this is obligatory to know IMO
Dima
well kinda ot
Dima
thats why my messenger goes mad and eats up to 4 gb of ram\
Mat
Have you ever read Structure and Interpretation of Computer Programs?
Mat
that is what 80% of nowadays devs are doing
No. 80% of Devs nowadays just think that in 2 days you can learn programming 😂 and that isn't related to the language
Anonymous
your Messenger will eats ram , process effect of it
Dima
:(
Anonymous
:((
Anonymous
:D
Anonymous
just because of C you can understand structures better
With C you'll learn about how the computer works, then you'll be obsessed with optimization
Anonymous
Which in big part is bad
Dima
no, it’s good
Anonymous
Specially because premature optimization kills design
Anonymous
And design has nothing to do with structs, ints or whatever
Anonymous
Design has to do with abstraction, with how you'll solve the problem you're facing. How make extensible programs able to be maintained and change later
Dima
yeah nowadays we got awful, messy designs
Dima
designs < optimization
Dima
> performing o(n^2) just because design is good
Dima
I think these talks can be infinite, but yeah, there’s a gold middle somewhere
Anonymous
Optimizarion only matters once you need it
Anonymous
I agree with you in some part when you say devs are not concerned with performance stuff and that they make programs that eat a lot of resources
Anonymous
But it's more because they use a lot of libraries just to use a function than the language itself
Anonymous
NPTEL C ++
RK
Can we make a program which actually shows us fractional results not decimal? Like - ( 1 + 1 / 2 ) = 3 / 2 And not 1.5?
Anonymous
you can override variable is (double) variable/ (format) variable
Anonymous
Example: (1 + (double) 1/2) = (double) 3/2
Igor🇺🇦
If you want to know how programming works you shouldn't start with C. Scheme or Python are better
C will teach about PC in general. About memory management, how you need to implement almost all data structure yourself and other things like that. C has much lower level of abstraction. Scheme, on the other hand, will teach nothing useful applicable to most programming languages. I've never seen Lisp like languages outside of academia.
Igor🇺🇦
Another issue is that C influenced many other modern programming languages, Knowing it will make it easier to learn other mainstream languages.
Igor🇺🇦
Anonymous
Any one here with experience in openframeworks or knows good resource for open frameworks.
Anonymous
sizeof() is function will return values size of implement
Anonymous
int array[6];
Anonymous
sizeof(array);
Anonymous
ouput is: 6
.json
Anyone doing codechef long challenge
.json
Here
Igor🇺🇦
At this point you should learn JS.
Thank non existent diety there are jobs for C++/C#/Java programmers and I don't have to deal with JS to earn my breakfast.
Mat
Well, they use main as the entrypoint
Mat
.
Anonymous
sizeof() is function will return values size of implement
sizeof is not a function; it's an operator. It returns size of a type or variable in bytes; so sizeof(int [6]) == 6 * sizeof(int)
Anonymous
Anonymous
Oh sorry about answer
Anonymous
I try it on konsole
Anonymous
output is 24
Anonymous
Yes. Apart the FP stuff of the last 3 years in every modern language. And the fact programming have little to do with PCs in general
The only irreplaceable programming language is C; other programming languages will replace by newer languages. BASIC is replaced by Python and C#. Perl is mostly replaced by Python. Go and C++ most likely will be replaced by Rust. ... However JavaScript will remain for such a long time, because of Web Standards.
Anonymous
output is 24
It is implementation defined. In your implementation it is 24.
Anonymous
😂
Mat
C will be replaced rust, not C++ :-)
And it's already happening
Anonymous
It will never happen. All kernels are written in C (Windows, Linux, BSD, ...), and none of them will ever switch to any other programming language
Till
It will never happen. All kernels are written in C (Windows, Linux, BSD, ...), and none of them will ever switch to any other programming language
The Linux kernel is the worst thing. A set of terrible decisions. if you want to write bad software, see kernel sources
Anonymous
What are most ugly parts of Linux?
Anonymous
output is 24
It is not
Till
Nameful
Everywhere, everything
Could you show an example and explain what makes it ugly?
Anonymous
Redox
who use that?
Nameful
who use that?
Very few so far, but what kernels written during Rust's existence have widespread usage?
Nameful
I can't think of any
Nameful
See goto cleanup
What do you mean by that?
Till
What do you mean by that?
It's terrible, its unsafe.
Nameful
It's terrible, its unsafe.
I know what goto is, but what is the "goto cleanup"?
Nameful
Yes, I tried searching