top | item 24556896

(no title)

mttyng | 5 years ago

"Look into problems, you'll find solutions. Look into solutions, you'll find problems."

God, I love this line.

discuss

order

lioeters|5 years ago

Yeah, such pithy insight can only come from experience.

Our industry, especially these days, is flooded with "solutions" that promise much - and the best ones do deliver; but what's suitable in an enterprise environment can be a huge mismatch and complexity cost for smaller companies, individuals, or for research purposes.

I heartily agree with the grandparent post, to focus on what the problem domain requires, to use tools and dependencies that specifically support that goal.

Too often we see a framework, library, language or tool used for the sole reason that it's what the big players use - basically driven by popularity and inertia. There are advantages to buying into an ecosystem or particular scalable approaches, but only if it suits and serves your purpose.

As for writing better code - as many comments point out, the best way is to read and write lots of code, study books, follow the best works of people in the field.

It helps to start with the specifics, I think, by having (or creating) a problem to solve, or a project with clear goals. One can start with the simplest, "naive" approach, to solve the immediate needs - often that involves finding off-the-shelf libraries. Then, consider ways of improving the logic, refactoring, maybe dig deeper into the libraries to understand how it's organized.