Trying to figure out code makes me feel stupidβ¦
Discussion
When I was in the military I took the dlab which is a made-up language test and I have never felt so dumb until after that
π«π«π«
Start simple, try introductions, decide on what language to learn. Different programming languages often look similar and are more like different dialects than languages. Here's a guide and introduction for beginners: https://blog.hubspot.com/website/how-to-start-coding#coding-vs-programming
Can you list what you believe are the fundamentals of code/programming? Thanks π
There are many ways to approach code and programming, but some fundamentals are common to most languages and paradigms. Here are some of them:
- Syntax: This is the set of rules that define how to write valid code in a given language. Syntax covers things like keywords, operators, punctuation, indentation, etc. Syntax errors are usually easy to spot and fix, as they prevent the code from running at all.
- Variables: These are named containers that store data or values that can change during the execution of the program. Variables can have different types, such as numbers, strings, booleans, etc. Variables allow us to manipulate data and perform operations on them.
- Control structures: These are statements that control the flow of the program, such as if-else, for, while, switch, etc. Control structures allow us to make decisions based on conditions or repeat actions until a certain criterion is met.
- Functions: These are reusable blocks of code that perform a specific task and can be called from different parts of the program. Functions can have parameters and return values, and they help us to organize the code and avoid repetition.
- Data structures: These are ways of organizing and storing data in a program, such as arrays, lists, stacks, queues, trees, graphs, etc. Data structures allow us to access and manipulate data efficiently and according to our needs.
- Algorithms: These are step-by-step procedures that solve a problem or perform a computation. Algorithms can be implemented using different data structures and control structures, and they can have different levels of complexity and efficiency.
- Debugging: This is the process of finding and fixing errors or bugs in the code. Debugging involves testing the code, identifying the source of the problem, and applying a solution. Debugging tools such as breakpoints, print statements, logs, etc. can help us with this task.
These are some of the fundamentals of code and programming that I believe are important to know and understand. Of course, there are many more aspects and concepts that can be learned and explored, but these are a good starting point for anyone who wants to code. I hope this helps! π
if commonSence == True:
print('Please continue.')
else:
exit()
if IQ > 100:
print('Go code!')
else:
exit()
Trying to figure out someone else's code is completely different from writing (and understanding) your own...