• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 11:18
CET 17:18
KST 01:18
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
HomeStory Cup 28 - Info & Preview12Rongyi Cup S3 - Preview & Info3herO wins SC2 All-Star Invitational14SC2 All-Star Invitational: Tournament Preview5RSL Revival - 2025 Season Finals Preview8
Community News
Weekly Cups (Jan 26-Feb 1): herO, Clem, ByuN, Classic win2RSL Season 4 announced for March-April7Weekly Cups (Jan 19-25): Bunny, Trigger, MaxPax win3Weekly Cups (Jan 12-18): herO, MaxPax, Solar win0BSL Season 2025 - Full Overview and Conclusion8
StarCraft 2
General
StarCraft 2 Not at the Esports World Cup 2026 Weekly Cups (Jan 26-Feb 1): herO, Clem, ByuN, Classic win HomeStory Cup 28 - Info & Preview Weekly Cups (Jan 19-25): Bunny, Trigger, MaxPax win Oliveira Would Have Returned If EWC Continued
Tourneys
RSL Season 4 announced for March-April PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar) HomeStory Cup 28 StarCraft Evolution League (SC Evo Biweekly) $21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)
Strategy
Custom Maps
[A] Starcraft Sound Mod
External Content
Mutation # 511 Temple of Rebirth The PondCast: SC2 News & Results Mutation # 510 Safety Violation Mutation # 509 Doomsday Report
Brood War
General
[ASL21] Potential Map Candidates BW General Discussion Can someone share very abbreviated BW cliffnotes? Liquipedia.net NEEDS editors for Brood War BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[Megathread] Daily Proleagues Azhi's Colosseum - Season 2 Small VOD Thread 2.0 [BSL21] Non-Korean Championship - Starts Jan 10
Strategy
Zealot bombing is no longer popular? Simple Questions, Simple Answers Current Meta Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Nintendo Switch Thread Battle Aces/David Kim RTS Megathread Path of Exile Mobile Legends: Bang Bang Beyond All Reason
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Join illminati in Luanda Angola+27 60 696 7068
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine European Politico-economics QA Mega-thread The Games Industry And ATVI Canadian Politics Mega-thread
Fan Clubs
The herO Fan Club! The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Play, Watch, Drink: Esports …
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1562 users

The Big Programming Thread - Page 5

Forum Index > General Forum
Post a Reply
Prev 1 2 3 4 5 6 7 1030 1031 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
Epsilon8
Profile Blog Joined May 2010
Canada173 Posts
July 09 2010 19:40 GMT
#81
Sorry, but I'm a little confused. I've been programming for a bit and was wondering what is the difference between functional programming and 'regular programming'?
If you wish to travel far and fast, travel light. Take off all your envies, jealousies, unforgiveness, selfishness, and fears.
Sunhay
Profile Blog Joined February 2009
Canada303 Posts
July 09 2010 19:55 GMT
#82
On July 10 2010 03:40 Adeny wrote:
I'm having a bit of trouble finding collections of tasks/challenges, like projecteuler, but maybe not as difficult? I've only done about 25 of the PE tasks, and so far they have been pretty challenging.


Try doing Top Coder problems. If they are too hard, just do the higher level high school questions. Also, DWITE might provide some challenging questions.
www.sunhay.net
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
Last Edited: 2010-07-09 20:01:40
July 09 2010 20:00 GMT
#83
On July 10 2010 04:40 Epsilon8 wrote:
Sorry, but I'm a little confused. I've been programming for a bit and was wondering what is the difference between functional programming and 'regular programming'?

Functional Programming is mostly about recursion (calling a function from within itself) and passing functions as arguments (maybe someone with better knowledge of those can be more precise).
Imperative Programming uses loops instead of recursion.
Object Oriented Programming is usually imperative as far as I know. OOP focuses on Objects and the functions that are related to that object, while imperative non-OOP focuses more on the functions.
I think there also is Logic Programming (never used that at all). Maybe there are some more types that I haven't heard about.
If you have a good reason to disagree with the above, please tell me. Thank you.
Epsilon8
Profile Blog Joined May 2010
Canada173 Posts
July 09 2010 20:12 GMT
#84
On July 10 2010 05:00 spinesheath wrote:
Show nested quote +
On July 10 2010 04:40 Epsilon8 wrote:
Sorry, but I'm a little confused. I've been programming for a bit and was wondering what is the difference between functional programming and 'regular programming'?

