• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 17:24
CET 23:24
KST 07:24
  • 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 - 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[ASL20] Finals Preview: Arrival13
Community News
[TLMC] Fall/Winter 2025 Ladder Map Rotation12Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA8StarCraft, SC2, HotS, WC3, Returning to Blizzcon!45$5,000+ WardiTV 2025 Championship7
StarCraft 2
General
Mech is the composition that needs teleportation t RotterdaM "Serral is the GOAT, and it's not close" RSL Season 3 - RO16 Groups C & D Preview [TLMC] Fall/Winter 2025 Ladder Map Rotation TL.net Map Contest #21: Winners
Tourneys
RSL Revival: Season 3 Sparkling Tuna Cup - Weekly Open Tournament Constellation Cup - Main Event - Stellar Fest Tenacious Turtle Tussle Master Swan Open (Global Bronze-Master 2)
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection
Brood War
General
FlaSh on: Biggest Problem With SnOw's Playstyle What happened to TvZ on Retro? SnOw's ASL S20 Finals Review BW General Discussion Brood War web app to calculate unit interactions
Tourneys
[Megathread] Daily Proleagues Small VOD Thread 2.0 [BSL21] RO32 Group D - Sunday 21:00 CET [BSL21] RO32 Group C - Saturday 21:00 CET
Strategy
PvZ map balance Current Meta Simple Questions, Simple Answers How to stay on top of macro?
Other Games
General Games
Path of Exile Stormgate/Frost Giant Megathread Nintendo Switch Thread Clair Obscur - Expedition 33 Beyond All Reason
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
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread US Politics Mega-thread Artificial Intelligence Thread Canadian Politics Mega-thread
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Dyadica Gospel – a Pulp No…
Hildegard
Coffee x Performance in Espo…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Reality "theory" prov…
perfectspheres
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2086 users

The Big Programming Thread - Page 61

Forum Index > General Forum
Post a Reply
Prev 1 59 60 61 62 63 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.
AkaHenchway
Profile Joined October 2010
United States41 Posts
Last Edited: 2011-06-20 04:49:08
June 20 2011 04:16 GMT
#1201
Nevermind....I just overlooked an obvious mistake because of where the error was pointing.


guess Ill be a frequent question asker on here, but again diff problem (not fully finished with it ) but I am not understanding the error I receive when running it.+ Show Spoiler +
import javax.swing.JOptionPane;

public class payroll{

public static void main(String[] args) {

String nameString = JOptionPane.showInputDialog(
"What is your name: ");

String payString = JOptionPane.showInputDialog(
"Enter your hourly pay: ");

double pay = Double.parseDouble(payString);

String hoursString = JOptionPane.showInputDialog(
"Enter number of hours worked in a week: ");

double hours = Double.parseDouble(hoursString);

grosspay = (hours * pay)

String federalString = JOptionPane.showInputDialog(
"Enter federal tax withholding rate: ");

String stateString = JOptionPane.showInputDialog(
"Enter state tax withholding rate: ");



System.out.println("\t" + "Employee Name: " + nameString + "\n"+
"\t" + "Hours Worked: " + hoursString + "\n" +
"\t" + "Pay Rate: " + payString + "\n" +
"\t" + "Gross Pay: " + grosspay );
}
}

Error is on String federalString line says expects a ;.....line is the same as all other lines so not sure really what the problem is thanks a bunch guys.
Fuck the Bullshit
Frigo
Profile Joined August 2009
Hungary1023 Posts
June 20 2011 10:59 GMT
#1202
grosspay = (hours * pay) is missing a ;

Errors are not necessarily at the same line the compiler is saying. They might be earlier, or even later.
http://www.fimfiction.net/user/Treasure_Chest
VIB
Profile Blog Joined November 2007
Brazil3567 Posts
June 20 2011 12:31 GMT
#1203
On June 19 2011 09:38 inkblot wrote:
Show nested quote +
On June 19 2011 08:35 Natsumar wrote:
Hey guys, I'm going to start college this fall and I'm planning on majoring in Computer Sciences. I've already enrolled, but when I talked to my advisor she said my first actual class in the major, Fundamentals of Software Design, uses a lot of Java, is very fast paced, and can sometimes jump around, assuming you already know the basics of programming.

