[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math


View post   

File: 45 KB, 510x420, python.jpg [View same] [iqdb] [saucenao] [google]
3558993 No.3558993 [Reply] [Original]

Hey. Which programming language should i learn first?
Pic related

also should i move on to C++ later

>> No.3559000

Scheme

>> No.3559002

Pascal
It's piss easy.

>> No.3559024

snake is not a programming language

>> No.3559027

>>3558993
I'd suggest C or C++ if you're serious about being a good / professional programmer. I think it gives you a good basic understand of computation, and then some syntantic sugar can come later.

Also learn a functional language, like Haskal.

>> No.3559040

>>3559027
What books do you recommend ?

>> No.3559072

>>3559024
what is Python?

>> No.3559084

C, assembly and Lisp.

>> No.3559090 [DELETED] 

REAL ME LEARN X86 ASSEMBLY FIRST

>> No.3559094

REAL MEN LEARN X86 ASSEMBLY FIRST

>> No.3559119

Assembler as first language is bullshit. It'll teach you how to hack on processor level and does not teach you good programming practice.
C++ is also an awful beginner language since it's quite complicated. You can always write standard C in C++, but that's not the point of the language - and with using templates comes worrying how to make them inherit typedefs. Not something a beginner should have to deal with.
C should be fine though, the problem here is that it won't teach you object orientation. I've learned programming with C, and It was quite a process to start thinking object-orientated when migrating to C++.

>> No.3559126

>>3559094
real men go out, now sit down here with the rest of us

>> No.3559145

So...is it ok if i start with python,then move to C/C++

>> No.3559149

>>3559119
>>3559119
Good programming practice: spending an average of nine extra seconds for each line of code, commenting and aligning stupid shit
Bad programming practice: Being efficient and programming what you wanted to program in the first place

>> No.3559150

>>3559145
If you know absolutely nothing, and I mean nothing about programming, start with Pascal. Otherwise, C, then C++.

>> No.3559155

>>3559150
absolutely nothing^^. Which books or material do you suggest for Pascal and C/C++

>> No.3559205

C++ all the way

>> No.3559215

>>3559155
>books
>not using interactive webpages

>> No.3559216

>>3558993
>>>/g/

>> No.3559218

>>3559155
This looks pretty solid:

http://www.freepascal.org/

But yeah, if you don't know anything AT ALL about programming and have never programmed ever, C or C++ is pointless. Assembly is doubly pointless, and the guy who recommended Lisp deserves a beating.

>> No.3559221

>>3559205
Get Dev-C++, or CodeBlocks (Programs that are easy to develop C++ in). Look up a tutorial on how to write "hello world". There are a few nice wikipedia articles / tutorials, I'd recommend starting there.

>> No.3559222

>>3558993
Back? Absolutely nothing? Well then, shit. Maybe BASIC? (And I don't mean visual BASIC.) Lols.

>> No.3559225
File: 92 KB, 704x481, 1289458989259.jpg [View same] [iqdb] [saucenao] [google]
3559225

Programming language? Sure, you should learn HTML, CSS, then move to the harder ones like PHP, MYSQL.

>> No.3559226

>>3558993
Just copy paste this code into Dev-C++, and you'll have your first program.

code:


#include <iostream>
using namespace std;

int main ()
{
cout << "Hello World!";
return 0;
}

>> No.3559235

>>3559225
XHTML is better

>> No.3559238
File: 49 KB, 729x696, t.png [View same] [iqdb] [saucenao] [google]
3559238

>2011
>C++
Stop trolling the poor guy.
We're not in the 90s anymore.

>> No.3559244

>Which programming language should i learn first?

Is a stupid question. Its like walking into a hardware store and asking which tool to learn first.

What are your goals, do you have program in mind or do you just want to learn a language for the cred? What OS are you on? Are you aiming at web development, low level hardware, embedded, gaming...?

Tell us more about what your aiming for and people will be able to give you a decent answer.

>> No.3559257

My school teaches some light matlab and JSP in the beginning just to experience for loops and such. Then they toss us into C++, which for some were quite a challenge. I loved it. After learning it pretty well I moved on to some other languages, and I didn't really have to "learn" anything. There were always simpler way to do stuff than in C++.

If you are like most people wanting to learn a programming language you don't want to spend several weeks just learning syntax and bull shit. If you go for Python you will be able to DO STUFF pretty fast which is a lot of fun and also motivates you to learn more. Move on to other languages when your needs change.

ps. I learned C++,C and some assembly in school, at work I am forced to code assembly. It's a fucking pain in the ass.

>> No.3559258

Jump into html5 it's so new it's not even finished being built. Be ahead of the curve run with the leaders. Html5 or gtfo.

>> No.3559264

>>3559235
HTML5 + CSS3 = God Tier.

>> No.3559270

>>3559244
More like "I want to be a carpenter, where do I start?" What's so difficult about that question?

I'd say, start with something easy. I don't give a shit whether he wants to make a chair or a house, he's going to need some basic skills to begin with, no matter what. I say start with a simple language like Python then specialize into whatever it is he wants to do.

>> No.3559293

>>3559270
As I'm likely the only professional paid code monkey in the thread, I will say again, you ought to get a proper understanding of the fundamentals if you want to be a strong programmer, and that means learning C, C++, or some other simple algol-like language. Not a functional language. Not Java or some other garbage collected language. Those come later after you understand how they work.

>> No.3559299

The reason trying to use C++ as a very first programming language is because the first things to learn about programming should be the notion of encoding your ideas as instructions in a language, and the logic of looking at a series of instructions and visualizing what they'll do. Basic mental techniques and mindsets. C++ exposes you to specific aspects of computer technology, like pointers, variable types, return types...

>> No.3559311

I want to be a carpenter, where do I start?" start ny wanting to become the best carpenter the world has ever seen. Then finish ontop of the world.

>> No.3559332

Java is a reasonable first language. It's basically C++ with all of the sharp corners rounded off.

Personally, I wouldn't recommend Python as a first language. You're better off starting with a statically-typed language, as it forces you to think about the design.

C++ is "hard mode" programming. It's designed for real software, so performance, flexibility and control all take precedence over ease-of-use. You don't need to learn it unless you're serious about programming.

If you're going into programming for the long haul, you should learn at least one "real" functional language (e.g. ML or Haskell; Lisp/Scheme don't count). At some point, you should learn assembler; even though you'll probably never write code in assembler, it's useful to understand what is actually happening under the hood. If you use C/C++, you might occasionally need to read assembly.

>> No.3559346

>>3559293
I agree. But in this case it's some average chump wanting to try programming. I am pretty sure that if he wanted to make a career out of it, he wouldn't come to -this- place for help.

He won't be going very far if he's stuck on the most basic stuff in C++. It's just not motivating. And lets face it, learning to program is boring as shit if you don't see results pretty fast.

Ease into that shit..

>> No.3559347

>>3558993
OP here. No i wont be into serious programming. And I am not studying CS or anything like that.
I will do it as hobby,i wanna code some basic stuff.

>> No.3559349

>>3559347

For 2D games, Game Maker. It has a neat scripting language.

For other (ie far easier) basic shit, Python and Visual Basic.

>> No.3559351

>>3559346
exactly. I am just bored.C++ is pretty complicated,has a lot of syntax and shit i am not into serious programming. I might move on to that if i wanna code seriously.
But i just want to learn an easy and practical language.

>> No.3559356

>>3559349
Okay thank you. So ill go with python and matlab(already know some).
Then move to C/C++ later.

>> No.3559357

if you don't know anything, then start with powershell scripting. it's amazingly robust for working with your os. that's how i started.

>> No.3559375

>>3559356

If you're into web stuff learn PHP. It's basically code inserted into a webpage that can deal with variables and print stuff out and do maths and whatnot.

>> No.3559379

>>3559375
Thanks ^^

>> No.3559435

>>3559225

your are a munkey, You know, right? some of those aren't even complied but interpreted. Perl and Forth are more better than MySQL

>> No.3559437

Delphi is a good starter, as it has clean syntax and easy to understand. Then you can move on to C++ as it's more powerful

>> No.3559453
File: 27 KB, 369x305, dog.jpg [View same] [iqdb] [saucenao] [google]
3559453

>>3559435
>2011
>Not attaching ZOMGitZ and FactsVsReligion pic along with EK
>doesn't know the best language is Visual Basic, which can be used to create GUI interface to track IPs
I seriously hope you fifth apes don't do this.

pic related: it's a orangutan.

>> No.3559467

>>3559244
i want to make a userscript.

perhaps for 4chan.

so i need to learn javascript.

>> No.3559499

1) that is a Siamang, munkey boy
2) what about that Object Oriented Cobol
3) I'm behind 5 proxies

>> No.3559747
File: 27 KB, 300x267, cats.jpg [View same] [iqdb] [saucenao] [google]
3559747

>>3559499
>2011
>cannot quote
>thinks that I know what Object Oriented Cobol means when I'm a munkey
>not behind 7 Scandinavian girls
I seriously hope you Rose alter-ego don't do this.

pic related, three REAL siamang

>> No.3559937

What is a good programming language that could use for finance related projects?

>> No.3559947
File: 8 KB, 298x298, cat2.gif [View same] [iqdb] [saucenao] [google]
3559947

>>3559937
Haskell

>> No.3559953

>>3559027
Beeing a good programmer has nothing todo about what language you speek, you need to understand how the system works. learning a language is 10 weeks work.

>> No.3560456

>>3559937
Python should work for that. Pointers and all that stuff wouldn't be something you need to worry about with economics.

>> No.3561359

>C#
>Microsoft Visual Studio 2010 Ultimate