So you're saying C++ can lay a good foundation for learning other languages right? the difficulty isn't my main concern cause naturally in this sort of things the 1st step is always the hardest
......?????
Poll: Should I learn Java or C++ first? You do not have permission to vote in this poll. |
|||
Java | 1 | 7.69% | |
C++ | 12 | 92.31% | |
Total | 13 vote(s) | 100% |
* You voted for this item. | [Show Results] |
Should I learn java or C++ first?
|
12-13-2011, 05:30 AM
So you're saying C++ can lay a good foundation for learning other languages right? the difficulty isn't my main concern cause naturally in this sort of things the 1st step is always the hardest
......?????
12-13-2011, 06:16 AM
(12-13-2011, 05:12 AM)Runo Wrote:(12-06-2011, 01:50 PM)NaturalViolence Wrote: C++ can be pretty fun to use once you get past the first few months of wanting to throw your computer out the nearest window every time something goes wrong. Android just added support for C++, so you can write in that for Android and iOS.
Main Laptop:
Dell XPS 17 i7 2720QM @ 2.2GHz 8GB DDR3 RAM Nvidia GeForce GT 555M Windows 7 64-bit (12-13-2011, 06:16 AM)HawaiianPunch Wrote: Android just added support for C++, so you can write in that for Android and iOS. ¬¬ God, how could I have not seen that anywhere? I just found out that I've wasted the last month of my life but that's ok, this information makes up for that, I guess ^^ Now, back to C++...
OS: Windows 10 Pro 64bit Creators Update
CPU: AMD Phenom II X4 960 @ 3.6 GHz Graphics Card: Nvidia GeForce GTX 960 2GB GDDR5 Motherboard: Gigabyte GA-870A-USB3 AM3+ Revision RAM: HyperX 8GB Dual Channel @ 1600Mhz
Java or C++ as first language?
I would say neither. I think you should try learning an easier language at first rather than going directly into Java or C++. Depending on your skills I could suggest you what you should take: If you are a very good mathematician I would suggest you to start with functional programming languages like Scheme or Haskell: Haskell Wikibook or Haskell Book. Normaly the MIT teaches Scheme as the first language for an student in a CS course. However, if you aren't very good with maths, then it's better to start with imperative languages (like C++ or Java) in these case I would suggest to you Ruby: Ruby Tutorial. Ruby is an easy to understand, easy to use, multipurpose language. I think it's better to learn Ruby first since it does emphasis on basic algorithm structures and leaves aside more machine like stuffs such as types, memory space and performance. After learning ruby, you could learn Java. Also ruby is quite useful for making web applications (most likely twitter was made with Ruby On Rails) 12-13-2011, 08:40 AM
This is a bit unrelated, but I have a quick C++ question. I'm writing a program to calculate a sine value and I copied the printf line below from a website. However, I want to use cout, so I converted it. The conversion works fine, but I was wondering if there's a more effecient way to convert it because the cout implementation uses quite a few more lines.
Main Laptop:
Dell XPS 17 i7 2720QM @ 2.2GHz 8GB DDR3 RAM Nvidia GeForce GT 555M Windows 7 64-bit 12-13-2011, 10:04 AM
(12-13-2011, 08:40 AM)HawaiianPunch Wrote: This is a bit unrelated, but I have a quick C++ question. I'm writing a program to calculate a sine value and I copied the printf line below from a website. However, I want to use cout, so I converted it. The conversion works fine, but I was wondering if there's a more effecient way to convert it because the cout implementation uses quite a few more lines. Code: cout << "the sine of " << param (12-13-2011, 08:27 AM)BlinkHawk Wrote: Java or C++ as first language? These languages you suggested aren't really useful... If he want to learn alone it must be something that gets you doing stuff fast, otherwise he'll end up bored... That's why people who learn for themselves normally start with a powerful language, academic methods sucks. A lot of people don't like eletronics because in school the little shit we learn is totally theoric and full of unecessary details. Details I observed for myself when I saw my first circuit functioning, which was much more fun than reading on a book. Of course a programming language will be a lot of theory, but I wouldn't base myself on any school/college methods to teach myself anything, these are old and out of date, and it was meant to teach a lot of people at once.
OS: Windows 10 Pro 64bit Creators Update
CPU: AMD Phenom II X4 960 @ 3.6 GHz Graphics Card: Nvidia GeForce GTX 960 2GB GDDR5 Motherboard: Gigabyte GA-870A-USB3 AM3+ Revision RAM: HyperX 8GB Dual Channel @ 1600Mhz 12-13-2011, 12:06 PM
(12-13-2011, 10:45 AM)Runo Wrote: These languages you suggested aren't really useful... If he want to learn alone it must be something that gets you doing stuff fast, otherwise he'll end up bored... That's why people who learn for themselves normally start with a powerful language, academic methods sucks. A lot of people don't like eletronics because in school the little shit we learn is totally theoric and full of unecessary details. Details I observed for myself when I saw my first circuit functioning, which was much more fun than reading on a book. Of course a programming language will be a lot of theory, but I wouldn't base myself on any school/college methods to teach myself anything, these are old and out of date, and it was meant to teach a lot of people at once.Excuse me man, these languages may not be the most common, but they are definetly USEFUL. (You are also wrong by calling them OLD when they are even younger than Java) For instance, Ruby with the framework Ruby on Rails which extends the language for web applications. You wouldn't imagine how fast things are built with it. I was able to program a complete internet forum in less than 300 lines of code within Ruby on Rails, I not even had to make the database and it's mapping because the framework did it in it's own. All i did was transform the UML diagrams into classes, fill them up and set the configuration and controllers and the rest was automatic. Haskell in the other hand is a purely functional programming language made up for developers. It's quite useful for making simple applications in very little time. In haskell things that would take like 50 lines of code in Java, they can take up to 5 lines of code or less. Let's take for example quicksort: Code: quicksort [] = []
saving code lines...
whats that? an argument? refactoring... gl hf sorting algo as examples... iam feeling like in the first term oh man did you see that... i sorted my stack of cards with bubblesort never used again
EDIT by neobrain: that pic was kinda annoying..
EDIT by dannzen: don't fuck with my sig EDIT by neobrain: yet, I will keep doing it EDIT by ???? : A WILD DACO APPEARS EDIT by [SS]: Hey guys, what's going on here? EDIT by dannzen: Gotta Catch 'em All! EDIT by ???? : WILD DACO BROKE FREE FROM MASTER BALL 12-13-2011, 12:26 PM
(12-13-2011, 12:15 PM)dannzen Wrote: saving code lines... that means a project which would take you 1000 lines in an imperative language, you could do it in 100 in Haskell, SAVING a good amount of TIME. In Software Engineering time is a high priority. I just gave a common example, I could bring up something more useful like a file compressor or something alike. |
« Next Oldest | Next Newest »
|