Welcome, Guest: Join Nairaland / LOGIN! / Trending / Recent / New
Stats: 2,800,076 members, 6,692,346 topics. Date: Wednesday, 26 January 2022 at 12:29 AM

How Do I Write Cleaner Codes In Python? - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / How Do I Write Cleaner Codes In Python? (1188 Views)

Best Ways To Write Cleaner React Code / Ogun State Traims 200 Trained In Python Programming Language / Suspicious Codes In My Site (2) (3) (4)

(1) (Reply) (Go Down)

How Do I Write Cleaner Codes In Python? by frob0genius(f): 8:13am On Mar 18, 2018
I started learning Python early this year and I've started working with Flask. But I want to get better at writing cleaner and efficient codes. So Python gurus how do I become a better programmer?
Re: How Do I Write Cleaner Codes In Python? by olamil34(m): 10:11am On Mar 18, 2018
Make horrible mistakes.

Because that's when you will know how to write maintainable code.

Making mistakes is one of the main parameters of learning.

Also read some code on github, you don't know when you might need a component.

@frob0genius

1 Like

Re: How Do I Write Cleaner Codes In Python? by frob0genius(f): 12:27pm On Mar 18, 2018
@olamil34

Can you suggest good python programmers on github? So I can learn by reading their codes.
Re: How Do I Write Cleaner Codes In Python? by Truth234(m): 6:39pm On Mar 19, 2018
frob0genius:
@olamil34

Can you suggest good python programmers on github? So I can learn by reading their codes.

Exercises, do a lot and check to see the preferred solution and compare. Below are links to the one I am currently using, started less than a month ago.

https://www.practicepython.org/

https://github.com/zhiwehu/Python-programming-exercises/blob/master/100%2B%20Python%20challenging%20programming%20exercises.txt

1 Like

Re: How Do I Write Cleaner Codes In Python? by yorex2011: 8:54pm On Mar 19, 2018
Finally we found a female programmer. Learn a couple of design Patterns, follow the single concern rule, comment code where some magic appears to be happening, learn to structure your application into groups of connected elements/classes/modules, if there is a simple and a complex way of doing something, go for the simple most of the time.

Write your apps like you're writing a story.

Write, test, refactor, test, great app

You can also say hello world here https://www.nairaland.com/4407244/where-female-software-engineers wink
Re: How Do I Write Cleaner Codes In Python? by frob0genius(f): 10:40pm On Mar 20, 2018
Truth234:


Exercises, do a lot and check to see the preferred solution and compare. Below are links to the one I am currently using, started less than a month ago.

https://www.practicepython.org/

https://github.com/zhiwehu/Python-programming-exercises/blob/master/100%2B%20Python%20challenging%20programming%20exercises.txt

Started the practice python and it's quite interesting so far.
Thanks

2 Likes

Re: How Do I Write Cleaner Codes In Python? by Ejiod(m): 4:26am On Mar 21, 2018
Dear, why Dont u expend ur python language into data analysis + Machine Learning because that's the future now as far as programming.
If u are trying to delve deep into web development pls pick JavaScript and learn it deep. Try DOM manipulation then pick ReactJs as front end while u use flask as backend.
If u are good with SQL, pls try data visualization with TABLEAU, PowerBI, or SAS. It gives u edge. Meanwhile u can't see the tutorials on YouTube

1 Like

(1) (Reply)

Who Can Decipher This Error For Me? / The Future Of Programming Language / Introduction

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2022 Oluwaseun Osewa. All rights reserved. See How To Advertise. 36
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.