Functional Programming is mostly about recursion (calling a function from within itself) and passing functions as arguments (maybe someone with better knowledge of those can be more precise).
Imperative Programming uses loops instead of recursion.
Object Oriented Programming is usually imperative as far as I know. OOP focuses on Objects and the functions that are related to that object, while imperative non-OOP focuses more on the functions.
I think there also is Logic Programming (never used that at all). Maybe there are some more types that I haven't heard about.


Oh alright. I know what that is/have done it. Just didn't know that it was called that. I'm in my second year at college so I would rate myself intermediate/advanced(in some areas) - although I have a lot to learn.

A site thats good to check out is : http://www.thinkgeek.com/tshirts-apparel/unisex/itdepartment/
Lots of funny programming related t-shirts and clothes.
If you wish to travel far and fast, travel light. Take off all your envies, jealousies, unforgiveness, selfishness, and fears.
ChoboCop
Profile Joined July 2004
United States954 Posts
July 09 2010 20:54 GMT
#85
I'm a .Net C# dev. I really appreciate tools like generics, linq, and the entity framework.
Critical thinking is the intellectually disciplined process of actively and skillfully conceptualizing, applying, analyzing, synthesizing, and/or evaluating information gathered.
UdderChaos
Profile Blog Joined February 2010
United Kingdom707 Posts
Last Edited: 2010-07-11 11:16:28
July 09 2010 21:02 GMT
#86
http://www.javabeginner.com/Java-keywords.doc is quite useful if your starting out, not just for Java but also can be useful in other languages as it covers the basic keywords like private public ect. and also java specific ones ofc.
Nunquam iens addo vos sursum
shmay
Profile Blog Joined July 2004
United States1091 Posts
July 09 2010 21:04 GMT
#87
On July 10 2010 04:40 Epsilon8 wrote:
Sorry, but I'm a little confused. I've been programming for a bit and was wondering what is the difference between functional programming and 'regular programming'?


functional only uses functions, not any pre-defined special languages constructs (if, else, +, -), except those to define functions

C: 1 + 1

Lisp: (+ 1 1)

In lisp you are calling a function called '+' and sending it two variables ( 1 and 1). C and its family (practically all languages) are called imperative programming, because you are sorta giving the computer a command ("add one to one")

in an OO language, like ruby, you can chain two methods and do something like

"blah".split.count

in lisp, you could do that purely functionally:
(count (split "blah"))
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
Last Edited: 2010-07-09 21:11:28
July 09 2010 21:09 GMT
#88
On July 10 2010 06:04 shmay wrote:
in an OO language, like ruby, you can chain two methods and do something like

"blah".split.count

I would rather say, functions can return objects (or usually references/pointers to objects), on which you can call another member function.

So ("blah".split) is actually an object that has a function count.
If you have a good reason to disagree with the above, please tell me. Thank you.
fanta[Rn]
Profile Blog Joined October 2004
Japan2465 Posts
July 09 2010 21:34 GMT
#89
NeHe stuff is fairly outdated by now, I'd try looking for some 3.X content instead.
Manipulate your own matrices, work with shaders, forget about deprecated fixed function completly. Most glX commands are fixed function, especially when they handle matrices, effects, light, etc.

Here's a good OpenGL site, although it uses fixed function for drawing:
http://www.songho.ca/opengl/index.html

For shaders, I thought this one is very good:
http://www.lighthouse3d.com/opengl/glsl/


NeHe I'd only use to get ideas of what is needed in your application.
darmousseh
Profile Blog Joined May 2010
United States3437 Posts
July 09 2010 21:39 GMT
#90
Oh man, where is the love for ruby? Truly missing out on a great programming language.
Developer for http://mtgfiddle.com
kar1181
Profile Joined May 2010
United Kingdom515 Posts
July 09 2010 22:04 GMT
#91
I think too many people got sucked into writing rails webapps, only to find out it scaled about as well as a 20 tonne dumptruck.

And took it out on the language itself.

Personally I quite like Groovy
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
July 09 2010 22:33 GMT
#92
On July 09 2010 23:05 sluggaslamoo wrote:
Show nested quote +
On July 09 2010 19:09 Qzy wrote:
On July 09 2010 17:36 sluggaslamoo wrote:
What level have you got up to?

http://projecteuler.net/


I'm at level 2 (solved 60) started a few months ago.. you?

