Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

19
How can I learn to program more "cannonically"
Post Flair (click to view more posts with a particular flair)
Post Body

I've been trying to get into coding on and off for the past few years, and something that I've noticed is that when I'm presented with a problem, I usually can come up with a solution, however it is almost never the most efficient way to do it. I understand that part of this comes with time, but for a lot of my classmates they intuitively make something similar to the canonical solution. For introductory classes this is fine, but I know if I try to pursue more advanced courses I'll probably start to run into issues when I get graded on optimization and run time.

Also when coding larger projects I've found that sometimes the way that ive chosen to implement things comes back to bite me when i try to expand or add functionalities to it (Im basically writing Yandre dev code).

What are some good resources to learn how to build a good sense of intuition? I always try to create/draw out my solutions in pseudocode before I implement them, but even while doing this I find it hard to catch myself making bad choices until I've already coded the majority of my solution.

Author
Account Strength
40%
Account Age
6 months
Verified Email
Yes
Verified Flair
No
Total Karma
93
Link Karma
51
Comment Karma
42
Profile updated: 2 days ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
4 months ago