Electronics > Beginners
Beginner Components?
<< < (17/19) > >>
Simon:

--- Quote from: JacobEdward on February 24, 2015, 11:43:37 pm ---

To be honest, I kinda think the only reason someone like me would ever swap is socially based instead of some technical limitation... we will see though and I'll keep you informed.

--- End quote ---

As Hero999 pointed out I started on basic and I hated C, but I found that I could not get help with basic because no one uses it (presumably for a good reason) and the software was limited. A lot of the problem was that there is not much standard in basic for micro controllers whereas everyone uses C and all MCU C is ANSI C based so no matter what software I use, microcontroler family or where I ask things are pretty much standard and anyone can help. Try searching the internet and see how much support there is for basic or java versus C........ I started out determined to stick with Basic because I "didn't get" C I prefered the simplicity of basic as it's easier to read but meh I had to make that "social choice" apparently it's a technical one as well.
lapm:
After reading this thread all i can say is consider something else then javascript. There are reasons why C is so popular, not least of it is its portable if properly written.

Yes, you can get microcontroller with javascript support. But that docent make it portable. Can you move that javascript engine between MCU´s in same family but different amounts of memory even? Lets say between Atmega 8 and Atmega328?

Also javasript is not codespace efficient. And thats its most likely biggest downfall when it comes to microcontrollers. it docent get compiled into assembly langage like C-does for example. So you waste precious code memory and clock cycles to run separate engine to decode that javascript.

yes it might be good for quick hacks, but when you run into issues of full codespace and you still need to add more code and execution speed... Yes, even i do quick hacks time to time just to test something quick...
JacobEdward:

--- Quote from: lapm on February 25, 2015, 09:27:36 am ---After reading this thread all i can say is consider something else then javascript. There are reasons why C is so popular, not least of it is its portable if properly written.

--- End quote ---

To be honest, I'm sorta done with discussing C vs Javascript... this thread wasn't about that, but it seems blatantly obvious that C is as popular as it is because of the echo chamber effect rather than some fundamental advantage to the code... otherwise I would have been given an example of something C can do that Javascript can't instead of just getting these constant assertions that C is better (you will get the same crap in reverse for Javascript oriented forums).


--- Quote from: lapm on February 25, 2015, 09:27:36 am ---Also javasript is not codespace efficient. And thats its most likely biggest downfall when it comes to microcontrollers. it docent get compiled into assembly langage like C-does for example. So you waste precious code memory and clock cycles to run separate engine to decode that javascript.

--- End quote ---

This "speed" problem has already been acknowledged and ... as it turns out, there are ways to compensate for this... anyways, good luck to you who insist on learning extra unnecessary languages, it's not worth it...
WattsUp:
About your ARM chip question, the only way to use that to generate a signal is to code something in C, as a MCU is inherently useless without code. Unfortunately not the solution you wanted. You could use that as a dedicated IC to generate a signal if you wanted to, though, via a comms protocol and with the necessary code.

  The reason most people here use C is that they are professionals or at least hobbyists. They know that they may have to use a different MCU for a specific requirements (like IO count or memory), and write code in a way that reflects this. Portability, efficiency and most importantly community support are vital for a dedicated EE, which is why C is used as a standard across platforms like PIC or AVR. I'm not going to tell you to switch, as you seem content to use JS, but just consider why everyone else uses C; listen to some of their points, and just think about what they are trying to tell you. No one is 'telling you off' for using JS, they are just providing valid reasoning for the use of C. One thing I will say is what if you want to control something that no one has done before in JS (which is likely because it is not widely use), so there is no high level command?
Ben
JacobEdward:

--- Quote from: WattsUp on February 25, 2015, 04:24:04 pm ---I'm not going to tell you to switch, as you seem content to use JS, but just consider why everyone else uses C

--- End quote ---

Everybody uses C because everybody else uses C... kinda straight forward but it's not a compelling reason for me to learn C
Navigation
Message Index
Next page
Previous page
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod