• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 05:41
CET 11:41
KST 19:41
  • 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
RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
Weekly Cups (Nov 24-30): MaxPax, Clem, herO win1BGE Stara Zagora 2026 announced14[BSL21] Ro.16 Group Stage (C->B->A->D)4Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win3RSL Season 3: RO16 results & RO8 bracket13
StarCraft 2
General
Weekly Cups (Nov 24-30): MaxPax, Clem, herO win SC2 Proleague Discontinued; SKT, KT, SGK, CJ disband BGE Stara Zagora 2026 announced Information Request Regarding Chinese Ladder SC: Evo Complete - Ranked Ladder OPEN ALPHA
Tourneys
$5,000+ WardiTV 2025 Championship Constellation Cup - Main Event - Stellar Fest RSL Revival: Season 3 Tenacious Turtle Tussle [Alpha Pro Series] Nice vs Cure
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress Mutation # 500 Fright night Mutation # 499 Chilling Adaptation
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ FlaSh's Valkyrie Copium BW General Discussion A cwal.gg Extension - Easily keep track of anyone Which season is the best in ASL?
Tourneys
[Megathread] Daily Proleagues [BSL21] RO16 Group B - Sunday 21:00 CET [BSL21] RO16 Group C - Saturday 21:00 CET Small VOD Thread 2.0
Strategy
Game Theory for Starcraft How to stay on top of macro? Current Meta PvZ map balance
Other Games
General Games
Should offensive tower rushing be viable in RTS games? Path of Exile Nintendo Switch Thread The Perfect Game Stormgate/Frost Giant Megathread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
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 TL Mafia Community Thread
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread The Big Programming Thread Things Aren’t Peaceful in Palestine Artificial Intelligence Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread
Sports
Formula 1 Discussion 2024 - 2026 Football Thread NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Where to ask questions and add stream? The Automated Ban List
Blogs
Esports Earnings: Bigger Pri…
TrAiDoS
Thanks for the RSL
Hildegard
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2003 users

The Big Programming Thread - Page 147

Forum Index > General Forum
Post a Reply
Prev 1 145 146 147 148 149 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.
Cloud
Profile Blog Joined November 2004
Sexico5880 Posts
Last Edited: 2012-06-25 17:16:52
June 25 2012 17:16 GMT
#2921
On June 25 2012 19:10 Poltergeist- wrote:
What are the latest and greatest/upcoming programming languages, if any? Anyone have any idea? Does it differ possibly between the US and EU?

Depends on the domain. C++, Java and PHP are still the most common languages. Web startups love Ruby, Python and JavaScript (Node.js & co), interesting new upcoming languages are JVM languages like Scala and Clojure, of which Clojure is gaining a lot of traction for a Lisp language, already used in big companies like Twitter, Amazon, Citi. There are also other languages like Go, Haskell and Ocaml which have their own userbase. As for comparing languages, no one will really give you an objective comparison, since languages become after all, ways of thought and it hurts people sensibilities when you say their language is worse. But if you're looking for a language that has cool concepts and shows a lot of promise for use in the industry I recommend Clojure (http://clojure.org/)
BlueLaguna on West, msg for game.
heishe
Profile Blog Joined June 2009
Germany2284 Posts
Last Edited: 2012-06-25 17:18:54
June 25 2012 17:17 GMT
#2922
On June 26 2012 02:13 Isualin wrote:
any idea why C is getting bigger? isn't it quite old?


C is very widely used basically wherever you have some kind of embedded system. Embedded system is basically any electronic device that has some form of microcontroller in it to control it, and nowadays that should be about half the things you walk by during the day. Your washing machine, your car (those have tons of it), your MP3-player, etc.

I also think it'll continue growing since the number of electronic devices in our everyday lifes will go way up in the future. The only thing that could stop people using pure C is if people started using C++ instead of C for microcontrollers.
If you value your soul, never look into the eye of a horse. Your soul will forever be lost in the void of the horse.
tofucake
Profile Blog Joined October 2009
Hyrule19163 Posts
June 25 2012 17:47 GMT
#2923
It's good.
Liquipediaasante sana squash banana
Azerbaijan
Profile Blog Joined January 2010
United States660 Posts
June 26 2012 01:29 GMT
#2924
On June 25 2012 13:56 jergason wrote:
The C Programming Language is the best book on C, and one of the best programming books ever written.

http://www.amazon.com/C-Programming-Language-2nd-Edition/dp/0131103628/ref=sr_1_1?ie=UTF8&qid=1340600201&sr=8-1&keywords=the c programming language


