republican-creole
Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » Webmasters and Developers » [Chat] C++, Thinking out loud ...
Uniqs:
1743
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
[help] Coding help »
« cellphones, or the art of small screen friendly sites  

usa2k
Please PRAY for Rebekah
Premium,MVM
join:2003-01-26
Canton, MI
clubs:
·VOIPo
·WOW Internet and C..
·Broadvox Direct

[Chat] C++, Thinking out loud ...

I got side-tracked lately with some old books of mine on C++.

I started reading the early edition of "Thinking in C++" and was feeling overloaded by the end of chapter 2. (Chapter 0 is the 1st chapter)

I switched to another book I had - "Learn C++ in 24 Hours". It was crafted with 24 chapters, and I loved it this time around. I managed to progress to chapter 20 before feeling a heavy weight of the subject.

I also had "Introduction to C++" but quickly decided I did not like the format of the book, and its cutie subject headings. I cannot fathom what possessed me to purchase that book?

Today I paid a visit to the local book store and noticed a few things. Many of the C++ books for sale were written between 1999, and 2005 (More older than newer). Based on that, the books I have are not likely to be too out-of-date!

I think I will take another run at "Thinking in C++" from the 1st chapter (Chapter 0) again. An immersion approach sometimes help me hammer the information into my brain.

One thing I wonder is if C++ is on the decline? I did not get a sense that there are new killer libraries to wow the programming industry. I had thought that the LINUX camp would still be evolving C++. It looks like the Standard Template Library(STL) is the defacto library to learn.

If I am getting the right sense of the programming world, C# has maybe overtaken C++ in the Microsoft camp? The .Net world framework tries to keep MS unique, or maybe even makes it cutting edge?

I've been conditioned by those I've known, that MS is the evil empire - so why buy into their system and feed it further? Stay open source, cross platform in my personal education. Seek good programming tools that will promote a level playing field.

Anyway, those are a few scattered thoughts. If anybody wants to correct my perspective, agree/disagree, please do so! If C++ is becoming a dead horse, why? Is C# the end-all-be-all? If so, does that mean Microsoft wins?

In any case, thank you for listening to my ramblings here.
--

Jim, VoIP 12/2002, VOIPo 2/2007
FAH-Tool ... Pets ... USA2K site ... Artist-247

PetePuma
How many lumps do you want
Premium,MVM
join:2002-06-13
Arlington, VA

Re: [Chat] C++, Thinking out loud ...

I'd say C# is now the de-facto for most MS development. It's frankly nicer, easier, and has a lot of additional library support (via .NET) that would just be trickier in C++. And it has the added advantage of also being a viable web development language.

You're ignoring Java as the other viable alternative. It has many of the same advantages (and disadvantages) of C#.

C and C++ will be around a long while, but they are becoming a bit more specialized for applications where performance or footprint is tantamount. We do a lot of Windows development (and some Linux development) at my job, and over the last 3-4 years we've gone from mostly a C++ shop to almost entirely C# -- I think maybe 3/4 of the team has never written a line of C or C++ in their lives.
--
Fight fire with water.

usa2k
Please PRAY for Rebekah
Premium,MVM
join:2003-01-26
Canton, MI
clubs:
·VOIPo
·WOW Internet and C..
·Broadvox Direct

Re: [Chat] C++, Thinking out loud ...

Thank you!

I am not really ignoring Java, just focusing on the state of C++, and likely C#. Java has been a slow start for me, but I plan to master it eventually as well.

I am soon hoping to reboot my career by going back to school pursuing an Associate Degree as a Computer Information Web Specialist. There is a mixture of graphics, and programming subjects in the course structure.
»www.schoolcraft.edu/pdfs/guides/···list.pdf

I appreciate your insight relating to C++ and C#. Notice there are no Java subjects listed, or C++. The Programming Associate degree might be a better fit for me, but I am looking for government financing and it does not list this other degree
»www.schoolcraft.edu/pdfs/guides/···tems.pdf
(A good list of Microsoft disciplines!)

Electronics/Automotive was my past career. Now that I do not currently have a career, I am looking to do something I enjoy more. Of my 26.5 years at one place, the majority of my time has been more of a Team Leader/Supervisor type role.

I want to get hands on in Web Design/Programing role.
I hope the next 26 will be more satisfying!
--

Jim, VoIP 12/2002, VOIPo 2/2007
FAH-Tool ... Pets ... USA2K site ... Artist-247

