• Welcome to Valhalla Legends Archive.
 

Best language to start with for noobs?

Started by omnispyder, October 01, 2007, 12:19 PM

Previous topic - Next topic

rabbit

I highly recommend Brainfuck as a first language.
Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.

Yegg

Quote from: Joex86] link=topic=17074.msg173490#msg173490 date=1191396098]
Quote from: Yegg on October 01, 2007, 03:01 PM
Quote from: brew on October 01, 2007, 02:13 PM
C is the best language to start.
The computers that are in cars, do you mean the OBDII diagnostic system? IIRC it handles the valve timing as well. I would imagine it's made in C or C++, just that it uses a specialized compiler (which most likely prints the instructions to a chip, or stores them for execution in a non-volitle EEPROM chip).

No.
C is not the best language. You also didn't explain why C would be the best. There is no "best" language to start with, not every person learns in the exact same way as the other.
The "computers" used in cars could be made in any language. There is no reason to assume C/++.

I'm going to assume system level assembly (obviously, for the microprocessor used) for one obvious reason: Who would write a compiler for the car, when it's probably easier to write the code in assembly? The compiler itself would have to be written in machine code, or assembly, and the program is probably easier to write then a compiler.

For a beginning language, I would recommend C#. It's a very clean syntax so it's not (as) easy to get lost in your code, and there are several tutorials out there written by Microsoft. I'd also recommend taking a look at very (I can't stress very enough) basic assembly, to understand how everything is brought together down on the very bottom. There are a few good tutorials out there for assembly as well -- Google for "ASM hello world", and that's probably all you'll need for what you'll want to do. Also, start out with "C# hello world" and once you've understood that, come back. We've got quite a few C# "Merlins" here.

The compiler wouldn't have to be written in assembly. The writing of the code would be done in a regular computer and the end result would be transfered to the machine in the vehicle. They could use whatever compiler they choose (perhaps even one they've written which can be written in any language). Depending on how much coding needs to be put into the car, making a compiler instead of writing the assembly yourself may be a lot easier. It would also keep them from having to do extra work next time -- saves money.

Camel

I took an assembler class in college; it was a CS/ECE class. We started with logic gates, and worked up to assembly. One of the homework assignments was to write an LC1 emulator in LC3.

Dale

Quote from: rabbit on October 03, 2007, 07:22 AM
I highly recommend Brainfuck as a first language.

I just thought I'd point out that I have never, ever, yes ever. See ONE post of yours that contributes nor is helpful and good in any way, shape, or form.

Banana fanna fo fanna

The answer to this thread is, C or Java. End of discussion.

rabbit

Quote from: Dale on October 03, 2007, 06:48 PM
Quote from: rabbit on October 03, 2007, 07:22 AM
I highly recommend Brainfuck as a first language.

I just thought I'd point out that I have never, ever, yes ever. See ONE post of yours that contributes nor is helpful and good in any way, shape, or form.
And who the fuck are you?
Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.

UserLoser

#21
Quote from: brew on October 01, 2007, 03:30 PM
Oh please, name one car you know that uses flash memory instead of EEPROM. (I mean, not your brand-new luxury model with an navigation system etc. He seems to be interested in tuner cars) I believe this area is UL's expertise, maybe he knows?

I do not know exactly, but I believe the ECU (engine control unit, "computer") in my car uses flash memory.  There is software out there called KManager that you use to tune the ECU calibration and upload via a USB connection into a daughterboard (KPro) soldered into the ECU.

Dunno how the ECU actually works, I don't know hardware stuff and I couldn't begin to tell you how a motherboard works on a computer.  I suspect the ECUs in cars are programmed the same way your cellphone knows what to do when it is turned on...both use a green board or whatever you call it :P

I do know my ECU is capable of creating datalogs up to 2MB in size and saving them into the memory of the ECU and I can plug in a laptop and download and review them *shrug*

Dale

Quote from: rabbit on October 03, 2007, 08:06 PM
Quote from: Dale on October 03, 2007, 06:48 PM
Quote from: rabbit on October 03, 2007, 07:22 AM
I highly recommend Brainfuck as a first language.

I just thought I'd point out that I have never, ever, yes ever. See ONE post of yours that contributes nor is helpful and good in any way, shape, or form.
And who the fuck are you?

And what kind of answer are you expecting? Some wise crack? So you can just post more useless nonsense?

Mystical


rabbit

Quote from: Dale on October 03, 2007, 09:47 PM
And what kind of answer are you expecting? Some wise crack? So you can just post more useless nonsense?
I was expecting you to try to explain what gives you any kind of right to say you've never seen me post anything useful.  How long have you been here?  Also, if you didn't get that my post was a joke, you're an idiot.

ANYWAY, I started with Q BASIC and went from there.  I moved on to HTML/PHP, then to C, and then (why?) to VB6.  I've tried C++ and Java, but I don't like them.  Start with something simple but also not VB, and you'll be fine.
Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.

Dale

#25
Quote from: rabbit on October 04, 2007, 06:48 AM
Quote from: Dale on October 03, 2007, 09:47 PM
And what kind of answer are you expecting? Some wise crack? So you can just post more useless nonsense?
I was expecting you to try to explain what gives you any kind of right to say you've never seen me post anything useful.  How long have you been here?  Also, if you didn't get that my post was a joke, you're an idiot.

ANYWAY, I started with Q BASIC and went from there.  I moved on to HTML/PHP, then to C, and then (why?) to VB6.  I've tried C++ and Java, but I don't like them.  Start with something simple but also not VB, and you'll be fine.

Does being on an internet forum longer bring more privilege and respect to one? My point I'm pointing out is that, even if it was a joke, that's all you ever do, you never contribute to a reasonable expectation.

omnispyder

Its all good dale, just ignore those posts :).  Userloser what kind of car do you have? I was thinking of getting a greddy ultimate e management, but Id eventually like to make my own ecu for the car, but I know I'll have to goto school for that stuff.  Thanks for everyones responses I appreciate your time and response.

Yegg

Quote from: omnispyder on October 04, 2007, 06:26 PM
Its all good dale, just ignore those posts :).  Userloser what kind of car do you have? I was thinking of getting a greddy ultimate e management, but Id eventually like to make my own ecu for the car, but I know I'll have to goto school for that stuff.  Thanks for everyones responses I appreciate your time and response.

You don't have to go to school for that.

Banana fanna fo fanna

Quote from: Yegg on October 04, 2007, 06:54 PM
Quote from: omnispyder on October 04, 2007, 06:26 PM
Its all good dale, just ignore those posts :).  Userloser what kind of car do you have? I was thinking of getting a greddy ultimate e management, but Id eventually like to make my own ecu for the car, but I know I'll have to goto school for that stuff.  Thanks for everyones responses I appreciate your time and response.

You don't have to go to school for that.

If you can learn EE from a For Dummies book I'll give you my firstborn son.

Yegg

Quote from: Banana fanna fo fanna on October 04, 2007, 07:35 PM
Quote from: Yegg on October 04, 2007, 06:54 PM
Quote from: omnispyder on October 04, 2007, 06:26 PM
Its all good dale, just ignore those posts :).  Userloser what kind of car do you have? I was thinking of getting a greddy ultimate e management, but Id eventually like to make my own ecu for the car, but I know I'll have to goto school for that stuff.  Thanks for everyones responses I appreciate your time and response.

You don't have to go to school for that.

If you can learn EE from a For Dummies book I'll give you my firstborn son.

The first person who does something did that something without schooling for that something.

|