On 21 Oct 2014 21:02:22 GMT,
r...@zedat.fu-berlin.de (Stefan Ram)
wrote:
>Jorgen Grahn <
grahn...@snipabacken.se> writes:
>>No, those things are often left out from courses and tutorials for
>>some reason.
>
> For a long time, I have had it in my beginner's course,
> but some years ago, I have moved it to the advanced learners'
> course. The beginner's course only contains such small
> programs that it was difficult to explain what it is good for,
> and some other topics needed to be added to the beginner's course.
> Moreover, one might discuss whether this is still part
> of the language proper or rather part of a specific environment.
In 1973 I was in high school, and learned fortran. When I got to
college a few years later, I used what I had, which was fortran and
basic, w/ a little of 360 assembler.
Then I learned modula-2, and still use it for my own needs on windows.
As the language is essentially not supported, I am now trying Ada.
Then I read about
edx.org and decided to take their c++ course. That
course is almost finished. I am going to try to translate some of my
code into c++ and see how that goes.
I think I will try #pragma once for include guards. The other
languages I have used do not have the concepts that need these guards.
I find it very hard to read C-ish code. So I've added these other
helpers
#define EQ ==
#define NE !=
#define MOD %
#define AND &&
#define OR ||
#define IS {
#define END }
#define ADR &
#define POINTERTO *
#define PROCEDURE void
I have others, but this makes the point. I also do not make my living
programming so I am free to do as I like.
I'll add to my list
#pragma once
And I'll see how that goes.
One stumbling block for me is the GUI in Ubuntu. Stony Brook modula-2
has what I need to use the windows GUI, but I do not know how to do
this in linux. I came across ncurses, but I cannot find documentation
that is good enough for me to use it. Yet.
I'll keep trying.