Since I've never taken an actual programming class and have only been casually messing around with Visual Basic (trust me, I know), I know all of nothing about actual programming, I was wondering where I could read up this summer about some general concepts of programming and maybe some introduction to Java specifically?


Some universities have good CS lectures online. Here's a Stanford introductory CS lecture series using Java for example: CS106A. IIRC you can find the class website for this course with most/all of the resources you might need to go through the course as if you were a student.
Wow that's really cool, thanks a lot for sharing.
Great people talk about ideas. Average people talk about things. Small people talk about other people.
Chocolate
Profile Blog Joined December 2010
United States2350 Posts
June 22 2011 03:26 GMT
#1204
Hi everyone! I'm interested in getting into and trying out programming to see if it would be a viable job later on and if I should consider cs in college. However, I am a complete novice to programming. I've messed around with html on w3schools but it seems kinda easy and remedial so I tried learning java/C++. I think those might be a little difficult for me though so I'm asking you all to help me pick a language or something to get my foot into the door of programming. Thanks! Also links to guides are much appreciated since google likes to give me paid ones :/.
VIB
Profile Blog Joined November 2007
Brazil3567 Posts
June 22 2011 03:31 GMT
#1205
Python is a very easy beginner language and also very useful skill to have in the future. The official docs are great tool for learning. They have a very easy to follow tutorial. Get started here:

http://docs.python.org/tutorial/
Great people talk about ideas. Average people talk about things. Small people talk about other people.
Chocolate
Profile Blog Joined December 2010
United States2350 Posts
June 22 2011 03:36 GMT
#1206
On June 22 2011 12:31 VIB wrote:
Python is a very easy beginner language and also very useful skill to have in the future. The official docs are great tool for learning. They have a very easy to follow tutorial. Get started here:

http://docs.python.org/tutorial/

lol my buddy just told me to learn python and I'm browsing that right now. thanks!
Inkarnate
Profile Blog Joined April 2010
Canada840 Posts
June 24 2011 02:47 GMT
#1207
Hey all, looking for someone with experience in any of the following to help me out a bit:

CCXML
VXML
Nortel Media Processing Server (MPS)
IVRs (Interactive Voice Response)
PeriPro

Pretty much I got student position that involves porting current IVR programs on the MPS from PeriPro to VXML. I have never worked in PeriPro or VXML, but I have an XML background. They are giving me time in the job to learn these languages so its not terrible, but i have a few questions.


PM or post <3
Habel
Profile Joined April 2011
United States123 Posts
June 24 2011 05:35 GMT
#1208
Has anyone here heard of Nemerle? http://nemerle.org/about

I've been checking this language out for the past couple of days, and so far it's a to the maz amazing. It's got the best type inference system to date, with optional static typing for performance in commercial products. This allows for rapid development with the dynamic typing, but the performance and safety of static languages.

It has the ability to create macros, something that hasn't been implemented well since lisp, really. These macros are so powerful, they can add language wide functions without the hassle of creating a new source file in each program you start. They can also be used to add new syntax to programs, for example.
+ Show Spoiler +

macro forp (i, n : int, m : int, body)
syntax ("forp", "(", i, "in", n, "to", m, ")", body)

This, Pythons for i in range(n), can be used as
forp (i in 3 to 10) Nemerle.IO.printf ("%d\n", i)

which will print 3, 4, 5, 6, 7, 8, 9, 10


This language also has metaprogramming, which we can all agree is really helpful. For all who don't know what it is, it's basically generating xml files, or other data languages at compile time through the language itself, instead of writing it ourselves as programmers.

It is a multi-paradigm language, supporting both OOP as strong, if not stronger, than C# and Java, along with functional programming as powerful as Haskell. You can create domain specific languages using macros compiled into dlls, which adds DOP and LOP to the list. So, that's 6 paradigms, all as strong as those in languages that are based around it.

It is a .net language, meaning it can run on Windows phone 7, as well as use all .net libraries. It also has Nemerle on rails, which is RoR with static typing. It can also use LINQ, and don't we all love LINQ.

So, as can be seen from my post, I think that this is a big thing. Who am I? I'm a random 15 year old programmer. What is this? The next big language.
"I'd rather laugh with the sinners than cry with the saints." - Billy Joel
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
June 24 2011 08:09 GMT
#1209
On June 24 2011 14:35 Habel wrote:
Has anyone here heard of Nemerle? http://nemerle.org/about

