Results 1 to 3 of 3
  1. #1
    Karlovsky120 is offline Member
    Join Date
    Jul 2013
    Posts
    15
    Rep Power
    0

    Question Structure conventions in editor programs

    I'm writting an editor program. Like any good editor, it should have opening, saving and all the similar functions that go with it (usually found under the "File" menu in editor programs). However, I'm not sure how to write the code to be both functional and well structured.

    Since what I'm talking about is major part of so many programs, I'm sure that some kind of standardized way of writing such code exists.

    Can you point me to somewhere where I could find informations about that? I'm sure there must be books that deal with this matter, I just don't know what keywords to google to get viable resutls...

    What have I tried so far?

    Various combinations of Filechoosers and dialogs with boolean and String markers, always failing in the end, either due to code becoming chaos or getting lost in it's structure and failing to unify my markers.

    I could put in some effort and make a working code, but since this is such a widespread problem I'm sure it's been done before, and what is most important, it has been done far better than I could ever do it. It's not that I'm lazy, I just want it to be done as best as possible.

    Any help is appreciated!


    This has also been posted on stackoverflow, but was shot down (temporarily, hopefully):
    java - Structure conventions in editor programs - Stack Overflow

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,105
    Rep Power
    6

    Default Re: Structure conventions in editor programs

    You ask a very reasonable question; I can only give you an unreasonable answer: what you want comes with experience. Eventually after a long period of writing eye-sore-inducing code, you stumble upon ways that are neat, clean and work amazingly well and then you keep applying those in future projects. With time you'll refine your skills (with a little help of others who give you hints how to do stuff better) and you'll become the epic programmer you want to be right now.

    I can advise you to read Effective Java 2nd edition; that's pretty much a standard for "how to do things the right way" even given its age.

    So no, don't worry. Make mistakes. When you write something, present it here and people can give you tips on improving the code.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    Karlovsky120 is offline Member
    Join Date
    Jul 2013
    Posts
    15
    Rep Power
    0

    Default Re: Structure conventions in editor programs

    Yeah, but I'm sure it's been done before, there must be code somewhere, or at least some more specific guidelines...

Similar Threads

  1. Conventions with Package Naming
    By thurstjo63 in forum New To Java
    Replies: 0
    Last Post: 11-13-2011, 06:58 PM
  2. question about coding conventions
    By gib65 in forum New To Java
    Replies: 8
    Last Post: 08-05-2010, 04:24 AM
  3. Naming conventions
    By tim in forum Forum Lobby
    Replies: 10
    Last Post: 11-16-2008, 09:27 PM
  4. Naming conventions
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-03-2007, 09:53 AM
  5. namespace conventions from sun....
    By money123 in forum New To Java
    Replies: 3
    Last Post: 07-31-2007, 05:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •