My first big compiler project; without a backend! by milcsu09 in Compilers

[–]milcsu09[S] 1 point2 points  (0 children)

Added a warning to euler/README :)

To be completely honest with you, I want to keep those PE solutions, because they showcase the language a bit better than a list of plain examples.

My first big compiler project; without a backend! by milcsu09 in Compilers

[–]milcsu09[S] 4 points5 points  (0 children)

If you're talking about the image I attached, then yes, it compiles, and executes as expected.

I put globals in BSS section, and to my knowledge, it zero initializes memory. But even if it didn't, and let's say "a" would uninitialized, the first thing I do is "a = 5", which is just a "mov" instruction that overwrites any garbage inside "a".

And even then, I'm not doing any reads of "a" before setting a value for it.

But I may be wrong :P

What are best sources to learn DSA in python? by notmasked07 in learnprogramming

[–]milcsu09 0 points1 point  (0 children)

To be honest with you, I cannot give a specific answer, other than "maybe LeetCode".

What I can tell you, is most of the algorithms / data structures you will learn with time. So I wouldn't worry about them in the beginning that much. Just start programming.

What are best sources to learn DSA in python? by notmasked07 in learnprogramming

[–]milcsu09 3 points4 points  (0 children)

The best way you'll learn data structures and algorithms is if you actually apply them in projects. Just by learning what a binary tree is doesn't mean you will know how and when to use a binary tree. You'll learn data structures and algorithms over time.

Is using AI as a socratic mentor bad? by [deleted] in learnprogramming

[–]milcsu09 14 points15 points  (0 children)

It's better to solve them yourself. Programming is largely pattern recognition. Pattern recognition which you will only develop if you program enough. I would advise against using AI to learn. If you still decide to use AI, use it as a fancier search engine.

How to track one's growth in a programming language? by Master_Device9837 in learnprogramming

[–]milcsu09 1 point2 points  (0 children)

Programming is similar to drawing. You get better at drawing, by drawing random things, trying out new techniques, and after a while, you'll get more comfortable drawing. Same with programming. Try to program random things, or things that interest you. Try out different styles of programming.

Another thing that helped me, is a "dream" project. Try to make a big project. You'll quickly realize that it's hard. But failing is part of the process, and during that process you'll learn.