Skip to content

Comment on Ask HN: How do you mentally manage all the Ruby on Rails code?

Comments

I suffer the same problem if 1. I do not have proper comments 2. If I less variables. Its always good to use a ton of variables and minimum Constants. When initializing the variable put in comments what it is for.

Whenever I write code I first of all put down all the logic in pseudocode in comments.

Then I write the actual code underneath the logic comments.

Works for me.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.