This is the book I'm using except for the fact that mine is a first edition from 1978. Would investing in the more recent edition be worth it? I am having some difficulty figuring out what going on as it was written originally for using C in UNIX on the DEC PDP-11, Honeywell 6000, IBM System/370, and the Interdata 8/32. So yeah a bit before my time. I can understand a lot of what is written but am I causing myself unnecessary grief?
sluggaslamoo
Profile Blog Joined November 2009
Australia4494 Posts
Last Edited: 2012-06-26 01:48:12
June 26 2012 01:45 GMT
#2925
On June 26 2012 02:13 Isualin wrote:
any idea why C is getting bigger? isn't it quite old?


Mobile devices most likely and platforms like arduino, but remember this is just speculation from a whole bunch of members. Don't count on it though, I'm already doing Javascript on my robot bunny rabbit.

I'd say Ruby and JS/Coffeescript will is be the most rapidly developing languages in popularity. Obj-C and PHP will start to slow down, with platforms like Titanium allowing developers to rapidly develop cross-platform mobile applications in "better" languages. Obj-C is completely dependent on the success of the iPhone, and a lot of people are realising how bad PHP is as a web language.

.NET basically just shifted all the old programmers who were using microsoft proprietary languages such as VB6 which at one point had 75% of the market.

Haskell and Clojure are not going anywhere. If you have seen clojure, its going to suffer the same fate as javascript, a well designed language ruined by horrible syntax. Haskell and Scala are beautiful languages, but they take too long to learn.
Come play Android Netrunner - http://www.teamliquid.net/forum/viewmessage.php?topic_id=409008
3FFA
Profile Blog Joined February 2010
United States3931 Posts
June 26 2012 01:59 GMT
#2926
I need a little help because my brother says he can't really explain it well himself. Can someone help me as to how the Java classes, projects, etc. work? I'm very confused as to the difference between them and how they connect. A diagram of some sort might also help. (Sorry, this is probably something very simple to you programming Guru's )
"As long as it comes from a pure place and from a honest place, you know, you can write whatever you want."
mmp
Profile Blog Joined April 2009
United States2130 Posts
Last Edited: 2012-06-26 02:42:05
June 26 2012 02:22 GMT
#2927
On June 26 2012 10:59 3FFA wrote:
I need a little help because my brother says he can't really explain it well himself. Can someone help me as to how the Java classes, projects, etc. work? I'm very confused as to the difference between them and how they connect. A diagram of some sort might also help. (Sorry, this is probably something very simple to you programming Guru's )

A java "project" is a top-level package in an IDE. I don't think this term has any meaning for Java outside of IDEs.

A "package" is a statement at the head of a java file that describes where into the "class path" the class should be loaded. Other java files import that source with respect to its package.

Package hierarchy conventionally matches the directory hierarchy, but I don't think this is normative in Java. That is, I think you can put your files anywhere you want and package them any way you want. An IDE like Eclipse will probably enforce this convention for you.

A "java file" is source code containing a class(or interface, enum) definition. You can embed classes inside of classes, but the standard java compilers will complain if your java file contains more than one definition, which is why it seems intuitive to call your java file a "class" file, but that's misleading because...

A "class file" is the compiled bytecode for the JVM --- rather, an object file, but you can decompile the bytecode in a readable format.

The "class path" is a series of locations in the filesystem where the JRE should search for imported packages: in particular, where it can find class files.

Whenever java complains that it cannot find some external code you're linking to, it's probably because the code's class files aren't on your class path. IDEs have a place where you can configure the class path. If you use the command line, the classpath is simply an argument containing the concatenated directories/files.

---

So you:

1) compile MyClass.java into MyClass.class (and optionally archive it into mycode.jar).
2) MyClass.java begins with "package mypackage.foo.bar.whatever.else;"
3) If you want to use MyClass in another project, you simply add the MyClass.class file's containing directory to your classpath, or add mycode.jar to the list of libraries you want to run with your code. In your code you import mypackage.foo.bar.whatever.else.MyClass, and when you run this new package, the JRE loads up MyClass.class (or from the jar).

