You want to learn programming?
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    MarK
    Posts: 641 from 2004/1/25
    From: Prague, The Cz...
    Hmm, I start to feel, like I gonna write an english tutorial... Atleast for a simple tool like a MUI calculator... :-P But well, I'd write it only for PowerD. Basics of MUI would be nearly the same as with C, but I haven't C compiler correctly installed (I don't know what for ;-) ) so just let me known, if You would like me to do so, and we can start to 'develop' such a tutorial.

    Bye, MarK.
  • »11.02.04 - 14:26
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1217 from 2003/6/17
    MarK: what is the url for your tutorial? I speak Czech and can somewhat read it..but if I cannot my dad can translate.
  • »11.02.04 - 14:29
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    MarK
    Posts: 641 from 2004/1/25
    From: Prague, The Cz...
    Ok, I have written in Czech language 5 (bad) tutorials for PowerD, 1,2,3,4,5. Hope, it can help, but it's all only about basics of programming in PowerD, nothing like MUI yet...

    Bye, MarK.
  • »11.02.04 - 14:39
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1217 from 2003/6/17
    OH! Ok, I thought you meant you wrote a tutorial for MUI.. lol..
  • »11.02.04 - 14:46
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    MarK
    Posts: 641 from 2004/1/25
    From: Prague, The Cz...
    I will, it's the most important thing in MorphOS :-D
  • »11.02.04 - 14:50
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1217 from 2003/6/17
    If you write it I will volunteer to translate to english if needed? (looks like you're doing a good job and dont need the help)

    Do you know MUI reeeaaaaal good? If so, can I paypal you some $ to get started on a beginners tutorial for MUI ? (yes, I'm not joking)
  • »11.02.04 - 14:52
    Profile Visit Website
  • Cocoon
    Cocoon
    porneL
    Posts: 49 from 2003/7/17
    C and C++ are hard to learn. For beginners (or ex-basic programmers) there is shock "why there is no command for this and that!?".

    For many people pointers and memory management seem to be horror, and C++ hermetization, inheritance seems to be useless.

    I wouldn't recommend learning it unless you're serious about programming. You can write "hello world" fairly quickly, but before you write your first big, stable program it may take a year or two.
    Because you need not only learn language, but learn programming techniques, algorithms and systems API (at least amigaos api is pretty easy :)
    this text is here to confuse you
  • »11.02.04 - 17:29
    Profile
  • Targhan
    Posts: 2833 from 2003/2/8
    From: USA
    I wrote an "Intro to ARexx" over on the MDC, I',m sure I could expand on it if we want to cover ARexx here.

    ARexx is very powerful, and when using Alfie's RxMUI libraries it can be used to bridge some of the gaps between "structured" and "object" programming. Besides, ARexx is great for "quick results" to those wishing to learn.

    /* Hello.rexx */
    say "Yo! ARexx is saying Hello World!"
    :idea:Targhan

    MorphOS portal? www.MorphZone.org
  • »11.02.04 - 17:31
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    MarK
    Posts: 641 from 2004/1/25
    From: Prague, The Cz...
    No need to translate, I'll write it in english, but just tell me, what would You like. Is the calculator good choice? And deep cooperation would be required to write really good tutorial. Are You a volunteer to help me to find things to explain? ;-)

    And for sure, forget about any money, I'm not in situation, where I could promise anything, I'll do my best, but can't promise anything exact.

    Bye, MarK.
  • »11.02.04 - 19:56
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1217 from 2003/6/17
    porneL: I'm asking for some REAL documentation/tutorial on integration w/ MUI, not help with learning C or C++.
  • »11.02.04 - 19:57
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1217 from 2003/6/17
    MarK:
    A MUI tutorial..lets see... I'm sure we'll get alot of replies.. as for helping I know nothing of MUI..
    Your calculator example would be good..something that shows buttons, pull down menu's, popping up requesters etc. This can turn into quite a task for writing a tutorial which is why I offered to pay something. Maybe a few others here can ask what they would like to see in a MUI tutorial.
  • »11.02.04 - 20:00
    Profile Visit Website
  • MorphOS Developer
    itix
    Posts: 1516 from 2003/2/24
    From: Finland
    Btw since you were talking that Calculator example...

    Calculator.png

    Took about 5 mins to write a GUI for this :-) (I know I'm slow but I had to write some comments there)

    You can check source code here. I'm not good at explaining things and making it usable would need too much work... (this just creates a GUI, buttons aint working).
    1 + 1 = 3 with very large values of 1
  • »11.02.04 - 22:31
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Coder
    Posts: 296 from 2003/3/5
    From: The Netherlands
    Hi,

    About the MUI tutorial, it should explain a bit the history/thoughts
    about it. So that people get an idea what MUI is about. And then by
    some simple examples how you get something done. And then to the next
    level. Remember, a poorly written tutorial can even make "turning on
    the tv" look difficult.

    Coder
  • »11.02.04 - 23:39
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1217 from 2003/6/17
    itix: where is the code available for download at?
  • »11.02.04 - 23:57
    Profile Visit Website
  • Butterfly
    Butterfly
    Posts: 72 from 2003/2/25
    From: Auckland New Z...
    I think we should support both PowerD, C and Arexx with easy to use demos etc, then people get the choice of an easy-to-use Basic-like language, and C for those that want to get into it. I prefer PowerD to Python, as it can produce compiled programs.
    Basic languages IMO are good for beginners, because of the nice syntax- C etc are just plain cryptic- even with syntax highlighting, they are hard to read and debug! And as others have pointed out, there is so many easy to use commands to use with no extra work required- they make the learning curve so much easier for beginners- IMO many potential programmers could give up, if they start with C!
    If people want the flexibility/portability of C, they can always learn it later, it's not hard after something like PowerD!
    I'm against using Java for beginners, it has so much more complicated concepts to learn for beginners- ie: you need to understand Classes just to do a `Hello World' app!
    We have to consider that the Amiga always had a strong hobbiest programmer community, and that not everyone wants to learn high-end stuff- maybe just enough to do a small custom program or some Arexx control programs. We can always teach OO concepts later on with C++ and Java. And we could also use some C++ functions to make things easier for beginners; like the string functions and //'s for comments.
    - Ants
  • »12.02.04 - 02:17
    Profile Visit Website
  • Targhan
    Posts: 2833 from 2003/2/8
    From: USA
    Hello Ants! :-)

    I also feel that Hollywood should be covered, the developer has put a lot of effort into the system, and even made a MorphOS port. That is assuming there are folks around willing to share their knowledge on that subject as well.

    If everyone is in agreement, I can assign someone as a "tutorial admin," and can create a place to put those online. Whatever everyone wants to do. ;-)
    :idea:Targhan

    MorphOS portal? www.MorphZone.org
  • »12.02.04 - 05:58
    Profile Visit Website
  • Cocoon
    Cocoon
    Posts: 48 from 2003/5/13
    Hi Tcheko

    Quote:


    I am currently trying to come back to amiga (mos) programming and it is not easy. Too much thing have changed or documentation is too slim (no examples mainly).



    Right.

    Quote:


    I search the web last night and didn't found a good forum with wide knowledge base. Most of amiga dev forums are quite empty.



    The archive of the newsgroup comp.sys.amiga.programmer on Google is a true source of information ! There are many examples on Internet too ...

    Quote:


    Some people try to do some good stuff : www.guru-meditation.net for example. Content is french unfortunatly. Not too much article either but a good start (Hi Iliak!).



    Not too many articles ? It could be better but I think all the articles cover a large knowledge about AmigaOS programming.

    Quote:


    It would be definitively usefull to have a knowledge base about mos programming (by extend amiga programming) with examples and tutorials covering most important subjects :


    - How to setup devenv
    Quite easy with the MOS SDK from MDC
    - How to compile (build makefile)
    StAn wrote an article on this subject : http://www.guru-meditation.net/main.php3?root=412
    - MUI (Zune)
    I am preparing several examples with a increasing difficulty.
    - Networking (Mos 1.5)
    Yep, hard to have clear explanations :(
    - File I/O
    Do you really need advices about that ? Just ask on forums or dev mailing-list :) And use dos.library !
    - Datatypes
    I wrote 4 articles on that about pictures : http://www.guru-meditation.net/main.php3?root=155
    - Graphics
    Five articles from StAn at : http://www.guru-meditation.net/main.php3?root=183
    - Handlers
    ??
    - Creating Devices
    I don't know about that
    - Creating Libraries
    Just have a look at Clib on Aminet (works with all compilers) and skeleton in the examples of the MOS SDK (in the documentation directory)

    Quote:


    PS : If anyone know how to link SDL static lib... I take.



    I know. Please give more information about your problems ... why not through the forum of guru-meditation.net ?
  • »12.02.04 - 08:33
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    MarK
    Posts: 641 from 2004/1/25
    From: Prague, The Cz...
    Hi itix!

    Nice and fast work with that simple calculator, but I see, You don't use macros too much, this example can be written simplier (shorter=faster) using SimpleButton() macro :-) I'll write the same example in PowerD and everyone can compare :-)
    But tonight, now I'm at work :-P

    Bye, MarK.
  • »12.02.04 - 09:19
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Zylesea
    Posts: 2053 from 2003/6/4
    ants: It's not that much a question of choice of the right language. Everyone prefers a different one. I for example go the C++ route.
    Thing is, for (not too uncommon) languages there are lots of good books available (For pure C++ I liked the books of John Hubbard or Ulrich Breymann). It's easy to obtain information. The lack is only the mos/aos specific functions. A tutorial which systematically covers the most important os-functions would be great.
    My POV.

    And something other on my private wishlist: Would be great if the MOS sdk will be fixed to have a working g++ version...
    --
    http://via.bckrs.de

    Whenever you're sad just remember the world is 4.543 billion years old and you somehow managed to exist at the same time as David Bowie.
    ...and Matthias , my friend - RIP
  • »12.02.04 - 09:38
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Zylesea
    Posts: 2053 from 2003/6/4
    Addendum:
    Thanks for the calculator example. That one seems to be a good start. Now we only need someone who is writing what is going on.
    Starts with the includes (what is in which include file) goes on to the defines and so on...
    Someone haveing a spare evening to do so?

    Anyway, thanks for that example.
    --
    http://via.bckrs.de

    Whenever you're sad just remember the world is 4.543 billion years old and you somehow managed to exist at the same time as David Bowie.
    ...and Matthias , my friend - RIP
  • »12.02.04 - 09:46
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1217 from 2003/6/17
    am I the only one that cannot see source code to the calculator?
  • »12.02.04 - 14:37
    Profile Visit Website
  • Cocoon
    Cocoon
    porneL
    Posts: 49 from 2003/7/17
    Quote:

    I think we should support both PowerD, C and Arexx with easy to use demos


    That would be grrreat idea, if demos were doing the same things. Like calculator example in C, D, Arexx... You could compare the code and choose best one for you. If you know other language the switch between would be easier, etc.
    this text is here to confuse you
  • »12.02.04 - 14:59
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    MarK
    Posts: 641 from 2004/1/25
    From: Prague, The Cz...
    TheMagicM: Just click the 'here' word, it's the link to the ftp :)))
  • »12.02.04 - 15:40
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    MarK
    Posts: 641 from 2004/1/25
    From: Prague, The Cz...
    porneL: Great idea! But I there are far more languages... Anyone who knows Pascal, and others?
  • »12.02.04 - 15:42
    Profile