C++ writing int to binary file

Charles Curley charlescurley at charlescurley.com
Tue Apr 28 15:48:26 MDT 2009

On Tue, 28 Apr 2009 15:04:04 -0600
Bryan Sant <bryan.sant at gmail.com> wrote:

> On Tue, Apr 28, 2009 at 2:35 PM, Nicholas Leippe <nick at leippe.com>
> wrote:
> > On Tue Apr 28 2009 14:29:43 Sasha Pachev wrote:
> >> The issue in the post and the question about & got me thinking.
> >> With the arrival of more powerful hardware which made possible the
> >> existence of Java-like languages  where the internals of the CPU
> >> architecture are deeply hidden, we've gained something but I think
> >> we've lost something as well. It is good for the programmer to be
> >> close to the  hardware enough to feel some of the stress that his
> >> code puts on it. C++ is a good language to learn even if you never
> >> program in it for a job.
> >
> > I totally agree with the reasoning, and feel that assembly should
> > be a requirement simply for the understanding it provides. You
> > think differently when programming in any language once you've
> > learned assembly and consider what's happening underneath.
> I agree to both.  Writing the same application in asm, C, C++, Java,
> and Python would be an excellent exercise for students of the craft

I'll agree to learning the languages.

As for doing the same exercise in all five, I think not. But students,
having learned those five, will appreciate the variety of tools when
you tell them, "OK, your assignment for next week is to select a
language in which to write a GUI front end for passwd, a web framework,
and a battery charger; and explain your reasoning."

> /*
> PLUG: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
> */


Charles Curley                  /"\    ASCII Ribbon Campaign
Looking for fine software       \ /    Respect for open standards
and/or writing?                  X     No HTML/RTF in email
http://www.charlescurley.com    / \    No M$ Word docs in email

Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB

More information about the PLUG mailing list