I can recommend project euler for EVERYONE who loves programming and math.


Actually I kinda did it so it would force me to get better at algorithmic problem solving, I think I got to 30 before I decided I couldn't take it anymore (long time ago tho) I'm really into programming theory, but not the kind that involves hardcore algorithms. I might try it again some time.



I guess it comes with my study of AI. It's really fun to solve the problems, imo.
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
AcrossFiveJulys
Profile Blog Joined September 2005
United States3612 Posts
July 09 2010 22:39 GMT
#93
If anyone has questions about AI, or even better, machine learning, I'd be happy to answer. I'm a grad student studying machine learning at UM.


Btw I just fixed like the 20th (and HOPEFULLFUCKINGLY the last) bug in my algorithm and I jizzed in my pants
catamorphist
Profile Joined May 2010
United States297 Posts
Last Edited: 2010-07-09 22:48:45
July 09 2010 22:46 GMT
#94
EDIT: Sorry, double-posted somehow.
http://us.battle.net/sc2/en/profile/281144/1/catamorphist/
catamorphist
Profile Joined May 2010
United States297 Posts
Last Edited: 2010-07-09 22:49:31
July 09 2010 22:48 GMT
#95
On July 10 2010 06:04 shmay wrote:
Show nested quote +
On July 10 2010 04:40 Epsilon8 wrote:
Sorry, but I'm a little confused. I've been programming for a bit and was wondering what is the difference between functional programming and 'regular programming'?


functional only uses functions, not any pre-defined special languages constructs (if, else, +, -), except those to define functions

C: 1 + 1

Lisp: (+ 1 1)

In lisp you are calling a function called '+' and sending it two variables ( 1 and 1). C and its family (practically all languages) are called imperative programming, because you are sorta giving the computer a command ("add one to one")

in an OO language, like ruby, you can chain two methods and do something like

"blah".split.count

in lisp, you could do that purely functionally:
(count (split "blah"))


In the interest of combatting disinformation, I feel compelled to point out that this is absolutely, 100% false and bears no relationship to reality. When people talk about "functional programming" they are implying two things:

1a) Being able to pass functions to higher-order functions.
1b) Being able to define anonymous functions concisely (otherwise 1a is very awkward.)

2) Writing in a style as to isolate functions that have observable side effects from non-side-effecting functions, so that you can reason about code more easily.
http://us.battle.net/sc2/en/profile/281144/1/catamorphist/
eaT_Mi_Lquid
Profile Blog Joined March 2010
Germany509 Posts
Last Edited: 2010-07-09 23:54:04
July 09 2010 23:49 GMT
#96
On July 10 2010 07:48 catamorphist wrote:
Show nested quote +
On July 10 2010 06:04 shmay wrote:
On July 10 2010 04:40 Epsilon8 wrote:
Sorry, but I'm a little confused. I've been programming for a bit and was wondering what is the difference between functional programming and 'regular programming'?


functional only uses functions, not any pre-defined special languages constructs (if, else, +, -), except those to define functions

C: 1 + 1

Lisp: (+ 1 1)

In lisp you are calling a function called '+' and sending it two variables ( 1 and 1). C and its family (practically all languages) are called imperative programming, because you are sorta giving the computer a command ("add one to one")

in an OO language, like ruby, you can chain two methods and do something like

"blah".split.count

in lisp, you could do that purely functionally:
(count (split "blah"))


In the interest of combatting disinformation, I feel compelled to point out that this is absolutely, 100% false and bears no relationship to reality. When people talk about "functional programming" they are implying two things:

1a) Being able to pass functions to higher-order functions.
1b) Being able to define anonymous functions concisely (otherwise 1a is very awkward.)

2) Writing in a style as to isolate functions that have observable side effects from non-side-effecting functions, so that you can reason about code more easily.



OK, some people seem to be confused/ do not exactly understand the differences between these different programming paradigm.

As for "Imperative Programming (C, C++, Java, .Net, JavaScript etc.):

It is the most common programming paradigm, and most of the software are written in imperative programming style. In imperative programming, you assign information/values to variables. In the beginning of computing it means that you will assign some value to a memory address, in modern programming you assign values to variables. Because you assign something and instruct the function/program to do something with it actively it is called "Imperative programming". an example for imperative programming in pseudo code is

int a = 1;
int b = 10;

