Reminder for new programmers: I have years of programming experience. My colleagues have years of experience too. We end up Googling the most basic things every day.
Software developers like solving problems so much, that if there are no problems at hand, they will create their own problems.
If you think programming is hard, you're thinking too much. If you think programming is easy, you're thinking too little.
"It's hard enough to find an error in your code when you're looking for it. It's even harder when you've assumed your code is error-free." - Steve McConnell
The try/finally structure lets you run cleanup code even if exceptions were raised in the try block. The else block minimizes the amount of code in try blocks. It can be used to perform additional actions after a successful try.
Don't get attached to any particular language, framework or technology. They come and go. Focus on principles.
How to manage access to the resources in a GCS bucket. - ACLs grant access to buckets and individual objects - IAM roles are project or bucket wide permissions Both methods work in tandem. For temporary access to users outside of GCP, use Signed URLs.
Ninety percent of the coding you'll do as a beginner is hunting down bugs.
Make sure your code relies on abstractions. Your classes should know WHAT other classes/functions do But it's better if they don't rely on HOW they do what they do
Design patterns in 1 tweet Observer: A publisher notifies a list of subscribers of changes in a class Ex: People who receive their monthly subscriptions (subscribers/observers) from their favourite maganizes (publishers)
If your bug has a one in a million chance of happening, it'll happen next Friday
If you're overwhelmed by some big complex problem, break it down into small chunks. Focus on each of them individually and then build up your solution. Divide and conquer.
You learn more from "unexpected results" than from getting things right the first time
"The theory behind open source is simple. In the case of an operating system, the source code is free. Anyone can improve it, change it, exploit it. But those improvements, changes, and exploitations have to be made freely available." - Linus Torvalds
The same way musicians practice scales, you should have some exercises to get you up to speed. For example, when I learn a new language, I make sure I implement some algorithms (that I already know) that cover the basics: - Tree traversals - BFS - Mergesort - Etc
Broke: "I want to learn to code" Woke: "I will learn to code" Bespoke: "I learned to code, just waiting for time to catch up"
You: "It is important to write readable code" Also you: "main(_){_^448&&main(-~_);putchar(--_%64?32|-~7[__TIME__-_/8%8][">'txiZ^(~z?"-48]>>";;;====~$::199"[_*2&8|_/64]/(_&2?1:8)%8&1:10);} "
Dumb programming myth #4155: "You have to be a genius to become a programmer"
The best programmers I've worked with always start with a requirements.txt first.