Technical Discussion
  >> Web Design / HTML / Web hosting Forum


Register (or login) on our website and you will not see this ad.


These posts have been archived and can no longer be replied to or modified.
Pages in this thread: 1 | [2] | 3 | 4 | (show all)   Print Thread
Standard User wrtpeeps
(eat-sleep-adslguide) Thu 10-Dec-09 00:33:24
Print Post

Re: C++ coding


[re: deleted] [link to this post]
 
In reply to a post by 12eason:
In reply to a post by lt567:
In regards to the progress this is the 9th week of C++ so I would class myself as a beginner currently.
they are teaching you c++ as a first language? that sucks. good luck.


I'd agree with this regarding the suck bit.

Signature.
Standard User Kenneth
(legend) Thu 10-Dec-09 08:20:49
Print Post

Re: C++ coding


[re: deleted] [link to this post]
 
seems a good choice of first language - you learn everything about pointers etc., then you can really appreciate languages like Java/C# and what you don't have to do wink

it could be worse though - they could be teaching C++ on MFC

Ken

When arguing with a fool, pause and ponder - are they also arguing with a fool
Standard User Kenneth
(legend) Thu 10-Dec-09 08:23:04
Print Post

Re: C++ coding


[re: deleted] [link to this post]
 
In reply to a post by AnotherExPipex:
Ideally, as it's a C++ course, you'll use classes and inheritance for your solution

Only when it makes the code easier to understand!

Ken

When arguing with a fool, pause and ponder - are they also arguing with a fool


Register (or login) on our website and you will not see this ad.

Standard User deleted
(deleted) Thu 10-Dec-09 08:50:56
Print Post

Re: C++ coding


[re: Kenneth] [link to this post]
 
I think there's a little more to OO than making the code easy to understand (some might argue that it does the opposite). Ease of maintenance and the ease with which new features can be added (plus protection of data) are more important IMO.
Standard User deleted
(deleted) Thu 10-Dec-09 08:55:23
Print Post

Re: C++ coding


[re: deleted] [link to this post]
 
I'd say C++ is a very fine language to learn programming, particularly when well taught. It can be as simple or as complicated as you like, and it has very good OO features. I'm struggling to think of a better one - possibly Pascal for really basic stuff, but it's not very useful in the modern day and there's no real standard for OO in Pascal.

Actually I'd probably choose Smalltalk, but I suspect many would disagree with me. Objective C and Eiffel are also good, but very non-mainstream.
Standard User Kenneth
(legend) Thu 10-Dec-09 09:02:33
Print Post

Re: C++ coding


[re: deleted] [link to this post]
 
In reply to a post by AnotherExPipex:
I think there's a little more to OO than making the code easy to understand (some might argue that it does the opposite). Ease of maintenance and the ease with which new features can be added (plus protection of data) are more important IMO.


And those of us who maintain code would argue - over using/badly designed OO makes the code slower, less reliable, more obtuse and hard to maintain

properly applied OO - does the resverse, so I would argue if OO makes your code harder to understand (once you understand OO) you are doing it wrong!

Ken

When arguing with a fool, pause and ponder - are they also arguing with a fool
Standard User deleted
(deleted) Thu 10-Dec-09 09:14:41
Print Post

Re: C++ coding


[re: Kenneth] [link to this post]
 
over using/badly designed OO makes the code slower, less reliable, more obtuse and hard to maintain
I'd say that's true of any programming language. The Obfuscated C contest comes to mind.
Standard User Kenneth
(legend) Thu 10-Dec-09 09:28:45
Print Post

Re: C++ coding


[re: deleted] [link to this post]
 
it does - but there seems to be something about inheritance (or any new technique they discover) that coders seem to think they must use it as much as possible whether it helps or not crazy

in the problem mentioned - a couple of functions could solve it quite elegantly, now I'd wrap those up into an object as they would be part of a bigger problem

Ken

When arguing with a fool, pause and ponder - are they also arguing with a fool
Standard User Kenneth
(legend) Thu 10-Dec-09 09:34:30
Print Post

Re: C++ coding


[re: deleted] [link to this post]
 
I'd say some thing like Java or C# would be best learning languages now - but lack of teaching pointers and memory issues may be a downside

Outside education - the only major OO Pascal choice is Delphi and when only one choice no need of standards - but that has unfortunately become rather dead in the water frown

Ken

When arguing with a fool, pause and ponder - are they also arguing with a fool
Standard User wrtpeeps
(eat-sleep-adslguide) Thu 10-Dec-09 10:14:26
Print Post

Re: C++ coding


[re: Kenneth] [link to this post]
 
C# has pointers. You're discouraged from using them and they're classified as "unsafe" I believe, but they're there none the less.

Signature.
Pages in this thread: 1 | [2] | 3 | 4 | (show all)   Print Thread

Jump to