Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2006

Tip: Looking for answers? Try searching our database.

good morning

Thread view: 
rosyn - 06 Feb 2006 10:41 GMT
i`m new to the java prog and i have some questions.
1-is java a difficult subject?
2-how can i write a good prog?
Bart Cremers - 06 Feb 2006 10:57 GMT
1 - Java is as difficult as any other programming language.
2 - Study, study and study some more

Bart
Paulus de Boska - 06 Feb 2006 11:05 GMT
Easier than C++, more difficult than VB.

Study a lot of examples :
http://javalessons.com
http://java.sun.com/docs/books/tutorial
and many more.
Rhino - 06 Feb 2006 14:11 GMT
> i`m new to the java prog and i have some questions.
> 1-is java a difficult subject?

"Difficult" is a totally subjective word: what's difficult for me may be
trivial for you and vice versa.

I found Java to have the biggest learning curve of any language I've ever
learned, by far. In other words, it took me considerably longer to feel
confident that I knew what I was doing with Java than it had ever taken with
previous languages.

On the other hand, Java does so much more than any other language I've ever
used that it isn't surprising that it takes longer to learn than other
languages. The huge number of things that I can do with Java is its biggest
attraction for me; most of the other languages I've used have only a small
percentage of the capabilities that Java has.

> 2-how can i write a good prog?

There are several elements to the answer to that question. In no particular
order:

- Ask your customers the questions that will help clarify in your mind what
the program needs to do and then listen to them. There is a strong tendency
among programmers to write the program that you think they should have
rather than what they actually want; you'll make them happier if you give
them what THEY want and if the program does what they want in the way they
want to do it.
- Learn your programming language and make sure you study both the theory
and the language statements. You will never write terribly good Java code if
you don't learn Object Oriented theory (analysis and design), no matter how
well you know the statements that make up the language. Learn what Design
Patterns are and when to use them.
- Don't be afraid to ask questions of people who know more than you. This
newsgroup is a good place to go with Java questions and has many very
helpful and knowledgeable people on it.

I could go on but that's a start.

--
Rhino
Roedy Green - 06 Feb 2006 14:37 GMT
>i`m new to the java prog and i have some questions.
>1-is java a difficult subject?
>2-how can i write a good prog?

Some people have a knack for programming. Some will never be able to
do it. It requires extreme attention to detail.

So for some it is fun, others impossible.

If you have abundant curiosity and lots of patience it will do you
well.

To learn to write well, post your code.  Let others critique it.  If
you have a thick skin, you will learn quickly.  Look at the code
written by Sun and other acknowledged good coders. Copy their style.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Oliver Wong - 06 Feb 2006 19:22 GMT
> Look at the code
> written by Sun and other acknowledged good coders. Copy their style.

   Not everyone agrees that Sun is among the "Good" coders; though if
you're just starting out, Sun is probably better than you. If you see some
of Sun's code that doesn't make sense, don't be afraid to ask about it.
Maybe it's one of the lousier parts of their code.

   For example, it's generally considered a bad idea to create an interface
that doesn't define anything, but Sun did exactly that with their
Serializable interface.

   - Oliver
Luc The Perverse - 06 Feb 2006 18:57 GMT
> i`m new to the java prog and i have some questions.
> 1-is java a difficult subject?
> 2-how can i write a good prog?

Learning to program in any language should be challenging.   Depending on
your drive/interest/determination that challenging aspect can either be
engaging or frustrating.

Now depending on what you are trying to do, Java can be a lot easier than
some other language.  For instance if you want to display a picture and then
have a yes no box with a question, this would be MUCH MUCH easier to do in
Java than say . . assembler.   (You may find this true of most abstract
programming tasks.)

As for how to write a good one.  You just need a lot of practice - and don't
be afraid to rewrite something (from scratch) if you feel you may have "done
it the wrong way".

--
LTP

:)
Hal Rosser - 06 Feb 2006 23:10 GMT
> i`m new to the java prog and i have some questions.
> 1-is java a difficult subject?
> 2-how can i write a good prog?

answers
1. yep - of course its hard - that's why we make the big bucks.
2. one line at a time - and practice, practice, practice.
megagurka - 07 Feb 2006 08:18 GMT
As soon as you've learned the basics of Java, get a copy of "Effective
Java" so you learn to do things correctly. And if you are serious about
learning how develop software, you shouldn't concentrate too much on
the programming language (that is the easy part). Instead you should
learn about object oriented programming, design patterns, extreme
programming, refactoring etc. But even if you know all the theory you
will make lots of mistakes in your first projects. So, learn from them.

/JN


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.