Bobcat
Premium
join:2001-02-04
Bedminster, NJ
·Verizon Online DSL


1 edit
said by PetePuma See Profile :

C and C++ will be around a long while, but they are becoming a bit more specialized for applications where performance or footprint is tantamount.
They're certainly more popular for embedded systems. Note that the embedded target market far exceeds the desktop market. Probably the server market, too.
--
It's nice to be important, but it's more important to be nice.

Steve
I'm a PC, so shut up
Consultant
join:2001-03-10
Yorba Linda, CA

said by usa2k See Profile :

I've been conditioned by those I've known, that MS is the evil empire - so why buy into their system and feed it further?
Whatever you think of Microsoft, C# is a kick-ass language surrounded by a tremendous library environment - it's exceptionally rich (hey, extension methods alone are worth the cost of admission).

And once you use LINQ you won't ever again say that Microsoft has never innovated.

Steve — C programmer since 1981, C++ since 1990, C# since 2005
--
Stephen J. Friedl | Unix Wizard | Microsoft Security MVP | Orange County, California USA | my web site

usa2k
Please PRAY for Rebekah
Premium,MVM
join:2003-01-26
Canton, MI
clubs:
·VOIPo
·WOW Internet and C..
·Broadvox Direct

Re: [Chat] C++, Thinking out loud ...

Thanks Steve. Your opinion and many other like Pete's are highly valued by me.

Excluding Windows is likely the same as avoiding major highways. I need to adjust my thinking to what can do the most in our current age. Plenty of pioneers to play the rebel out there already.
--

Jim, VoIP 12/2002, VOIPo 2/2007
FAH-Tool ... Pets ... USA2K site ... Artist-247

Gomez
Been drinking brew for breakfast?
Premium,Mod
join:2001-02-21
Atlanta, GA
clubs:
·Speakeasy

Host:
Pub Games
It is the economy,..
Clearwire
said by Steve See Profile :

said by usa2k See Profile :

I've been conditioned by those I've known, that MS is the evil empire - so why buy into their system and feed it further?
Whatever you think of Microsoft, C# is a kick-ass language surrounded by a tremendous library environment - it's exceptionally rich (hey, extension methods alone are worth the cost of admission).

And once you use LINQ you won't ever again say that Microsoft has never innovated.

Steve — C programmer since 1981, C++ since 1990, C# since 2005
Steve doing C#?.. you know that's almost java .. "C# for java programmers" is a pretty thin book. (»www.onjava.com/pub/a/onjava/2001···ava.html)

That said, a lot of java programmers have jumped ship and are now coding groovy (»groovy.codehaus.org)

Bottom line. No matter what you've learned, ya' gotta keep on top of the current technologies.
--
It's a fact : Chicks dig Mafia players.
'Wanna help buy a goat?' - »www.kiva.org

Steve
I'm a PC, so shut up
Consultant
join:2001-03-10
Yorba Linda, CA

Re: [Chat] C++, Thinking out loud ...

said by Gomez See Profile :

Steve doing C#?..
The difference between C# and Java is that Java sucks

Gomez
Been drinking brew for breakfast?
Premium,Mod
join:2001-02-21
Atlanta, GA
clubs:
·Speakeasy

Host:
Pub Games
It is the economy,..
Clearwire

Re: [Chat] C++, Thinking out loud ...

said by Steve See Profile :

said by Gomez See Profile :

Steve doing C#?..
The difference between C# and Java is that Java sucks
Yep, other than the syntax being the same, the exception handling being the same.. One sucks the other doesn't..

NIH (Not invented here) syndrome me thinks.

I know you won't bite this bullet, given the friendly cross fire over C vs java for years.. Makes it all that much more fun

--
It's a fact : Chicks dig Mafia players.
'Wanna help buy a goat?' - »www.kiva.org

nil
Java Geek
join:2000-11-27

Host:
Webmasters and Dev..
Forum Feature Requ..

1 edit
said by Steve See Profile :

said by Gomez See Profile :

Steve doing C#?..
The difference between C# and Java is that Java sucks
.. and while both languages are quickly becoming irrelevant outside of business-type programming, Java looks like it has a brighter future than C#.

Groovy is one language worth looking into, Scala is another.

That's only if you want to stay current on technologies, of course. Otherwise, there's always cobol.
--
Life is too short to be boring

Steve
I'm a PC, so shut up
Consultant
join:2001-03-10
Yorba Linda, CA

Re: [Chat] C++, Thinking out loud ...

