Electronics > Beginners

what is the most relevant programming language for ee?

<< < (16/21) > >>

rjp:

--- Quote from: Nusa on November 06, 2018, 03:04:17 am ---
--- Quote from: rjp on November 06, 2018, 02:38:27 am ---Its a shame that nobody with serious clout has done a c+ yet - which is the useful subset of c++ that every damn modern language has run with - python,c#,java. dart etc.
 
Bascially c structs with single inheritance that makes building core framework plugins like "Stream" easier without pointer casting.

Namespacing to avoid foo_bah_wah clumsyness in libraries.

then a more modern std library.

--- End quote ---

What's the point? It's already there in C++, just as C remains a subset of C++. You just don't use the features you don't want to use.

People cloak it in C vs C++ labels, but the real "religious" argument is usually about procedural vs object oriented approaches. Both approaches have value, although the extremists in either camp may choose to argue that. Anyone who has to understand and maintain existing code better be willing to understand both.

--- End quote ---

the other religious argument in micro programming is prebuilt frameworks and shared code versus  doing everything from scratch in isolation from first principles, this overlaps quite a bit with the c/c++ argument.

bsfeechannel:

--- Quote from: Crazy_Pete on November 06, 2018, 02:37:53 am ---As these C programmers are demonstrating, once you learn C, you will have a terrible time learning C++.   However if you learn C++ first you will have no trouble at all reading other people's C code.    C is to C++ what religion is to science.    If you learn science first you will have no trouble understanding religion.  If you learn religion first your thinking will alway tend towards circular reasoning and "I belong to a community that thinks this way and we can't all be wrong" sort of  thinking that you see people using to justify C.

--- End quote ---

Holy crap, Batman! Bjarne really managed to brainwash an entire generation.

C in large part supplanted Assembly, but that was unintentional. Dennis Ritchie never expected the success the language had.

Bjarne worked, and still works, hard to supplant C, but that didn't happen. The largest cooperative project of the history of humankind, Linux, and unofficially the OS upon which the world spins,  is written in C.

Butthurt, Bjarne makes videos on the internet calling C obsolete, then complains about the animosities between C and C++ developers. Dennis Ritchie never said that of Assembly.

One of the mistakes of C++ was exactly to have chosen that name. It is like God calling his son Satan++ instead of Jesus.

Every time you say C++ you give C free publicity.

Crazy_Pete:
>Every time you say C++ you give C free publicity.   

Please don't feed the trolls :-)

love
Crazy Pete

Crazy_Pete:
Hi Hatokay!

Something i will say i regret Hatokay, is not learning functional programming.    You can see by the trolling responses that nobody has come up with an intelligent answer as to why you should learn C instead of C++.

When i was your age ;-)  The head of CSCI was a blearly eyed insomniac schizoid who used to wander the halls half asleep red eyed with a smile on his face.  (He was the ultimate programmer.)   Whereas all the other teachers were praising me for learning C++, he was berating me and telling me that functional languages are the way to go.

If there is anything i regret it is not listening to him.   That fellow who posted about 10 lines of Dylan replacing pages and pages of C++ is right.  Just as Object Oriented Programs tend  to blow Procedural Programs out of the water, Functional Programs (LISP and children) tend to blow OOP out of the water.   Learn C++/Asm for the low level stuff.   Since you are just starting out, i would really bother to immerse yourself in something like Dylan (or other functional language).   After 30 years of programming i can say a well written 1000 line C program collapses into a 100 line well written C++ program.   A 100 line well written C++ program collapses into a 10 line Dylan program.

I am not a Dylan Bigot, etc.   I am telling you i WISH i had taken that guys advice 30 years ago and learnt functional programming as well as OOP.   Exposing your mind to as many different views as possible is essential to your intellectual development later in life.

Best Wishes,

Crazy Pete

Crazy_Pete:
>well the thing is that all those features that you shouldnt use, do get used, and c++ can be a nightmare when multiple inheritance and templates are used to their fullest insanity.

I didn't say I shouldn't use them, i said you shouldn't use them if you don't like them.  The fact that you find it distasteful to maintain code that you never learnt to write in the first place is not an argument for not learning in the first place.

THIS is exactly why you should learn C++ and not learn C.  If you learn C you will find it impossible to learn C++ and waste time complaining about those who can.  If you learn C++ first you will not only have a more agile and open mind, but you will also be a better C programmer.

And again, if yer just starting out, fer chrissakes PLEASE PLEASE learn from MY mistakes and learn Dylan!!!!!

Love
Crazy Pete

Navigation

[0] Message Index

[#] Next page

[*] Previous page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod