#StrugglesInProgramming: Who else is having trouble with using a compiler? πββοΈ For me, it’s been a real challenge navigating through it. My friends always joke that my learning style is one-of-a-kind. I prefer short and sweet explanations with simple examples. The struggle is real when it comes to finding resources that click with me. Do you have any go-to resources that could help me out? Let’s share the knowledge and conquer this together! πͺ #HelpMeOut #ProgrammingStruggles #UniqueLearningStyle
> As the title says, one of my two major struggles is just using a compiler.
I don’t know what you mean by this. In what way is using a compiler hard? Is installing the compiler hard? Do you know how to run it? Are you obsessed with knowing exactly what a compiler does down to the smallest detail?
Unfortunately, you’ll have to improve the way you learn things. You can wish the world would run the way you want, and maybe someone will provide you what you want, but if it’s not there, you have to deal.
This “I want things in certain way to learn ” won’t fly for learning programming. We all wish that things were the way we wanted, to learn things in most efficient and effective manner. But that’s just a pipe dream. What you need to do is start building habits and be flexible enough to learn things from different sources. Especially in the beginning, a good thorough understanding of basic concepts and ideas is essential for building a good foundation.
Don’t use a compiler then.
Use an IDE, and watch a tutorial on how to get a Hello World application up and running. Search for “tutorial hello world” and the programming language you are learning – that will give you a load of examples. You can add the name of an IDE as well.
When you say “I learn best by being told what a certain action does, and a small example of how to use it.” that is exactly what most tutorials do – some of them all the way through, some of them mostly in the “getting started” or “quick start” section.
Example:
You have a C program which is stored in a file called hello.c
That hello.c file is just a text file containing C code. Itβs no different than a notepad file with your grocery list, other than the fact that it is properly formatted code following the C language syntax.
We need to βcompileβ that code into machine code which is readable by your computer so that it can execute the program. A common C compiler is gcc
The following command (in terminal or other command line) will compile your hello.c file into an executable file that is named a.out by default:
gcc hello.c
Now you can actually run your program by calling that βa.outβ file, which was produced by gcc
>I learn best by being told what a certain action does, and a small example of how to use it.
You mean, like every introductory programming book ever written?
I donβt think the way you learn is unique more or less
Youβre gonna have a tough time in this career tbh
In what using a compile is hard , and what language are you using like in ic it is just make program and you are done,