said by nil See Profile :

Otherwise, there's always cobol.
I prefer the object-oriented version: ADD ONE TO COBOL


Gomez
Been drinking brew for breakfast?
Premium,Mod
join:2001-02-21
Atlanta, GA
clubs:
·Speakeasy

Host:
Pub Games
It is the economy,..
Clearwire

Re: [Chat] C++, Thinking out loud ...

said by Steve See Profile :

said by nil See Profile :

Otherwise, there's always cobol.
I prefer the object-oriented version: ADD ONE TO COBOL


Wouldn't that be ADD 1 TO COBOL? You give more credit to the parser than it deserves.
--
It's a fact : Chicks dig Mafia players.
'Wanna help buy a goat?' - »www.kiva.org

drew
Reformation
Premium
join:2002-07-10
Port Orchard, WA
clubs:
·wavebroadband

Here's my question: if Java and C# are going away for everything but desktop business, what's there for desktop consumer?

I say that because computing in the cloud, so far, sucks. Google Apps is by far the most prevalent and well known IMO, yet even in Chrome, which should be the *best* performer for Google Apps, it's dog slow. What happens when I want to work on a letter to grandma when I'm not able to get online?
--
Come play Mafia! | My Picture Blog

nil
Java Geek
join:2000-11-27

Host:
Webmasters and Dev..
Forum Feature Requ..

Re: [Chat] C++, Thinking out loud ...

There are many new languages coming up. A few are mentioned in this thread.

Let me put it this way:

10 years ago, enthusiastic geeks were using Java and business managers were scoffing, these days business managers want Java and enthusiastic geeks moved on.

If you want to stay relevant, you have to stay current.
--
Life is too short to be boring

drew
Reformation
Premium
join:2002-07-10
Port Orchard, WA
clubs:
·wavebroadband

Re: [Chat] C++, Thinking out loud ...

My apologies -- even after a quick re-read, I'm not seeing anything about new languages for the desktop. Only web techs.

@Gomez: I respect that the web is evolving VERY rapidly. We've had conversations about this and you've told me to get started on symfony, yesterday so to speak.

I'm personally concerned that there's too much movement towards the web. I can speak in detail about the problem due to experience in a product we're working right now.
--
Come play Mafia! | My Picture Blog

Gomez
Been drinking brew for breakfast?
Premium,Mod
join:2001-02-21
Atlanta, GA
clubs:
·Speakeasy

Host:
Pub Games
It is the economy,..
Clearwire

Re: [Chat] C++, Thinking out loud ...

said by drew See Profile :

My apologies -- even after a quick re-read, I'm not seeing anything about new languages for the desktop. Only web techs.

@Gomez: I respect that the web is evolving VERY rapidly. We've had conversations about this and you've told me to get started on symfony, yesterday so to speak.

I'm personally concerned that there's too much movement towards the web. I can speak in detail about the problem due to experience in a product we're working right now.
(box + Brain).moveOutside

Any application that has human interaction can and should be web-based.. it's a common interface. Just as Chris Date said there is no reason that a relational database can't perform on par with a non-relational system many have have said the same about UIs.
--
It's a fact : Chicks dig Mafia players.
'Wanna help buy a goat?' - »www.kiva.org

drew
Reformation
Premium
join:2002-07-10
Port Orchard, WA
clubs:
·wavebroadband

Re: [Chat] C++, Thinking out loud ...

I *hate* web browsers though. Absolutely hate them.

None of them work as they should, there's no standardization.

Form design on a desktop app is not only significantly easier, it's far simpler to handle input from. Any time you design a web app, no matter if it's standards compliant or not, there's at LEAST one of the browsers you have to add in some kind of hack for.

I don't think my head's stuck in a box -- I'm open to new ideas. I'm just talking from a very low skill programmer's [insert word here for what I really am] perspective but mostly from a user's.

The only thing I've seen from a web technology that's really made me go "Whoa..." was Flex. Even then, it's not *that* cool.
--
Come play Mafia! | My Picture Blog

Gomez
Been drinking brew for breakfast?
Premium,Mod
join:2001-02-21
Atlanta, GA
clubs:
·Speakeasy

Host:
Pub Games
It is the economy,..
Clearwire

Re: [Chat] C++, Thinking out loud ...

said by drew See Profile :

I *hate* web browsers though. Absolutely hate them.

None of them work as they should, there's no standardization.