I've been checking this language out for the past couple of days, and so far it's a to the maz amazing. It's got the best type inference system to date, with optional static typing for performance in commercial products. This allows for rapid development with the dynamic typing, but the performance and safety of static languages.

It has the ability to create macros, something that hasn't been implemented well since lisp, really. These macros are so powerful, they can add language wide functions without the hassle of creating a new source file in each program you start. They can also be used to add new syntax to programs, for example.
+ Show Spoiler +

macro forp (i, n : int, m : int, body)
syntax ("forp", "(", i, "in", n, "to", m, ")", body)

This, Pythons for i in range(n), can be used as
forp (i in 3 to 10) Nemerle.IO.printf ("%d\n", i)

which will print 3, 4, 5, 6, 7, 8, 9, 10


This language also has metaprogramming, which we can all agree is really helpful. For all who don't know what it is, it's basically generating xml files, or other data languages at compile time through the language itself, instead of writing it ourselves as programmers.

It is a multi-paradigm language, supporting both OOP as strong, if not stronger, than C# and Java, along with functional programming as powerful as Haskell. You can create domain specific languages using macros compiled into dlls, which adds DOP and LOP to the list. So, that's 6 paradigms, all as strong as those in languages that are based around it.

It is a .net language, meaning it can run on Windows phone 7, as well as use all .net libraries. It also has Nemerle on rails, which is RoR with static typing. It can also use LINQ, and don't we all love LINQ.

So, as can be seen from my post, I think that this is a big thing. Who am I? I'm a random 15 year old programmer. What is this? The next big language.


After reading the about page and reading a little more into the language i don't see anything special about it. It's another of those "let's take all good languages we know, mix them together, remove the parts that we don't like (i.e. the good parts) and say we are a 'multi-paradigm language'".

It's basically simplified C#, except that it's the default there to declare any variable with "var whatever = ..." (though they renamed var to def so it's not too obvious while also removing the "new" keyword). The macros and meta-programming are ok but don't actually add anything to the language and just support badly designed code (inline XML... seriously? horrible example) and the functional extensions - while nice - don't add much to what C# already has while not really integrating nicely into the other code.

Well, maybe i'm too much a fan of classic C/C++ and defining everything very strictly with a very clean design... and i probably have seen too much bad code, bad design and bad macro abuse...
Craton
Profile Blog Joined December 2009
United States17265 Posts
June 24 2011 16:28 GMT
#1210
I hate weakly typed languages so much D:
twitch.tv/cratonz
dogmeatstew
Profile Joined April 2010
Canada574 Posts
June 24 2011 20:02 GMT
#1211
On June 22 2011 12:36 Chocolate wrote:
Show nested quote +
On June 22 2011 12:31 VIB wrote:
Python is a very easy beginner language and also very useful skill to have in the future. The official docs are great tool for learning. They have a very easy to follow tutorial. Get started here:

http://docs.python.org/tutorial/

lol my buddy just told me to learn python and I'm browsing that right now. thanks!

On the other hand python also does some weird ass shit that makes it hard to use at times...

in all likely hood you won't run into any of this for quite some time if you're just starting up now but I feel like its important to thow in with all the praise python gets as a fantastic intuitive language that it also has some super weird convoluted stuff in it...

In particular I've recently noticed (my current job requires me to write a lot of python) that it handles scope very strangely and is messed with stuff.
Trentelshark
Profile Joined September 2010
Canada385 Posts
June 24 2011 20:13 GMT
#1212
On June 15 2011 08:59 visual77 wrote:
I agree with the Doxygen comment. It's a really good system that is used by a lot of different languages. At the very least, it's a good starting point to flesh out a robust API. You basically just put a specially formatted comment block before each function / class, and doxygen will handle the rest.

Agree. If a team ensures to document to the standard the parser is looking for, commenting of major blocks will be consistent throughout and then it becomes a matter of "personal judgement" with respect to inline commenting that can be more easily enforced than trying to set your own standards for the codebase as a whole .
PinkPony
Profile Joined June 2011
United States22 Posts
June 24 2011 20:39 GMT
#1213
Hey I have a quick question, how would I go about making lets say programs for Starcraft 2. I Remember using Chaos Launcher for brood war and I was wondering what language would be good for this if any. I hope its not "illegal" to do this but I was just Curious, if someone could get back to me on this that would be great thanks ^^
Wiener Hut JunioR!
I dont really feel like typing a quote
Craton
Profile Blog Joined December 2009
United States17265 Posts
June 24 2011 21:04 GMT
#1214
I imagine most of those were written in C or C++. The actual process of making something like Chaos Launcher isn't particularly easy.
twitch.tv/cratonz
PinkPony
Profile Joined June 2011
United States22 Posts
June 25 2011 15:32 GMT
#1215
Well I would like to know where to start you know, maybe someone could make the chaos launcher for sc2
I dont really feel like typing a quote
tec27
Profile Blog Joined June 2004
United States3702 Posts
June 25 2011 15:49 GMT
#1216
On June 25 2011 05:39 PinkPony wrote:
Hey I have a quick question, how would I go about making lets say programs for Starcraft 2. I Remember using Chaos Launcher for brood war and I was wondering what language would be good for this if any. I hope its not "illegal" to do this but I was just Curious, if someone could get back to me on this that would be great thanks ^^
Show nested quote +
Wiener Hut JunioR!

Assuming you want to interact with the game itself, you need to look into DLL Injection. I wrote a DLL injector for SC2 specifically when I made APMAlert2, but I don't think I have the source uploaded anywhere. If you'd like to see it I can put it somewhere. Its a C# program with a C DLL to do the actual injecting. It wouldn't really work out like ChaosLauncher though because it has no concept of plugins or anything (although a system like that used in Chaos is not that hard to implement).

You have to realize, though, that Warden is a much, much larger issue in SC2 than it ever was in BW. You can get away with a lot (both legitimate in competitive play, and illegitimate) in BW that you can't in SC2. Along with the fact that reversing BW is a much, much simpler process. If you are still trying to make something in that realm even after that disclaimer (I totally can't blame you if you are ), then I have the source to APMAlert2 up on github: https://github.com/tec27/APMAlert2