Note how your compiled code, and linked code, is a set of .class files, not one big static binary (bytecode, by analogy).
In C, you don't throw around object code once you're done. You compile everything statically into one single executable target, or you build it for position-independent loading (a library).
I (λ (foo) (and (<3 foo) ( T_T foo) (RAGE foo) )) Starcraft
sluggaslamoo
Profile Blog Joined November 2009
Australia4494 Posts
Last Edited: 2012-06-26 02:43:52
June 26 2012 02:38 GMT
#2928
On June 26 2012 10:59 3FFA wrote:
I need a little help because my brother says he can't really explain it well himself. Can someone help me as to how the Java classes, projects, etc. work? I'm very confused as to the difference between them and how they connect. A diagram of some sort might also help. (Sorry, this is probably something very simple to you programming Guru's )


Class stands for classification. Essentially you are classifying a particular element as a re-usable object. In Java classes must be separated into different files. You can't have more than one concrete class in a single file.

A project is a group of classes that work together to run your program.


Install Netbeans and start a new project.

Print hello world in your main class.

Build and Run.

If you want to use another class you need to create an instance of it first. In Netbeans you can "fix imports" which will automatically create an import line for the class you are using. Create an instance, and use the methods from that instance and have your objects collaborating to achieve the result you want.

For example. Create a class called Hello. (becomes hello.java in your project explorer). With a method "hello()" that spits hello world.

Then in your main class, main method you go.

hello = Hello.new

> Right-click anywhere in the code -> Fix Imports

hello.hello()

In OOP you have a series of collaborating objects with roles and responsibilities to achieve a common goal. Its not like Pascal and C where functionality is broken down into functions and procedures in organised units.
Come play Android Netrunner - http://www.teamliquid.net/forum/viewmessage.php?topic_id=409008
3FFA
Profile Blog Joined February 2010
United States3931 Posts
June 26 2012 04:09 GMT
#2929
Ok, thanks guys! I didn't expect so much information! TL really is becoming a great source for everything.
"As long as it comes from a pure place and from a honest place, you know, you can write whatever you want."
Mstring
Profile Joined September 2011
Australia510 Posts
June 26 2012 04:16 GMT
#2930
On June 26 2012 11:38 sluggaslamoo wrote:

In OOP you have a series of collaborating objects with roles and responsibilities to achieve a common goal. Its not like Pascal and C where functionality is broken down into functions and procedures in organised units.


This reminds me of the idea that "OOP is simply a way of thinking". You can write OO code in C; it just won't look as pretty XD
sluggaslamoo
Profile Blog Joined November 2009
Australia4494 Posts
June 26 2012 08:42 GMT
#2931
On June 26 2012 13:16 Mstring wrote:
Show nested quote +
On June 26 2012 11:38 sluggaslamoo wrote:

In OOP you have a series of collaborating objects with roles and responsibilities to achieve a common goal. Its not like Pascal and C where functionality is broken down into functions and procedures in organised units.


This reminds me of the idea that "OOP is simply a way of thinking". You can write OO code in C; it just won't look as pretty XD


That's true. I should have said Structured Programming instead of Pascal/C.

I don't mind using ADT's in C, although it feels a little weird.
Come play Android Netrunner - http://www.teamliquid.net/forum/viewmessage.php?topic_id=409008
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
June 26 2012 09:00 GMT
#2932
On June 26 2012 17:42 sluggaslamoo wrote:
Show nested quote +
On June 26 2012 13:16 Mstring wrote:
On June 26 2012 11:38 sluggaslamoo wrote:

In OOP you have a series of collaborating objects with roles and responsibilities to achieve a common goal. Its not like Pascal and C where functionality is broken down into functions and procedures in organised units.


This reminds me of the idea that "OOP is simply a way of thinking". You can write OO code in C; it just won't look as pretty XD


That's true. I should have said Structured Programming instead of Pascal/C.

I don't mind using ADT's in C, although it feels a little weird.


Wait until you reach the point where you start writing functional code in every language and throw function pointers around everywhere...
mmp
Profile Blog Joined April 2009
United States2130 Posts
Last Edited: 2012-06-26 15:27:02
June 26 2012 15:26 GMT
#2933
I didn't explain classpath as well as I would have liked.

Imagine the classpath as a list of files/directories, something like: "/usr/lib/sun/jdk/... ./myproject/lib/ ./MyClass" where you can include individual class files and directories of class files.

When you run Java code, the JRE takes all of that object code and resolves all of the "package" statements as a tree of Java class definitions.

Problems with the classpath occur when you import mypackage.foo.bar.MyClass and the JRE cannot find any object code in the classpath that (1) defines MyClass and (2) has a package statement that reads "package mypackage.foo.bar;"

Which means MyClass.class isn't listed in your classpath. The JRE doesn't know it exists, and it isn't going to search your entire filesystem to find it. You have to glue the pieces together yourself. Fortunately, it's as simple as locating the file and including it in your IDE or on the command line. Considering you're targeting a single platform (the JVM), this is simpler than compiling your library for multiple architectures, and then worrying about how different platforms load and link their shared libraries --- can be quite a headache. The JVM is more approachable in this regard.
I (λ (foo) (and (<3 foo) ( T_T foo) (RAGE foo) )) Starcraft
3FFA
Profile Blog Joined February 2010
United States3931 Posts
June 27 2012 14:40 GMT
#2934
Ok, thanks again!
"As long as it comes from a pure place and from a honest place, you know, you can write whatever you want."
ranshaked
Profile Blog Joined August 2010
United States870 Posts
June 28 2012 05:51 GMT
#2935
I just had the most wonderful experience in my life. I had spent all day working on an assignment, and I could not solve it the way I wanted to. I had solved it via the teachers lessons, but I wanted to use arrays and other more complicated solutions, so I spent nearly 6 hours attempting it. Anyway, I decided to get drunk. I eventually slept for an hour, but now at 1:45 am I awoke with an answer in my brain. I immediately typed it in, and to my behold I worked. I have no idea why this happened, but damn programming can make you feel at your highest and lowest.
Taku
Profile Blog Joined February 2009
Canada2036 Posts
June 28 2012 05:54 GMT
#2936
A biiiiiiiiiiiit of a stretch but anyone here familiar with VHDL?
When SC2 came for BW, I cried. Now LoL/Dota2 comes for SC2, and I laugh. \o/
MisterD
Profile Blog Joined June 2010
Germany1338 Posts
June 28 2012 10:53 GMT
#2937
On June 28 2012 14:54 Taku wrote:
A biiiiiiiiiiiit of a stretch but anyone here familiar with VHDL?

i certainly have forgotten most stuff, but unless you ask a real question, no one can help you anyways :p
Gold isn't everything in life... you need wood, too!
Deleted User 61629
Profile Blog Joined March 2010
1664 Posts
June 28 2012 10:55 GMT
#2938
--- Nuked ---
tofucake
Profile Blog Joined October 2009
Hyrule19163 Posts
June 28 2012 13:35 GMT
#2939
On June 28 2012 14:54 Taku wrote:
A biiiiiiiiiiiit of a stretch but anyone here familiar with VHDL?

Been a while since I used it, but I did technically make a CPU with it once...
Liquipediaasante sana squash banana
NeMeSiS3
Profile Blog Joined February 2012
Canada2972 Posts
June 28 2012 15:48 GMT
#2940
Does anyone have links for the very VERY basic of starters (I mentioned this earlier but I changed computers so I lost the sites) I just graduated highschool and going into CS at UNB Frederiction, so I need to learn some programming. Thanks in advance (beginner guides and such)
FoTG fighting!
Prev 1 145 146 147 148 149 1032 Next
Please log in or register to reply.
Live Events Refresh
Replay Cast
09:00
2025 KFC Monthly #3 - Day 4
CranKy Ducklings178
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Fuzer 151
StarCraft: Brood War
Britney 45054
Calm 4067
Sea 3261
Larva 672
Jaedong 576
actioN 426
Mini 345
Stork 335
firebathero 329
Soma 307
[ Show more ]
Zeus 251
BeSt 214
PianO 205
Pusan 135
Killer 117
Dewaltoss 79
Light 78
Snow 57
Hyun 53
ggaemo 53
Shinee 52
soO 43
Barracks 40
Sharp 38
JulyZerg 24
Bale 22
Noble 16
Sacsri 12
Terrorterran 11
SilentControl 9
ajuk12(nOOB) 8
Mong 2
Dota 2
XaKoH 572
XcaliburYe191
League of Legends
JimRising 423
Counter-Strike
olofmeister1699
shoxiejesuss664
Other Games
summit1g17808
ceh9431
crisheroes155
Mew2King108
MindelVK8
Organizations
Other Games
gamesdonequick848
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 12 non-featured ]
StarCraft 2
• StrangeGG 66
• LUISG 34
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Upcoming Events
Wardi Open
1h 19m
Monday Night Weeklies
6h 19m
StarCraft2.fi
6h 19m
Replay Cast
13h 19m
Wardi Open
1d 1h
StarCraft2.fi
1d 6h
PiGosaur Monday
1d 14h
Wardi Open
2 days
StarCraft2.fi
2 days
Replay Cast
2 days
[ Show More ]
The PondCast
2 days
Replay Cast
3 days
Korean StarCraft League
4 days
CranKy Ducklings
4 days
SC Evo League
5 days
BSL 21
5 days
Sziky vs OyAji
Gypsy vs eOnzErG
Sparkling Tuna Cup
5 days
BSL 21
6 days
Bonyth vs StRyKeR
Tarson vs Dandy
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2025-11-28
RSL Revival: Season 3
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
CSCL: Masked Kings S3
Slon Tour Season 2
Acropolis #4 - TS3
META Madness #9
Light HT
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
Kuram Kup
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
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...

Disclosure: This page contains affiliate marketing links that support TLnet.

Advertising | Privacy Policy | Terms Of Use | Contact Us

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