|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming | |
What Programming Language Should I Learn?
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#11 (permalink) | |||||||||||||
|
Kernel Sanders
|
Nah - I can't stand web stuff
|
|||||||||||||
|
|
|
|
#12 (permalink) | ||||||||||||||
|
Folding Fanatic
|
what about python? (I know little about programming myself)
__________________
Quote:
|
||||||||||||||
|
|
|
|
#13 (permalink) | |||||||||||||
|
Intel Overclocker
|
LOGO? LOL!
how about Assembly language? push, pop and all that! I remember (vaguely) Motorolla 680x0 Assembly from my younger days(89-94) As for `Coolness` I supose its how geek/nerd ya want to go, check out www.scene.org and look at the results and releases at the various partys held round the globe!
__________________
The Black Mesa Survivors Club
|
|||||||||||||
|
|
|
|
|
#14 (permalink) | ||||||||||||
|
New to Overclock.net
|
Check the wiki on functional languages. A LOT of good resource links. I'd start with a little bit of Scheme and then go on to something like Erlang once you get the hang of functional programming. I'd also pick up a book on programming languages, or check out some of the MIT Open Course Ware courses like this one
__________________
|
||||||||||||
|
|
|
|
|
#15 (permalink) | |||||||||||||
|
Off By 340 Undecillion
|
OK sorry about the delay- needed to sleep and such
.So in scheme for every command this is the basic layout: (function argument argument argument ....) so say we had an averaging function and we wanted to average 3, 6, 4, and 1 it would look like: (avg 3 6 4 1) This format applies to everything, even adding, To add 4, 5, and 21: (+ 4 5 21) It may seem weird at first, but you quickly find that the format is really nice. Now on to making functions, technically it is done with the lambda command to make the function and define to give it a name, but we can do it all in define if we want. To average two numbers with a and b as variable names: Code:
(define (average a b)
(/ (+ a b) 2))
Code:
(define (average a . b)
(/ (sum a b) (+ 1 (length b))))
; indicates a comment. The above is pretty easy right, an average is the sum of all
;your inputs, divided by the number of inputs you have. Unfortunately Scheme doesn't
;have sum or length as primitives- so lets make them!
;below null? checks for the end-of-list marker, car gets the data from our list element,
;and cdr moves down the list (car and cdr have a broader function than that, but for
;now that's all you need to know)
(define (sum a b)
(if (null? b)
a
(sum (+ a (car b)) (cdr b))))
;You'll note that the above was done by recursion- Scheme has no for or while loops, all
;looping is done by recursion. Might seem weird, but things like this that simplify the
;language I think are what makes it quite nice and intuitive.
(define (length b)
(if (null? b)
0
(+ 1 (length (cdr b)))))
;in case you are worried about performance issues, Scheme apparently has some nifty
;tricks to optimize recursion, and the programmer can do some things as well to help. In
;sum you'll notice that the recursion behaves like an iterative process, that is it calls sum
;over and over and only changes its arguments. In length, the method is a little less efficient,
;the number of waiting additions to be performed grows linearly with the length of b.
__________________
Congratulations! You have found the secret text! You get a cookie.
Last edited by The Bartender Paradox : 07-02-08 at 01:25 PM. |
|||||||||||||
|
|
|
|
#16 (permalink) | |||||||||||||
|
New to Overclock.net
|
Python is a fun language, but you seem to be steering away from OOP with the language you want to learn. If you want to learn another OOP, Python is great.
__________________
12136 -3DMark06 http://service.futuremark.com/orb/re...0&UID=13752166 ![]() Crucial Ballistix Club ![]() And you know what? Macs are too hip. Oh, look at me! I do graphic design! I wear women's jeans and hang out in coffee shops! I'm a DJ! Well good for you. My computer is not a fashion statement. It's a computer.
|
|||||||||||||
|
|
|
|
|
#17 (permalink) | ||||||||||||
|
PC Gamer
|
Japanese!
I'd go with PHP it seems useful these days.
|
||||||||||||
|
|
|
|
|
#18 (permalink) | ||||||||||||||
|
Kernel Sanders
|
Quote:
. I'll probably go for something like that
|
||||||||||||||
|
|
|
|
#19 (permalink) | |||||||||||||
|
Turing Test is Overrated
Join Date: Nov 2006
Location: In a Chair.
Posts: 21,920
Rep: 2517
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Unique Rep: 1178
Trader Rating: 33
|
Cobol!
__________________
To answer most of your questions: (1) a fridge cannot cool a PC (2) 64-bit OS for over 3GB or so (3) PCIe 2.0 is backwards compatible with PCIe 1.x (4) Resolution, not screen size (5) If you have a question, it is not news (6) Read TOS (7) Report, not respond to Spam (8) Uninstall nTune (9) Single/Non-Modular Rail PSUs are NOT better than Multi-Rail/Modular (10) Edward is the Law!
|
|||||||||||||
|
|
|
|
#20 (permalink) | |||||||||||||
|
Security Sleuth
|
I'm in agreement - that does look simple and intuitive. Will have to look into that.
__________________
Crucial Ballistix Club ![]() Does Not Compute. Error 666. Please reboot Universe.exe and try again.
Katie Couric, while interviewing a Marine sniper, asked: "What do you feel when you shoot a Terrorist?". The Marine shrugged and said: "A slight recoil."
|
|||||||||||||
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|