loading words...

Jun 25, 2019 23:37:36

Apply what I learned on writing blogs to coding

by @chrisdeuda PATRON | 231 words | 🐣 | 131💌

Chris 🤔🇵🇭

Current day streak: 0🐣
Total posts: 131💌
Total words: 51931 (207 pages 📄)

There is a lot of people telling you that you should write perfect clean code. But no one really tells you exactly how.

Hint: If you've been into programming for a while I'm pretty sure you already heard about some books on design pattern. But I will not talk much about it here. Rather, I would like to talk more about my experience in writing a lot(mostly random stuff and pure consciousness

But through my years of experience of writing code for work and client project. I come to the conclusion that writing clean code in the first time doesn't really work for me. Since I start to overthink too much if I do it. Sounds like I start to supper analysis paralysis and I couldn't start anything.

I've found this interesting tag line from clean blog.cleancoders.com when you are writing test case for your code but could be applied even if you are not writing a unit test for your code.

  • Make it work
  • Make it right
  • Make it small and fast.

The important thing that I learned in writing was to just dump all of your ideas in your screens/notebook and you could edit and revised it later. There is no need to worry about grammar and perfecting it. What matter at the first stage is to put all of your thoughts into writing.

To be continued..

  • 💎 1
  • 1

    @chrisdeuda - our brains love to pre-optimize as we recognize patterns. Yes, write first. Edit later ( if there's time or need )

    Brian Ball avatar Brian Ball | Jun 25, 2019 10:14:51
    • 1

      @brianball agree I'm trying to be kind with myself to make sure that I'll clean it a little bit to save up my future self of less headache.

      Chris 🤔🇵🇭 avatar Chris 🤔🇵🇭 | Jun 27, 2019 00:12:37
  • 1

    @chrisdeuda I definitely agree with you and I also follow the dump, revise, polish approach. I wish though, with coding, that it was possible. When working on freelance jobs it's always such a rush to get the code out the door and usually I never get the chance to go back and clean things up once the page is launched. That's why I really like working on software because you continually get to improve code over time.

    Jack Lyons avatar Jack Lyons | Jun 25, 2019 10:15:33
    • 1

      @jacklyons relate much with writing code in freelancing. I experienced it countless time. Most of the time the deadline was tight and the client normally doesn't care much the quality of the code as long you finish the task. Not only in freelance also in a corporate that I've worked before who is digital agency and they don't really care much about the quality and there is no general standard as long as it's done and you deliver.

      I develop a lot of bad habits when doing this that I wish to correct at some point. haha. Luckily, most of the projects that I've handle is not the entreprise level where I will be maintaining it for a long period of time. Mostly quick projects that once I've finished there is a little possibility that it will get back.

      Chris 🤔🇵🇭 avatar Chris 🤔🇵🇭 | Jun 27, 2019 00:10:28
contact: email - twitter / Terms / Privacy