Form design on a desktop app is not only significantly easier, it's far simpler to handle input from. Any time you design a web app, no matter if it's standards compliant or not, there's at LEAST one of the browsers you have to add in some kind of hack for.

I don't think my head's stuck in a box -- I'm open to new ideas. I'm just talking from a very low skill programmer's [insert word here for what I really am] perspective but mostly from a user's.

The only thing I've seen from a web technology that's really made me go "Whoa..." was Flex. Even then, it's not *that* cool.
That's strictly a matter of prioritization. What do you want vs. what does the customer want.. Odds are the requirements are vastly different, and one of opinion holders writes checks.
--
It's a fact : Chicks dig Mafia players.
'Wanna help buy a goat?' - »www.kiva.org

drew
Reformation
Premium
join:2002-07-10
Port Orchard, WA
clubs:

Re: [Chat] C++, Thinking out loud ...

Am I not a consumer?

Gomez
Been drinking brew for breakfast?
Premium,Mod
join:2001-02-21
Atlanta, GA
clubs:
·Speakeasy

Host:
Pub Games
It is the economy,..
Clearwire

Re: [Chat] C++, Thinking out loud ...

said by drew See Profile :

Am I not a consumer?
We are all both..

But the context is providing software solutions, and in the most part in an SAS environment.

Forgive me if I'm wrong, but I'm working on the assumption at this point of the thread diversion (perhaps it should be split?) that it's technology to back a business model.

Cool thing about a web business model is that it's not hard build an app.. The thing that sucks about a web business model is that "it's not hard build an app.."

Classic business models are based on IP (Intellectual property) you can protect that hinders someone from entering your chosen space. i.e. Adobe, Microsoft, Apple..

But the web space has little IP.. Facebook, MySpace, Digg, Yahoo, even Google.. None that's solid. There are some weak attempts, but there are no real IP barriers prohibiting any of us from attempting to enter any of those spaces..

The spaces are won by good timing getting there, and being agile to your consumer requirements once you are there..

If you want to play in this space, you have to play to win, and that means being on-top of the technology race, understanding what your users want, and deploying it as timely as possible.
--
It's a fact : Chicks dig Mafia players.
'Wanna help buy a goat?' - »www.kiva.org

drew
Reformation
Premium
join:2002-07-10
Port Orchard, WA
clubs:
·wavebroadband

Re: [Chat] C++, Thinking out loud ...

But even the web 2.0 sites have desktop utilities that make the web app simply that much better.

Take TweetDeck as an example. While it's done in Adobe AIR, it's an app I run from the desktop and I don't browse to in a web browser. It consolidates many pages worth of Twitter AND facebook data for easy viewing.

I don't dismiss the viability of SAS (software as a service if I understand correctly) and its business model, I just don't think, nor do I want, web applications to be it.

Browsers are the bottleneck there and until Microsoft either gets off the stage and the WebKit guys join up with Mozilla and Opera dies or comes up with the "killer app" browser, I don't think we'll see the end of the consumer desktop application.

Maybe when the technology is there so I don't have to dick with things like CSS (All of you please tell me how on earth you like CSS after doing any kind of Windows or GTK (?) forms based development) to make a web app decent... I'm playing around with Symfony and doing their Jobeet "advent" calendar, but they completely disregard the style-side, because that's out of scope! While serious enterprise class desktop developers often, from my understanding, usually hook into forms and UIs created by real designers, the non-enterprise developers can still do a fantastic job without the same kind of bullshitting you have to do on the web.

I don't think the web technologies are there yet. That's all I'm saying.
--
Come play Mafia! | My Picture Blog

Gomez
Been drinking brew for breakfast?
Premium,Mod
join:2001-02-21
Atlanta, GA
clubs:
·Speakeasy

Host:
Pub Games
It is the economy,..
Clearwire

Re: [Chat] C++, Thinking out loud ...

said by drew See Profile :

But even the web 2.0 sites have desktop utilities that make the web app simply that much better.

Take TweetDeck as an example. While it's done in Adobe AIR, it's an app I run from the desktop and I don't browse to in a web browser. It consolidates many pages worth of Twitter AND facebook data for easy viewing.

I don't dismiss the viability of SAS (software as a service if I understand correctly) and its business model, I just don't think, nor do I want, web applications to be it.

Browsers are the bottleneck there and until Microsoft either gets off the stage and the WebKit guys join up with Mozilla and Opera dies or comes up with the "killer app" browser, I don't think we'll see the end of the consumer desktop application.