Its kinda crappy, and the DirectX hooking could be a lot more robust, but it might help you get started. There's also source for APMAlert for BW linked in my post about that if you search it, which interacts with the game a lot more than APMAlert2.
Can you jam with the console cowboys in cyberspace?
PinkPony
Profile Joined June 2011
United States22 Posts
June 25 2011 17:51 GMT
#1217
Wow tec27 thats really impressive, but something like that would be far too advance for me, it would take me prob a year to fully understand the coding, any good places to start off?
I dont really feel like typing a quote
Oracle
Profile Blog Joined May 2007
Canada411 Posts
June 25 2011 17:53 GMT
#1218
I have posted a few challenging programming interview questions that I/my friends have heard in the past. I encourage any enthusiast programmer to attempt them.

http://www.teamliquid.net/blogs/viewblog.php?topic_id=237090
ibutoss
Profile Blog Joined June 2005
Australia341 Posts
June 26 2011 09:50 GMT
#1219
On June 26 2011 02:53 Oracle wrote:
I have posted a few challenging programming interview questions that I/my friends have heard in the past. I encourage any enthusiast programmer to attempt them.

http://www.teamliquid.net/blogs/viewblog.php?topic_id=237090


I recently completed a exam with similar questions to this. Anxiously awaiting my results but some of those problems are harder than others. Good to know for programming interviews.
Nada got Yooned
tec27
Profile Blog Joined June 2004
United States3702 Posts
Last Edited: 2011-06-27 04:10:39
June 27 2011 04:10 GMT
#1220
On June 26 2011 02:51 PinkPony wrote:
Wow tec27 thats really impressive, but something like that would be far too advance for me, it would take me prob a year to fully understand the coding, any good places to start off?

If you're looking to get into reverse engineering games and/or hooking and interacting with them, it can be a bit difficult to start in due to the nature of the applications generally developed utilizing that knowledge (namely, game hacks, viruses, rootkits and the like). Thats not to say its not worth learning, just that there is a lot of useless crap out there regarding it and not a lot of useful tutorials, introductions, and documentation.

