This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Do You Know Writing Maintable Code? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Do You Know Writing Maintable Code?" Watch "Do You Know Writing Maintable Code?" New topic

Do You Know Writing Maintable Code?

Serap Elbeyoglu
Ranch Hand

Joined: Feb 12, 2010
Posts: 52
Hello to everyone,

Let's share our ideas about writing flexible codes.

Q: Why should we write flexible code?

A: Your program will live much longer.

What do you think? What are the tips for writing flexible codes?

Serap Elbeyoglu
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14953

What do you mean by "flexible code"?

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32481

I think you mean maintainable code that is easy to extend.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Serap Elbeyoglu
Ranch Hand

Joined: Feb 12, 2010
Posts: 52
You are right Jeanne, I mean maintainable code. I suppose the topic has become clearer Jesper. We will be happy if you share your experiment about tips for writing maintainable code.

Thank you.
Joachim Rohde
Ranch Hand

Joined: Nov 27, 2006
Posts: 428

The following article is a quite nice reading: How to write unmaintainable code
I know that it answers exactly the opposite question.
Else I suggest the book "Code Complete" from Steve McConnell which is worth it's weigth in gold.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 43993
I had forgotten about that article, Joachim Rohde. It is well worth reading.
Serap Elbeyoglu
Ranch Hand

Joined: Feb 12, 2010
Posts: 52
Joachim Rohde, is a great article to understand both maintainable and unmaintainable code writing. Thank you so much for your sharing. It can help many of us, especially who have huge questions about Java Programing Language.

I agree. Here's the link:
subject: Do You Know Writing Maintable Code?
It's not a secret anymore!