Maybe when the technology is there so I don't have to dick with things like CSS (All of you please tell me how on earth you like CSS after doing any kind of Windows or GTK (?) forms based development) to make a web app decent... I'm playing around with Symfony and doing their Jobeet "advent" calendar, but they completely disregard the style-side, because that's out of scope! While serious enterprise class desktop developers often, from my understanding, usually hook into forms and UIs created by real designers, the non-enterprise developers can still do a fantastic job without the same kind of bullshitting you have to do on the web.

I don't think the web technologies are there yet. That's all I'm saying.
Point taken..

But the reason the apps are capable of platform is embedding rich rendering objects that use the same interfaces.. That just makes the case stronger for two key patterns in SAS and remote software design: MVC (Model View Controller), and Separation of Concerns.

That fat client exists because of the common, web standards based, interfaces.
--
It's a fact : Chicks dig Mafia players.
'Wanna help buy a goat?' - »www.kiva.org

usa2k
Please PRAY for Rebekah
Premium,MVM
join:2003-01-26
Canton, MI
clubs:
·VOIPo
·WOW Internet and C..
·Broadvox Direct

Re: [Chat] C++, Thinking out loud ...

I've let myself get sidetracked on
    Sams Teach Yourself
    C# 2008 Visual Studio
    in 24 Hours

Working on chapter #6. It is exceptionally fun so far!
The presentation is different from C++ and Java books ...
It is proving to be a rapid practical experience without pain (yet!)
--

Jim, VoIP 12/2002, VOIPo 2/2007
FAH-Tool ... Pets ... USA2K site ... Artist-247
modemslayer

join:2003-12-11
Spokane, WA
·Comcast

said by Gomez See Profile :

Any application that has human interaction can and should be web-based..
For n-tier, client server based systems, sure...

But for pure desktop applications? I'm not buying that. You'd have desktop applications like photoshop and Nero be web-based? Acronis true image? AVG apps? Video games like World of Warcraft? What would be the benefit for a complex desktop application to run locally inside of a browser? IMHO you'd be setting desktop application development back, not moving it forward.

Adobe could make photoshop web-based. Blizzard could make WoW web-based. Why aren't they doing that? There's lots of web-based office productivity applications out there, yet people still like desktop apps like MS Office...

Maybe it's the same as arguing religion lol.

nil
Java Geek
join:2000-11-27

Host:
Webmasters and Dev..
Forum Feature Requ..
That's where you will likely see most language development in coming years. Until there is some new technology to focus on.

My prediction: biggest areas of development in the next couple years will be cross-device computing. Think applications that can run on phones, TVs, game consoles, web and yes, desktops.
--
Life is too short to be boring

Gomez
Been drinking brew for breakfast?
Premium,Mod
join:2001-02-21
Atlanta, GA
clubs:
·Speakeasy

Host:
Pub Games
It is the economy,..
Clearwire

1 edit
said by drew See Profile :

Here's my question: if Java and C# are going away for everything but desktop business, what's there for desktop consumer?

I say that because computing in the cloud, so far, sucks. Google Apps is by far the most prevalent and well known IMO, yet even in Chrome, which should be the *best* performer for Google Apps, it's dog slow. What happens when I want to work on a letter to grandma when I'm not able to get online?
it's a matter of the best solution.. There is a paradigm shift happening, and those who are not noticing are in trouble.. Win32/.net/other current MS tech isn't going away.. It's firmly entrenched.

Web technologies are evolving rapidly. All the web technologies that were safe bets two years ago are out of favor now. the new hotness is ruby/rails, jruby/rails, groovy/grails, php/symphony..

Doesn't really matter if you are a couch hacker. But if it's a career, it's vital to adapt.
--
It's a fact : Chicks dig Mafia players.
'Wanna help buy a goat?' - »www.kiva.org

urbanriot

join:2004-10-18
St Catharines, ON
·Cogeco Cable

said by usa2k See Profile :

I switched to another book I had - "Learn C++ in 24 Hours". It was crafted with 24 chapters, and I loved it this time around. I managed to progress to chapter 20 before feeling a heavy weight of the subject.
If that book's first printing was quite some time ago, I think I read it when I was about 14 or so and was quite a great introduction to C++ (from years of Basic, Pascal, C and Assembly). If you're going the book route, make sure you type up the labs.

Personally I feel one should learn programming and object oriented fundamentals more than they should learn how to program in a particular language. As I kid I was a whiz with assembly and C, but my mind really opened up when we learned object oriented Pascal in high school. From there, progressing from that to C++ and C# was intuitive.

