Tag Info

New answers tagged

1

Practice makes the master. You can look into Code Golf or Code Katas for exercises that you can repeat. The more you code, the better at it you will become, and just like a Chess Master, the more moves (here algorithms, patterns or techniques) that you know (in terms of understanding their reason, not just repeating them like a parrot), the better you will ...


-2

Well, You can ask students to solve some geometry problems like to draw square, pentagon, hexagon and circle with Scratch. Challenge them to develop solutions and DONĀ“T answer them about HOW to code it. Let them explore and test solutions. At least you can ask things like the angles sum in polygons. Then they can build the algorithms and their own ...


0

For newbies in programming like myself I recommend the book "Think Like a Programmer". In the first chapter it covers such problem solving techniques as restating and dividing the problem, starting with what you know, reducing, analogies and experimenting. Then there are more advanced techniques with examples in C++: solving problems with arrays, ...


1

I read through all the answers, and I noticed nobody mentioned code complexity. There's a tight correlation between code complexity and readability/maintainability. There are numerous code complexity scoring algorithms, but I'll just talk about how McCabe complexity scoring works. Basically, McCabe scoring reads through your code and computes the number ...


4

Le mieux est l'ennemi du bien The perfect is the enemy of the good. I will drop that Voltaire quote at every opportunity because I've seen the persuit of perfection cause many promising projects to stall and fail. What you've presented above described almost every job I've been at. And my own businesses, for that matter. The truth is that ...


0

Honestly? I worked at one job that forced me to use a different coding style. It didn't shake the (good) desire to make code consistent, but it did force me to care less what that consistency was. It also didn't hurt that I've worked at a few jobs with major coding problems. When people are doing string concatenization for queries or copy/pasting code a ...


5

I fixed it by realizing that I provided more value to the company writing new code and fixing genuine problems than I did constantly fixing style problems in other people's code. If the company you work for has coding style guidelines, and you are in there anyway doing some refactoring, take a few moments (if you can) to fix the style problems, but only in ...



Top 50 recent answers are included