473,405 Members | 2,415 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

[Unfinished] "counter-based loops" tutorial available

I have to shop Christmas gifts (and clean up... ;-)) before leaving
on Christmas holiday tomorrow, where I'll effectively be without a
network connection until January 6th, so I just posted what I have so
far -- which perhaps you'll find interesting!

This is the third but unfinished part of what hopefully will become a
technically _correct_ C++ newbie tutorial.

<url: http://home.no.net/dubjai/win32cpptut/w32cpptut_01_03.doc>.

Comments & criticism welcome (post here, please, don't mail).

I'll look at those comments in January -- or perhaps this evening.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Jul 22 '05 #1
7 1521
Alf P. Steinbach wrote:
I have to shop Christmas gifts (and clean up... ;-)) before leaving
on Christmas holiday tomorrow, where I'll effectively be without a
network connection until January 6th, so I just posted what I have so
far -- which perhaps you'll find interesting!

This is the third but unfinished part of what hopefully will become a
technically _correct_ C++ newbie tutorial.

<url: http://home.no.net/dubjai/win32cpptut/w32cpptut_01_03.doc>.

Comments & criticism welcome (post here, please, don't mail).

I'll look at those comments in January -- or perhaps this evening.

That is a nice effort and my main comment is why call it win32 in the
first place.
Apart from this, I think that a tutorial aimed for complete beginners
should be as simple as possible, while I think your approach is very
complex for a beginner.
I think you should not try to explain everything for a specific feature
altogether, but introduce simple things for each feature at first, and
then at a second "pass" introduce the more advanced concepts.

In any case, making the tutorial Win32 specific means it is not ISO C++
specific.


--
Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 22 '05 #2

"Alf P. Steinbach" <al***@start.no> wrote in message
I have to shop Christmas gifts (and clean up... ;-)) before leaving
on Christmas holiday tomorrow, where I'll effectively be without a
network connection until January 6th, so I just posted what I have so
far -- which perhaps you'll find interesting!

This is the third but unfinished part of what hopefully will become a
technically _correct_ C++ newbie tutorial.

<url: http://home.no.net/dubjai/win32cpptut/w32cpptut_01_03.doc>.

Comments & criticism welcome (post here, please, don't mail).


I skimmed through the tutorial and overall it looks good to me.
Some points though
- You mention Ken Thompson to be creator of C. That's Dennis Ritchie
actually.
- I haven't read the first lesson of your series but have you introduced the
term UB and what it means ? Also it may be a good idea to tell as to what
causes the loop to reach UB (probably in a footnote).
- Do you intend to introduce while/do-while too ? May be just in a couple of
paragraphs.
- I wish the tutorial wasn't targeted only for a Windows user. Else you
could add a few lines for Unix users too wherever you mention Windows stuff.

Sharad
Jul 22 '05 #3
* Ioannis Vranos:
Alf P. Steinbach wrote:
I have to shop Christmas gifts (and clean up... ;-)) before leaving
on Christmas holiday tomorrow, where I'll effectively be without a
network connection until January 6th, so I just posted what I have so
far -- which perhaps you'll find interesting!

This is the third but unfinished part of what hopefully will become a
technically _correct_ C++ newbie tutorial.

<url: http://home.no.net/dubjai/win32cpptut/w32cpptut_01_03.doc>.

Comments & criticism welcome (post here, please, don't mail).

I'll look at those comments in January -- or perhaps this evening.

That is a nice effort


Thanks.

and my main comment is why call it win32 in the
first place.
Because the things a tutorial addresses such as tool usage, example
selection and so on are all system-specific.
Apart from this, I think that a tutorial aimed for complete beginners
should be as simple as possible, while I think your approach is very
complex for a beginner.
Perhaps it could be presented in some other way. However the issues
addressed are, I believe, those that a beginner has to struggle with.
I think you should not try to explain everything for a specific feature
altogether, but introduce simple things for each feature at first, and
then at a second "pass" introduce the more advanced concepts.
That's the idea, yes.
In any case, making the tutorial Win32 specific means it is not ISO C++
specific.


?

I'll check any explanation of that in January... ;-)

Have a Merry Christmas!

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Jul 22 '05 #4
* Sharad Kala:

"Alf P. Steinbach" <al***@start.no> wrote in message
I have to shop Christmas gifts (and clean up... ;-)) before leaving
on Christmas holiday tomorrow, where I'll effectively be without a
network connection until January 6th, so I just posted what I have so
far -- which perhaps you'll find interesting!

This is the third but unfinished part of what hopefully will become a
technically _correct_ C++ newbie tutorial.

<url: http://home.no.net/dubjai/win32cpptut/w32cpptut_01_03.doc>.

