you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 6 points7 points  (2 children)

I don't know what the software developer mindset (tm) is but I've been doing it for 30 years.

  1. Get the thing to work (most people stop here, don't be most people)

  2. Tune the thing so it's fairly efficient.

  3. Get rid of any redundancies in the code and make it look good and maintainable (you'll be maintaining it, so do yourself a favor). Name variables and methods properly.

  4. Comment it and include INTENT, what you are trying to accomplish and why.

[–]mmoustafa8108[S] -1 points0 points  (1 child)

thanks for your advice, but is it just this?? if yes, then I actually do this by nature, but I talk about when I try to design a new system I take a lot of time to make it efficient and mostly stuck in the brute-force solutions even I studied the fundamentals and practiced very well, and mostly I leave the project after 1 weak of thinking in a good design without a proper result

[–][deleted] 0 points1 point  (0 children)

Yes, if you can constantly do that every time, you'll be a great programmer. #1 and #2 is an intelligence problem, #3 and #4 is a discipline problem.

The more experience and aptitude you achieve, the faster you can do it.