usa2k
Please PRAY for Rebekah
Premium,MVM
join:2003-01-26
Canton, MI
clubs:
·VOIPo
·WOW Internet and C..
·Broadvox Direct

Re: [Chat] C++, Thinking out loud ...

Thinking in C++ 1995 (I was 35)
Learn C++ in 24 Hours 1997 (2000 printing)

Some of my electronics schooling included PDP8 and PDP11 programming.
The mainframes were a pair of HP3000 and BASIC was my subject.
Single board computer assembler also back then.

I was not really pursuing programming until around 2000.
usa2k.com was my first URL I purchased in 2000.
PHP is my best language, but not the OO part (yet!)

If I have the luxury, I like to saturate myself with the reading of a book, then go back and work through the exercises on a second read. But that is me.

Two more years in school and I will be 51, but the economy should be on the mend by then!
--

Jim, VoIP 12/2002, VOIPo 2/2007
FAH-Tool ... Pets ... USA2K site ... Artist-247

djrobx

join:2000-05-31
Valencia, CA
·PHONE POWER
·AT&T U-Verse
·AT&T CallVantage
·Time Warner VOIP
·RoadRunner Cable


2 edits
Your old books are perfectly fine for learning purposes.

C# is fantastic. It's a more "professional" version of what was good about the "classic" Visual Basic with C-like syntax. With the extremely rich .NET framework and simple methods for accessing COM components, you can cobble the damndest things up in no time. You can use C# code in anything from Windows apps to console executables to server side web page generation.

It's fast and fun to develop in.

It won't replace C++. There are times when you need a deeper level of control and performance that C++ is better for. You can use C# and C++ together quite easily, though. A recent example, C# has a serial port class, but it's too latent to talk to my DirecTV receiver. No biggie, I wrote some "low level" C modules to talk to it, and then linked to them from my C# app.

C++ is more universal and can be readily compiled on almost any platform.

The good news is that once you've learned the basics of one of these languages, it's relatively easy to pick up the next. Don't fear that what you learn in C++ would be wasted. Most of what you learn is directly applicable to any other object oriented language with minor syntax differences.
--
AT&T U-Hearse
Your funeral. Delivered.

Bobcat
Premium
join:2001-02-04
Bedminster, NJ
·Verizon Online DSL

Re: [Chat] C++, Thinking out loud ...

said by djrobx See Profile :

C# has a serial port class, but it's too latent to talk to my DirecTV receiver.
So C# on a 2 GHz Pentium is too slow to do what a 2 MHz 8080 could do with assembly or Basic?

DC DSL
Stays crunchy even in milk
Premium
join:2000-07-30
Washington, DC
·Covad Communications
·Verizon Online DSL


1 edit

Re: [Chat] C++, Thinking out loud ...

said by Bobcat See Profile :

So C# on a 2 GHz Pentium is too slow to do what a 2 MHz 8080 could do with assembly or Basic?

In many respects that, unfortunately, is the case. The overwhelming majorty of programmers that didn't earn their stripes in the days of miniscule memory and processor speeds don't give a hoot about how compact or efficient their code is. If they would rediscover that art, they would also have half the battle for secure code won as well.

MS is a huge mis-leader in this area. Office and Visual Studio are horrible memory pigs and performance-challenged, but they're more concerned with adding every conceivable function to the core, regardless of actual utility, than they are with make it run fast and in the smallest memory footprint possible.

A few years ago I showed some MS product guys exactly what's wrong with their thinking. I dusted off an app I wrote in 1984 using dBASE II and fired it up in a DOS VM. The app was a monthly process that worked on on some 50K parent rows and a typical 4 or 5 child rows. On a 6MHz AT with the fastest PC disk drive of the day, this program would take about 12-14 hours to run. In the VM, this sucker was done in about 20 minutes. However, ports of the same app to both VB and VC console apps took 45 minutes to run (didn't matter if it was an Access MDB or SQL Server as the database).

No argument that 45 minutes is a hell of an improvement over 12 hours. But why should the modern Windows code take twice as long to execute as 25 year old 8088 code that was doing all the interpreting, calculating, and I/O itself?

