-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsec-personal-experience.ptx
More file actions
328 lines (259 loc) · 14.1 KB
/
Copy pathsec-personal-experience.ptx
File metadata and controls
328 lines (259 loc) · 14.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
<?xml version="1.0" encoding="UTF-8"?>
<!--*****************************************
This is part of Basic Programming
Copyright (C) 2024
Phạm Công Vinh
See the file COPYING for copying conditions.
******************************************-->
<section xml:id="sec-personal-experience" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>Personal Experiences</title>
<objectives>
<ul>
<li>I'll bring up some insights and interesting topics that are worth knowing before you go into more advanced fundamentals.</li>
<li>This section is a bit wordy, so you can pick out topics that interest you, or you can even skip the text and just watch the video.</li>
</ul>
</objectives>
<introduction>
<p>
<cd>
</cd>
</p>
<exploration>
<title>Basic Programming <mdash /> Part 12: My Experiences</title>
<idx><h>Videos</h><h>part 12</h></idx>
<p>
Coming soon.
</p>
<video youtubeplaylist="PLBLdRr-v59vwnKvmvLtcgmAnsb2K1Ta_M" />
</exploration>
<p>
<cd>
</cd>
</p>
<p>
Coming up are some of the many lessons I've learned throughout my journey as a programmer. Before we start, I'd like to have some words with you.
</p>
<p>
Honestly, if I could restart my journey as a programmer, I'd still do things all the same. It is thanks to the lessons I've learned from being inexperienced that I am who I am today. Others I learned by reading about people's mistakes on the Internet and avoiding making them, which is why I thought this section's a good idea.
</p>
<p>
If your first exposure to programming is this article, then it's likely that your starting mindset will be very different from mine, in a good way of course.
</p>
<p>
Truthfully though, I'd like you to make a lot of mistakes still, which is why I won't write step-by-step guides on how to avoid them, but instead my personal opinions. This is actually how my parents raised me, for which I'm extremely grateful. Basically, they didn't keep me away from making mistakes, which would mean I wasn't learning anything. Instead, they taught me about self-reflection and how to get the most learning out of mistakes.
</p>
<p>
Okay then, I hope this section will be useful for you!
</p>
</introduction>
<subsection xml:id="subsec-pe-start-simple">
<title>Start Simple</title>
<warning>
<p>
You can choose a programming language and a code editor/IDE by thinking simply.
</p>
<p>
Start by coming up with a small and achievable idea. Then, look for suitable tools and learning resources by asking the Internet.
</p>
</warning>
<p>
I think when I first got into programming, I cared too much about choosing a programming language to learn. My Youtube feed always had those topics mentioned in <xref ref="insight-choose-pro-language" text="global"/>. My inexperienced self would think those were important things to consider, and I'd watch every video that showed up to see people's opinions. But doing all that only made me scared of actually learning to code because I'd start asking myself questions like:
<ul>
<li>
<q>What if I learn the <sq>wrong</sq> language and it gets obsolete in the future?</q>
</li>
<li>
<q>What if A becomes a better choice than B a few years from now?</q>
</li>
<li>
<q>How long would it take me to <sq>master</sq> this language?</q>
</li>
<li>
<etc />
</li>
</ul>
</p>
<p>
At some point, I learned to think in a different way. For instance, there's a time when I was very into game development, and it kinda went like this:
<ul>
<li>
<q>Okay. I wanna make a game, so let's look up <sq>game engines for beginners</sq> on Google.</q>
</li>
<li>
After a few articles and videos, I ended up with Godot<mdash />an open-source game engine that's been gaining popularity, has a big and supportive community, and sufficient documentation.
</li>
<li>
<q>Okay, now do I wanna use GDScript (Godot's built-in language which has beginner-friendly syntax), or C# (a popular language which is lower-level)?</q>
</li>
<li>
Well, that question took me just 10 seconds to answer. <q>I ain't about to learn C# to make no games.</q>
</li>
</ul>
After that, it was really just a constant cycle of studying online materials and experimenting with stuff.
</p>
<p>
Because I already had some ideas in mind, I got straight into making them and learning necessary concepts along the way, but never more than I needed. If I got stuck, it'd mean I had some online research to do. Otherwise, I was doing just fine with whatever knowledge I had, even if my solutions weren't the most effective or beautiful.
</p>
<p>
Personally, I think it's good that I did that instead of watching a 12-hour course covering every little thing about game development and then making somebody else's idea.
</p>
<p>
<sq>Starting simple</sq> can also be applied to choosing a code editor or IDE (integrated development environment). Until now, I think I've tried 5 IDE at most, and I've stuck with VSCode for a while because, again, it's user-friendly.
</p>
<p>
The code cells provided in this article are very minimal and might be slightly inconvenient, but they're everything you need to start, aren't they?
</p>
</subsection>
<subsection xml:id="subsec-pe-tutorial-hell">
<title>The Tutorial Hell</title>
<warning>
<p>
Just do something. You learn by doing, not by mindlessly consuming content.
</p>
</warning>
<p>
The tutorial hell is something every programmer has experienced. It's when you are constantly watching videos and reading articles teaching you to do something, but you never actually sit down and type away at a computer.
</p>
<p>
The reason for this phenomenon could be a lack of motivation or ideas, procrastination, poor social media management, <etc /> It's also because there's an abundance of online contents about coding, which can be excessive sometimes.
</p>
<p>
Whenever this happens to me, I'd force myself to put down the phone and turn on my computer. Then I'd open up Google and VSCode and start looking for something very easy to do and also interesting enough. This whole process takes at most 5 minutes, but it always gets me to begin writing some code, whatever it may be about.
</p>
</subsection>
<subsection xml:id="subsec-pe-have-fun">
<title>Have Fun</title>
<warning>
<p>
So long as you find joy in the process, you can always get back to it and do better than ever before.
</p>
<p>
If you keep learning and doing, you will improve without a doubt.
</p>
</warning>
<p>
Since stress and burn-outs are gonna be unavoidable sometimes, I think it's incredibly important to always have fun with the process.
</p>
<p>
Don't worry, you're definitely gonna experience stuff like:
<ul>
<li>
error messages showing up one after another
</li>
<li>
getting stuck when following step-by-step installation guides
</li>
<li>
understanding nothing about a new concept
</li>
<li>
<etc />
</li>
</ul>
And sometimes you're gonna feel as though you're not making any progress, so you doubt yourself and wonder if programming is not the way to go.
</p>
<p>
Honestly, these kinds of stress occur in every creative discipline and to everybody. Some days are good, some days are bad. So, why not just enjoy the process and have fun along the way?
</p>
<p>
Know that even if you think you're not making any progress, you definitely are. The author of <sq>Atomic Habits</sq><mdash />James Clear<mdash />associates this feeling with the <term>Value of Disappointment</term>. Basically, your progress is <em>not</em> a linear line always going up that you can feel every day. Instead, it's more of an exponential curve that starts slow and gradually picks up the speed. Though there are days when you feel like it's not going anywhere, there are also days when something just clicks, and you're on a roll.
</p>
<p>
If you get stuck, maybe find a new simple goal and learn a new language? You've learned the fundamentals, which are applicable to most modern programming languages. So as you learn the 2nd, the 3rd language, and so on, you're discovering new possibilities, and your potential is only ever going up.
</p>
</subsection>
<subsection xml:id="subsec-pe-open-minded">
<title>Be Open-Minded</title>
<warning>
<p>
You should always be open to new ideas.
</p>
<p>
You should keep a balance between building good habits and trying new things.
</p>
</warning>
<p>
There are always gonna be new interesting things to learn. So, keep an open mind and be eager to learn them.
</p>
<p>
In coding communities, there are often conventions and rules of thumb such as:
<ul>
<li>
how to name variables
</li>
<li>
how to format code
</li>
<li>
how to organize files
</li>
<li>
<etc />
</li>
</ul>
People learn them to improve efficiency and cooperation. And depending on the community, purpose, or programming language, standards are gonna vary. Thus, you should be objective and neutral when entering new environments and meeting new people, since you have to learn their game.
</p>
<p>
As a beginner, nobody but you will read your code. So, it's good to create a good balance between learning good habits and having freedom. Basically, you should always try to improve your code, but also take it easy. There's no need to be able to produce beautiful or efficient code right off the bat, cause that'd be super stressful.
</p>
<p>
Experienced programmers often share best practices. These can be extremely beneficial to know about, but also harmful if overused without a good understanding. They are supposed to help you think critically and adapt quickly to new situations, not make you a close-minded coder who always does things the same way.
</p>
</subsection>
<subsection xml:id="subsec-pe-tech-pointer">
<title>Some Technical Pointers</title>
<introduction>
<p>
</p>
</introduction>
<subsubsection xml:id="subsubsec-pe-virtual-environment">
<title>Use A Simple Virtual Environment</title>
<warning>
<p>
Look for and use a simple virtual environment, which helps prevent conflicts between incompatible programming packages and dependencies.
</p>
</warning>
<p>
Let's say you wanna make a game with Python. So you do just that<mdash />you download and install Python version 3.11.6 and Pygame (the Python library for making games). And everything works just fine.
</p>
<p>
Fast forward... You suddenly have the urge to make some cool animations with Python. So you ask the Internet and Manim shows up. You excitedly follow its installation guide and are eager to get started. At one point, it says something along the lines of <q>Manim needs Python version 3.12.1 to work...</q> Not a problem? All you have to do is update Python and everything's good to go again.
</p>
<p>
However, when you go back to your Pygame projects, which were running just fine before, there are errors. Looking into those, you find out that Pygame doesn't work with Python version 3.12.1 yet.
</p>
<p>
So do you downgrade Python to continue developing games at the expense of Manim, or do you forsake the games you've been so passionate about?
</p>
<p>
A worse case is when you accidentally install both versions of Python and have them run simultaneously. Now this can really mess your PC up as conflicts upon conflicts show up.
</p>
<p>
So, a straightforward solution is to use a virtual environment, which prevents the not-so-hypothetical predicament above. It helps manage programming packages and dependencies on a per-environment basis, meaning you can have multiple environments unrelated to one another.
</p>
<p>
Now, you can set up two separate environments<mdash />one with Python 3.11.6 and Pygame installed, and the other with Python 3.12.1 and Manim. Problem's solved!
</p>
</subsubsection>
<subsubsection xml:id="subsubsec-pe-cli">
<title>Know A Bit About Command-Line Interfaces</title>
<warning>
<p>
As you explore the world of programming on your own, you will naturally learn to use command-line interfaces.
</p>
</warning>
<p>
When the time comes for you to explore different languages and tools on your own, you will have to use command-line interfaces (CLI) frequently. For the sake of simplicity, CLI are just the <sq>lower-level</sq> counterparts of user interfaces (UI). On Windows, the two built-in CLI are Command Prompt (CMD) and Windows PowerShell.
</p>
<p>
But don't worry, you don't have to take a course on this. You will gradually learn the common commands as you go. Detailed guides always have commands ready to be copy-pasted into your CLI and run with a press of the Enter key anyway.
</p>
<p>
Honestly, when I use PyPI (or PIP, which is a package manager for Python) all I know is how to install, update, and uninstall stuff. And I use the CMD for navigating files, switching between administration modes, and using virtual environments. That's it, nothing else really.
</p>
<p>
Finally, if errors show up when using a CLI, you just need to apply exactly what you've learned in the previous section.
</p>
</subsubsection>
</subsection>
</section>