while(a < b){
a = a + 1;
if(a == b/2)
//do something
}


As you can see you instruct the program to do something, therefore it's called imperative proramming.

Object Oriented Programming:

OOP, is a programming paradigm that is used in imperative programming a lot. It mainly results from structured programming (i did not check this), and it differs from OOP mainly in this regard:

Instances. Whereas in structured programming you program by assigning simple values or complex value types (combining a set of value types into one structure), you will define those structures and create instances of those structures in OOP. Meaning that you work with instances (objects) instead of data structures which are statically allocated in the memory. If you want it, you can call classes that are defined in any modern OOP language structures, whenever they are declared as "static". In summary, OOP is about working with instances of defined data structures and procedures. OOP has proven itself to be viable to write complex software, and was developed from structured programming solely for this purpose, to cope with increasing complexity of programs.

Functional Programming:

Functional programming is something complely different from imperative programming. In functional programming, you don't care about assigning values to variables, in the meaning of allocating memory etc. It is a mathematical way to program things. It is based solely on functions, whereas in imperative programming you have assignments and conditional constructs etc. and you use it in a imperative way by calling them sequentially. I don't know too much about functional programming, but this is the main difference between them. Functional programming is not suited for common software, it is more suited for implementing algorithms and calculus etc.

BTW: This topic is too broad, but if anyone want to discuss Systems Engineering/Design stuff I'm in, such like SOA, Web development etc.
League of Legends: Puffelipuff
Freezard
Profile Blog Joined April 2007
Sweden1014 Posts
July 09 2010 23:58 GMT
#97
On July 10 2010 05:54 ChoboCop wrote:
I'm a .Net C# dev. I really appreciate tools like generics, linq, and the entity framework.


LINQ is probably the main reason why I got to like C# so much, it's fucking brilliant.
haxorz
Profile Blog Joined June 2009
United States138 Posts
July 10 2010 00:00 GMT
#98
On July 10 2010 08:49 eaT_Mi_Lquid wrote:
+ Show Spoiler +

On July 10 2010 07:48 catamorphist wrote:
Show nested quote +
On July 10 2010 06:04 shmay wrote:
On July 10 2010 04:40 Epsilon8 wrote:
Sorry, but I'm a little confused. I've been programming for a bit and was wondering what is the difference between functional programming and 'regular programming'?


functional only uses functions, not any pre-defined special languages constructs (if, else, +, -), except those to define functions

C: 1 + 1

Lisp: (+ 1 1)

In lisp you are calling a function called '+' and sending it two variables ( 1 and 1). C and its family (practically all languages) are called imperative programming, because you are sorta giving the computer a command ("add one to one")

in an OO language, like ruby, you can chain two methods and do something like

"blah".split.count

in lisp, you could do that purely functionally:
(count (split "blah"))


In the interest of combatting disinformation, I feel compelled to point out that this is absolutely, 100% false and bears no relationship to reality. When people talk about "functional programming" they are implying two things:

1a) Being able to pass functions to higher-order functions.
1b) Being able to define anonymous functions concisely (otherwise 1a is very awkward.)

2) Writing in a style as to isolate functions that have observable side effects from non-side-effecting functions, so that you can reason about code more easily.



OK, some people seem to be confused/ do not exactly understand the differences between these different programming paradigm.

As for "Imperative Programming (C, C++, Java, .Net, JavaScript etc.):

It is the most common programming paradigm, and most of the software are written in imperative programming style. In imperative programming, you assign information/values to variables. In the beginning of computing it means that you will assign some value to a memory address, in modern programming you assign values to variables. Because you assign something and instruct the function/program to do something with it actively it is called "Imperative programming". an example for imperative programming in pseudo code is

int a = 1;
int b = 10;

while(a < b){
a = a + 1;
if(a == b/2)
//do something
}


As you can see you instruct the program to do something, therefore it's called imperative proramming.

Object Oriented Programming:

OOP, is a programming paradigm that is used in imperative programming a lot. It mainly results from structured programming (i did not check this), and it differs from OOP mainly in this regard:

Instances. Whereas in structured programming you program by assigning simple values or complex value types (combining a set of value types into one structure), you will define those structures and create instances of those structures in OOP. Meaning that you work with instances (objects) instead of data structures which are statically allocated in the memory. If you want it, you can call classes that are defined in any modern OOP language structures, whenever they are declared as "static". In summary, OOP is about working with instances of defined data structures and procedures. OOP has proven itself to be viable to write complex software, and was developed from structured programming solely for this purpose, to cope with increasing complexity of programs.

