Win a copy of Machine Learning with R: Expert techniques for predictive modeling this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Clean Code: Where to start?

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have any basics that a new Java programmer can work on to have the best possible code when starting out (in addition to buying your book)?

Thanks,
Mischelle
 
Sheriff
Posts: 1367
18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In addition to starting on page 1 of Clean Code, I would suggest

The Cattle Drive (I'm biased, I volunteer around those parts)

If you are very new to Java and Object Oriented programming in general, I would suggest reading Head First Java

Also, I would suggest looking at Design Patterns or - if that one seems a bit daunting - Head First Design Patterns

The Pragmatic Programmer is another title that is great. It talks a lot about practices that aren't necessarily related to naming variables and how many lines a class or method should contain.
 
author
Posts: 799
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry about the plug, but if you're new to Java, and want to learn "the agile way," which includes how to keep the code clean, Agile Java is another book to consider. It tries to teach Java using test-driven development (TDD) and also introduces some of the concepts that you'll read about in Clean Code.
 
Author
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Michelle Parker:
Do you have any basics that a new Java programmer can work on to have the best possible code when starting out (in addition to buying your book)?

Thanks,
Mischelle



Work closely with others. Critique each other's code. Get some old hands to show you what THEY think might be clean. Attend user groups and participate in pair programming sessions, coding dojos and the like.

And, of course, read, read, read. Books are good, but better yet, read other people's code. Read lots of other people's code. Learn how and why those people do things -- both the good and the bad.

Writing software is a craft. The best way to learn a craft is by working closely with other crafstpeople, and by learning from masters.
 
What's wrong? Where are you going? Stop! Read this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!