If I had to recommend a site for content to reference, it would have to be http://www.gamedeception.net/ . The community is rather belligerent and you will almost never get decent response should you decide to ask a question there, but it does have a ton of useful forum posts by people who know a great deal about reverse engineering games and due to their forum policies, it is basically free of hack beggars to get in the way of such information. Be warned though, its pretty much exclusively hacks that violate any sort of spirit of competition. Once you get past that though, its quite useful information.

For projects to start off with and gain more knowledge, you should probably begin by constructing programs to interact with some simpler games/programs. Minesweeper is a pretty good choice, and there are a bunch of tutorials out there dealing with that program in particular (here's one for example: http://www.codeproject.com/KB/trace/minememoryreader.aspx ). Minesweeper's codebase is relatively simple, so it makes a project like that much easier.

If you truly want to move into the realm of modern games, be prepared to develop a good understanding of how classes and OOP are managed at the assembly level. If you don't understand how member functions, virtual tables, etc. work in assembly, then you'll have no hope of doing anything really cool (That's not to say that you don't have a chance if you don't know them now, just that you'll need to devote some time to figuring them out).

Hope that helps and doesn't scare you away
Can you jam with the console cowboys in cyberspace?
Prev 1 59 60 61 62 63 1032 Next
Please log in or register to reply.
Live Events Refresh
The PiG Daily
20:30
Best Games of SC
Serral vs Clem
Solar vs Cure
Serral vs Clem
Reynor vs GuMiho
herO vs Cure
PiGStarcraft327
LiquipediaDiscussion
BSL 21
20:00
ProLeague - RO32 Group C
Tarson vs Julia
Doodle vs OldBoy
eOnzErG vs WolFix
StRyKeR vs Aeternum
ZZZero.O318
LiquipediaDiscussion
OSC
19:00
Masters Cup #150: Group B
davetesta56
Liquipedia
PSISTORM Gaming Misc
15:55
FSL teamleague CNvsASH, ASHvRR
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft327
Nathanias 101
ProTech70
StarCraft: Brood War
Shuttle 921
ZZZero.O 318
NaDa 57
Dota 2
LuMiX1
Counter-Strike
fl0m1151
Super Smash Bros
AZ_Axe95
Other Games
tarik_tv6434
Grubby5599
gofns3805
summit1g3783
DeMusliM415
Pyrionflax197
Fuzer 196
Dewaltoss11
ViBE5
Organizations
Other Games
EGCTV935
gamesdonequick774
StarCraft 2
angryscii 37
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 19 non-featured ]
StarCraft 2
• StrangeGG 58
• musti20045 14
• Dystopia_ 3
• IndyKCrew
• Migwel
• AfreecaTV YouTube
• sooper7s
• intothetv
• Kozan
• LaughNgamezSOOP
StarCraft: Brood War
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota2706
• Ler79
Other Games
• imaqtpie1667
• WagamamaTV502
• Shiphtur261
• tFFMrPink 14
Upcoming Events
Sparkling Tuna Cup
11h 36m
RSL Revival
11h 36m
Reynor vs sOs
Maru vs Ryung
Kung Fu Cup
13h 36m
Cure vs herO
Reynor vs TBD
WardiTV Korean Royale
13h 36m
BSL 21
21h 36m
JDConan vs Semih
Dragon vs Dienmax
Tech vs NewOcean
TerrOr vs Artosis
IPSL
21h 36m
Dewalt vs WolFix
eOnzErG vs Bonyth
Replay Cast
1d
Wardi Open
1d 13h
Monday Night Weeklies
1d 18h
WardiTV Korean Royale
2 days
[ Show More ]
BSL: GosuLeague
2 days
The PondCast
3 days
Replay Cast
4 days
RSL Revival
4 days
BSL: GosuLeague
4 days
RSL Revival
5 days
WardiTV Korean Royale
5 days
RSL Revival
6 days
WardiTV Korean Royale
6 days
IPSL
6 days
Julia vs Artosis
JDConan vs DragOn
Liquipedia Results

Completed

Proleague 2025-11-14
Stellar Fest: Constellation Cup
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
CSCL: Masked Kings S3
SLON Tour Season 2
RSL Revival: Season 3
META Madness #9
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
BLAST Open Fall 2025

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 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...

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.