Functional Programming:

Functional programming is something complely different from imperative programming. In functional programming, you don't care about assigning values to variables, in the meaning of allocating memory etc. It is a mathematical way to program things. It is based solely on functions, whereas in imperative programming you have assignments and conditional constructs etc. and you use it in a imperative way by calling them sequentially. I don't know too much about functional programming, but this is the main difference between them. Functional programming is not suited for common software, it is more suited for implementing algorithms and calculus etc.



I was going to write up a long response as well, so I'll be concise (and a bit imprecise).

Functional programming models computation as the evaluation of mathematical functions. The "unit" of computation is the function.

Imperative programming models computation as the execution of commands and the mutation of state. The "unit" of computation is the command.

Object-Oriented programming models computation as the interaction between objects. The "unit" of computation is the object.


As there seems to be a misconception about functional programming (with regards to purpose, usefulness, etc), I'd be happy to answer anyone's questions.
And theres the GG.
jgad
Profile Blog Joined March 2008
Canada899 Posts
July 10 2010 00:16 GMT
#99
All these fancy, trendy languages....

I code in Delphi. And ladder logic. 0_o
콩까지마
eaT_Mi_Lquid
Profile Blog Joined March 2010
Germany509 Posts
July 10 2010 00:20 GMT
#100
On July 10 2010 09:16 jgad wrote:
All these fancy, trendy languages....

I code in Delphi. And ladder logic. 0_o



Hehe , actually, real software devs don't care about certain prog. languages anymore. If there's a need to implement something in a certain language they just do it. Familiarity with a certain language is not that important, as good programmers can get a grasp from a given programming language really fast.
League of Legends: Puffelipuff
Prev 1 2 3 4 5 6 7 1030 1031 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 7h 42m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
trigger 202
TKL 179
ForJumy 4
StarCraft: Brood War
Britney 35072
Calm 4320
Bisu 3110
Jaedong 1313
GuemChi 592
Soma 523
Mini 505
BeSt 377
Light 346
ZerO 286
[ Show more ]
Snow 245
Soulkey 226
actioN 224
Sharp 190
ggaemo 169
hero 161
Rush 151
Mong 90
Hyun 81
Mind 64
sorry 58
JYJ 57
Movie 48
Hm[arnc] 41
Backho 38
Shuttle 36
Hyuk 32
Aegong 31
Shinee 28
IntoTheRainbow 24
Free 24
scan(afreeca) 21
ajuk12(nOOB) 17
Rock 17
910 16
Sacsri 14
HiyA 14
GoRush 13
Terrorterran 12
ivOry 8
Dota 2
qojqva1981
Dendi651
syndereN298
XcaliburYe93
febbydoto8
Counter-Strike
allub289
adren_tv107
ptr_tv41
Other Games
gofns6365
B2W.Neo1215
hiko804
RotterdaM271
crisheroes240
FrodaN230
Liquid`VortiX136
oskar131
ArmadaUGS72
Mew2King60
KnowMe53
Trikslyr28
ZerO(Twitch)18
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 17 non-featured ]
StarCraft 2
• poizon28 36
• LUISG 21
• Kozan
• sooper7s
• AfreecaTV YouTube
• intothetv
• Migwel
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• HerbMon 67
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• WagamamaTV205
League of Legends
• TFBlade1664
• Stunt737
• Shiphtur66
Upcoming Events
Replay Cast
7h 42m
The PondCast
17h 42m
WardiTV Invitational
19h 42m
Replay Cast
1d 7h
RongYI Cup
2 days
herO vs Maru
uThermal 2v2 Circuit
3 days
Replay Cast
4 days
Wardi Open
4 days
Monday Night Weeklies
5 days
Sparkling Tuna Cup
5 days
Liquipedia Results

Completed

Proleague 2026-02-03
HSC XXVIII
Underdog Cup #3

Ongoing

CSL 2025 WINTER (S19)
KCM Race Survival 2026 Season 1
Acropolis #4 - TS4
Rongyi Cup S3
Nations Cup 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8

Upcoming

Escore Tournament S1: W7
Escore Tournament S1: W8
Acropolis #4
IPSL Spring 2026
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
RSL Revival: Season 4
LiuLi Cup: 2025 Grand Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.