Going by the code I see from younger programmers, there clearly is a monumental lack of discipline and basic understanding of what goes on in the hardware when a program runs. Modern CS education emphasizes OOP, abstraction, and reusability as basic tenets, but pays little attention to using those correctly. One poorly thought out object model or inefficient loop will ruin an app worse than writing one like COBOL still ruled. Only the nerdiest are ever exposed to considerinig the implications of things like "passing parameters by value or reference." (Offshore programmers are the absolute worst when it comes to scalability or proper implementation of abstraction.)

How I wish I could whup sense into most younger programmers. The true ability to design efficient code has gone the way of diagrammable writing. At least I get to confound them with "how the hell does he make his code run so much faster than mine?"
--
There is no giant fur-bearing trout.

Bobcat
Premium
join:2001-02-04
Bedminster, NJ
·Verizon Online DSL

Re: [Chat] C++, Thinking out loud ...

For the past 7 years, I've been leading a project that involves C on a 40 MHz DSP. We only have 128k bytes of memory for the program and variables, plus 1 MB for the heap (which is used entirely for large data structures). I wrote an executive which, IIRC, is around 20 lines of code. No RTOS. No semaphores or other crap. The poor little DSP is overworked, but it gets the job done and degrades gracefully.

For a few months, they put me on a job which was going to be done in Ada95. They told me to start doing class diagrams and all that other OO crap. It was horrible. I was like, "If I started writing the code, I'd be halfway done by now." The good news was the DSP job needed a bunch of new features added, so I got back on that. Thank goodness.

I'm now on a job that uses the same DSP for something else. They had an expert develop an interferometry algorithm for us. He assumed we'd have a multi-GHz Pentium and developed something which would never be fast enough on our 40 MHz DSP. Luckily, I was able to modify his algorithm and make it run in 100 usec on the DSP.

The OO weenies had a pile of crap they called "The Framework" added to another Ada95 job. The stupid thing used tons of memory for no good reason, and they ran the system out of memory. I looked at it for 15 minutes and found 7 MB of memory being wasted by some stupid OO thing. Now they have other people trying to rip it apart to save memory.

What are these kids learning in school now a days?
--
It's nice to be important, but it's more important to be nice.

usa2k
Please PRAY for Rebekah
Premium,MVM
join:2003-01-26
Canton, MI
clubs:
·VOIPo
·WOW Internet and C..
·Broadvox Direct

Re: [Chat] C++, Thinking out loud ...

said by Bobcat See Profile :

What are these kids learning in school now a days?
I'll let you know when I'm a 'Kid' again!

I know lots of the course subjects simply will prove I can learn, and teach core principles. At 49, maybe I might be able to find a more expanded level to my inner 'Kid'? (Thinking big never hurts!)
--

Jim, VoIP 12/2002, VOIPo 2/2007
FAH-Tool ... Pets ... USA2K site ... Artist-247

cowboyro

join:2000-10-11
Shelton, CT
·AT&T U-Verse
·Comcast
·Optimum Voice

Don't forget that the newer compilers include a sh1tload of buffer and exception checks, slowing down the code. Also making the code too much object-oriented can cause slowdowns (objects that get created and destroyed way too frequently). There must be a balance between code readability and execution speed, but too many programmers just go by "get a faster machine". My programming started with BASIC and Z80/I8080 assembly though...

DC DSL
Stays crunchy even in milk
Premium
join:2000-07-30
Washington, DC
·Covad Communications
·Verizon Online DSL

Re: [Chat] C++, Thinking out loud ...

said by cowboyro See Profile :

Don't forget that the newer compilers include a sh1tload of buffer and exception checks, slowing down the code. Also making the code too much object-oriented can cause slowdowns (objects that get created and destroyed way too frequently). There must be a balance between code readability and execution speed, but too many programmers just go by "get a faster machine". My programming started with BASIC and Z80/I8080 assembly though...

It's always fun to wallop some "super genius" over a sucky object model. One way to get on my bad side is defending a hierarchy that fully constructs all of the subordinate objects when the parent is constructed just to get a few properties of the parent. "Learn how to support lazy-loading!"

I have like 4x more computing power in any of my laptops than existed in total on the planet when I started playing with computers in 1968.
--
There is no giant fur-bearing trout.

DC DSL
Stays crunchy even in milk
Premium
join:2000-07-30
Washington, DC
·Covad Communications
·Verizon Online DSL

said by usa2k See Profile :

I've been conditioned by those I've known, that MS is the evil empire - so why buy into their system and feed it further? Stay open source, cross platform in my personal education. Seek good programming tools that will promote a level playing field.