Comments & criticism welcome (post here, please, don't mail).
I skimmed through the tutorial and overall it looks good to me.
Some points though
- You mention Ken Thompson to be creator of C. That's Dennis Ritchie
actually.


Thank you.

I always confuse timelines. In _this_ timeline Dennis Ritchie was the
one, yes, building on the B language that Ken made. Grumble...

- I haven't read the first lesson of your series but have you introduced the
term UB and what it means ?
Yes.

Also it may be a good idea to tell as to what causes the loop to
reach UB (probably in a footnote).
I think it would be too much, especially in an HTML version.

- Do you intend to introduce while/do-while too ? May be just in a couple of
paragraphs.
Yes -- hopefully I'll get to that.

- I wish the tutorial wasn't targeted only for a Windows user. Else you
could add a few lines for Unix users too wherever you mention Windows stuff.


Most of the tool usage stuff is very Windows-specific, but so far the
C++ code has been pure Standard.

I don't know how well that will hold up.

Cross-platform solutions exist for most things but those solutions that
are cross-platform are also typically very large and complex, and one
main point of using C++ is to do platform-specific things, which I feel
should be illustrated.
Have a Merry Christmas!

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Jul 22 '05 #5
Alf P. Steinbach wrote:
and my main comment is why call it win32 in the
first place.

Because the things a tutorial addresses such as tool usage, example
selection and so on are all system-specific.

It should not cover tool usage. Tool usage instructions are up to the
implementer manual and discussion forums. You could suggest some
particular tool, e.g. Dev-C++ for Windows, but nothing beyond it.
In any case, making the tutorial Win32 specific means it is not ISO C++
specific.

?

I'll check any explanation of that in January... ;-)



In other words, a Linux user will probably avoid this tutorial due to
its name (and may be also due to involving Windows with C++ all the time
in its chapters).

Have a Merry Christmas!

Merry Christmas and a Happy New Year to you too!


--
Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 22 '05 #6
Alf P. Steinbach wrote:
Thank you.

I always confuse timelines. In _this_ timeline Dennis Ritchie was the
one, yes, building on the B language that Ken made. Grumble...

The history of C++ is as follows:
BCPL by Martin Richards (in 1960s)
B by Ken Thompson. As Dennis Ritchie notes:

"it is BCPL squeezed into 8K bytes of memory and filtered through
Thompson's brain."

C by Dennis Ritchie, which later became ISO/IEC 9899:1990 standard.
C++ by Bjarne Stroustrup, which later became ISO/IEC 14882:1998 standard.

C++ which with few exceptions (meaning differences), retains C90 as a
subset.
A nice document of history up to C is this by Dennis Ritchie:
http://cm.bell-labs.com/cm/cs/who/dmr/chist.pdf

--
Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 22 '05 #7
Ioannis Vranos wrote:
B by Ken Thompson. As Dennis Ritchie notes:

"it is BCPL squeezed into 8K bytes of memory and filtered through
Thompson's brain."

Thompson is also the creator of Unix.


--
Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 22 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Rahmi Acar | last post by:
Can any one redirect me to the place where i can find the stuff i need? Im by the way adding net time protocol so it will syncronise by it's own intergated watch. This is a start stopp application...
5
by: Brian Angliss | last post by:
I'm relatively new to scripting in JavaScript, so I'm not too surprised I'm having difficulty scripting up an animation effect for my personal site. What I'm trying to do is the following: When...
6
by: Fao | last post by:
Hi, I am in my first year of C++ in college and my professor wants me to Write a Program with multiple functions,to input two sets of user-defined data types: One type named 'Sign' declared by...
0
by: Mathias Lange, AMB-Informatik | last post by:
I'm trying to invoke the IBM Sample UDF "Counter" in an z/OS DB/2 V7 WLM Driven Environment. Query: SELECT A,B,COUNTER() FROM TABLE; Result -471 WLM Adress Space started corretly. Message...
25
by: Nitin Bhardwaj | last post by:
Well, i'm a relatively new into C( strictly speaking : well i'm a student and have been doing & studying C programming for the last 4 years).....and also a regular reader of "comp.lang.c" I...
13
by: Fao | last post by:
Hello, I am having some problems with inheritance. The compiler does not not return any error messages, but when I execute the program, it only allows me to enter the number, but nothing else...
14
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only...
3
Markus
by: Markus | last post by:
I was just playing around with javascript today and i wanted to change the style of a table element with javascript. The code i am using: ChangeIt(id){ var target = document.getElementById(id)...
0
by: Joe Strout | last post by:
Hi Luis, A static variable IS encapsulation. Encapsulation happens at many levels: module, class, instance, and (in languages that support it) method. A static local variable is simply the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.