The problem with 'cross-platform' development is the age old one of whether any given endpoint precisely supports what you're doing. Java is quite popular, but Sun quickly backed away from it's main mantra of WORA because of implementation issues once you were beyond the mainstream OS platforms. It took them a few years to realize they couldn't actually control everything quite as precisely as they had envisioned to create that panacea. It's the same issues that dog HTML, CSS, XHTML, et al.

From the mid-90s to early 00s, C++ and VB were the dominant development camps for Windows. The rule was pretty straight-forward: for high performance or low-level/native code, you went C++. For most business desktop applications you went VB.

C# mixed things up because it blended C (the pre-1994 Windows language of choice), C++, Java-ish stuff, and the ease of use of VB. This won over a lot of programmers who avoided Windows because they thought they were too good to write stuff using VB. There is very little difference in terms of performance or capability between C# and VB (they generate virtually identical intermediate code): it's mostly personal style choices that separate the camps today.

C++ is less attractive for the majority of development these days because C# and VB are far easier to work with and better suited for desktop and web solutions. It's biggest attraction is if you want native (unmanaged) code executables.
--
There is no giant fur-bearing trout.

See 16 replies to this post
modemslayer

join:2003-12-11
Spokane, WA
·Comcast

C++ was my bread and butter for over 10 years. I used to say "you can have my pointers when you pry them from my cold, dead fingers", but I've sinced changed my philosophy.

The .NET platform is solid, and after 6-ish years of working with it daily, I'd never go back even if I could. I'd like to think I was an above average C++ programmer, but I spent many years hunting down memory/resource leaks in others' code with tools like BoundsChecker. The old saying of "C++ is a loaded gun pointed to your head by default" is a true saying.

Ahh the old days of BoundsChecker - You had suppression libaries to supress warnings of all the memory leaks in Windows, and all the memory leaks of the MS libraries, and third party tools, and so on, before you even got to the memory leaks in your own code. All of that goes away with .NET.

And now you can take a VB programmer, and once you teach him/her OOP, you'll get 99% of the power you had from C++ in a language that's easy enough for my kids to understand. Languages like C# and VB.NET are now true peers. We used to tease VB developers, but no longer.

Now I work on large systems with teams of programmers and get reliability I never dreamed of back in C++'s heyday. Systems where you don't need to reboot the server every week or have teams of people hunting down all the leaks. It's a fair trade for pointers in my book

See 20 replies to this post
dave
Premium,MVM
join:2000-05-04
not in ohio
·Verizon Online DSL
·Verizon FIOS

I had thought that the LINUX camp would still be evolving C++.
Languages don't have to keep getting fatter and fatter and fatter. At some point, the language is good enough.

I basically won't use a non-standard feature, so if there's any advance in the language I use, it has to come through the standards committee.

Here's the current in-dev version »www.artima.com/cppsource/cpp0x.html (I assume C++ 0x isn't actually here yet - anyone?)
Forums » Tech and Talk » OS and Software » Webmasters and Developers[help] Coding help »
« cellphones, or the art of small screen friendly sites  


Thursday, 10-Dec 02:37:55 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.republican-creole
page compression OFF
Most commented news this week
· [200] Sprint Sued For Distracted Driving Death
· [116] AT&T Launching New 24 Mbps U-Verse Tier
· [82] 3G Network Test Says AT&T Is Tops
· [72] Mediacom Unveils 105 Mbps Pricing
· [66] Sprint Poised For A Turnaround?
· [66] WPA Cracker: Test WPA-PSK Networks In 20 Minutes
· [66] AT&T Hints At Usage-Based iPhone Data Pricing
· [51] The Future Of Wi-Fi Is Bright
· [47] Site Leaks Yahoo, Verizon Fed Data Share Pricing
· [45] Microwaving Your Innards Is Not 'Extreme'
Most people now reading
· ICC strats [World of Warcraft]
· Cross Server Dungeon Experience [World of Warcraft]
· Windows 7 boot manager editing questions [Microsoft Help]
· The aftermath [World of Warcraft]
· 3.x Feral Druid - Bear Tanking Guide [World of Warcraft]
· ToC 4th boss - Preliminary Strategy for Twin Valkyr [World of Warcraft]
· Comcast refused to install 400' feet. [Comcast HSI]
· [How to] Install Asterisk on an Asus WL-520GU router [VOIP Tech Chat]
· ICC Strats??? [World of Warcraft]
· [ Classes] Druid tanking: rotation and glyphs [World of Warcraft]