• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 05:05
CET 11:05
KST 19:05
  • 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
ByuL: The Forgotten Master of ZvT28Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8
Community News
Weekly Cups (Feb 16-22): MaxPax doubles0Weekly Cups (Feb 9-15): herO doubles up2ACS replaced by "ASL Season Open" - Starts 21/0247LiuLi Cup: 2025 Grand Finals (Feb 10-16)46Weekly Cups (Feb 2-8): Classic, Solar, MaxPax win2
StarCraft 2
General
Nexon's StarCraft game could be FPS, led by UMS maker ByuL: The Forgotten Master of ZvT How do you think the 5.0.15 balance patch (Oct 2025) for StarCraft II has affected the game? Oliveira Would Have Returned If EWC Continued Behind the Blue - Team Liquid History Book
Tourneys
RSL Season 4 announced for March-April WardiTV Team League Season 10 The Dave Testa Open #11 Sparkling Tuna Cup - Weekly Open Tournament PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar)
Strategy
Custom Maps
Publishing has been re-enabled! [Feb 24th 2026] Map Editor closed ?
External Content
Mutation # 514 Ulnar New Year The PondCast: SC2 News & Results Mutation # 513 Attrition Warfare Mutation # 512 Overclocked
Brood War
General
Soma Explains: JD's Unrelenting Aggro vs FlaSh ACS replaced by "ASL Season Open" - Starts 21/02 BGH Auto Balance -> http://bghmmr.eu/ CasterMuse Youtube TvZ is the most complete match up
Tourneys
Escore Tournament StarCraft Season 1 [Megathread] Daily Proleagues [LIVE] [S:21] ASL Season Open Day 1 Small VOD Thread 2.0
Strategy
Fighting Spirit mining rates Simple Questions, Simple Answers Zealot bombing is no longer popular?
Other Games
General Games
Battle Aces/David Kim RTS Megathread Path of Exile Nintendo Switch Thread Beyond All Reason New broswer game : STG-World
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
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread
Community
General
US Politics Mega-thread Mexico's Drug War Canadian Politics Mega-thread Russo-Ukrainian War Thread Ask and answer stupid questions here!
Fan Clubs
The IdrA Fan Club The herO Fan Club!
Media & Entertainment
[Req][Books] Good Fantasy/SciFi books [Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion TL MMA Pick'em Pool 2013
World Cup 2022
Tech Support
Laptop capable of using Photoshop Lightroom?
TL Community
The Automated Ban List
Blogs
YOUTUBE VIDEO
XenOsky
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Inside the Communication of …
TrAiDoS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2043 users

The Big Programming Thread - Page 609

Forum Index > General Forum
Post a Reply
Prev 1 607 608 609 610 611 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.
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
March 30 2015 17:39 GMT
#12161
On March 30 2015 22:26 Acrofales wrote:
Honestly, if you have no clue where to start when programming A*, you probably should be staying far away from studying CS...

1. As algorithms go, A* is a simple one. If you don't understand it, CS is not for you.
2. There are literally thousands of explanations of it, pseudocode implementations, and actual implementations in any programming language you can imagine. If you don't know how to find them, CS is not for you (or well, any other study, because some healthy dose of Google knowledge is necessary for most stuff nowadays)


"Only a sith deals in absolutes".
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
March 30 2015 17:47 GMT
#12162
On March 31 2015 01:28 solidbebe wrote:
Show nested quote +
On March 31 2015 00:35 Prillan wrote:
On March 30 2015 22:26 Acrofales wrote:
Honestly, if you have no clue where to start when programming A*, you probably should be staying far away from studying CS...

1. As algorithms go, A* is a simple one. If you don't understand it, CS is not for you.
2. There are literally thousands of explanations of it, pseudocode implementations, and actual implementations in any programming language you can imagine. If you don't know how to find them, CS is not for you (or well, any other study, because some healthy dose of Google knowledge is necessary for most stuff nowadays)

What the?! What kind of answer is that? You basically said: "If you don't know how to do it, you shouldn't try to learn it."

What he actually said (or meant at least, and what I got from it): "If you don't know how to learn how to do it, you shouldn't do it".

Which is generally a statement I agree with.

Learn how to learn how to do it.
That actually should be a course at every university.
If you have a good reason to disagree with the above, please tell me. Thank you.
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
March 30 2015 19:28 GMT
#12163
On March 31 2015 02:47 spinesheath wrote:
Show nested quote +
On March 31 2015 01:28 solidbebe wrote:
On March 31 2015 00:35 Prillan wrote:
On March 30 2015 22:26 Acrofales wrote:
Honestly, if you have no clue where to start when programming A*, you probably should be staying far away from studying CS...

1. As algorithms go, A* is a simple one. If you don't understand it, CS is not for you.
2. There are literally thousands of explanations of it, pseudocode implementations, and actual implementations in any programming language you can imagine. If you don't know how to find them, CS is not for you (or well, any other study, because some healthy dose of Google knowledge is necessary for most stuff nowadays)

What the?! What kind of answer is that? You basically said: "If you don't know how to do it, you shouldn't try to learn it."

What he actually said (or meant at least, and what I got from it): "If you don't know how to learn how to do it, you shouldn't do it".

Which is generally a statement I agree with.

Learn how to learn how to do it.
That actually should be a course at every university.


Course 101: Google-Fu basics
Course 102: Stack overflow for beginners

After that, you are basically a full programmer :p
fmod
Profile Blog Joined November 2013
Cayman Islands330 Posts
March 30 2015 20:25 GMT
#12164
Try doing Dijkstra on paper to get the hang of it..It's a very obvious and intuitive algorithm. Then move on to A*, which is very similar but using the heuristic function to select the next node.
I don't particularly like you.
Khalum
Profile Joined September 2010
Austria831 Posts
Last Edited: 2015-03-30 22:05:26
March 30 2015 22:04 GMT
#12165
On March 31 2015 02:39 darkness wrote:
Show nested quote +
On March 30 2015 22:26 Acrofales wrote:
Honestly, if you have no clue where to start when programming A*, you probably should be staying far away from studying CS...

1. As algorithms go, A* is a simple one. If you don't understand it, CS is not for you.
2. There are literally thousands of explanations of it, pseudocode implementations, and actual implementations in any programming language you can imagine. If you don't know how to find them, CS is not for you (or well, any other study, because some healthy dose of Google knowledge is necessary for most stuff nowadays)


"Only a sith deals in absolutes".


Oh, the irony..
Manit0u
Profile Blog Joined August 2004
Poland17671 Posts
March 30 2015 23:07 GMT
#12166
Relevant:

http://thecodinglove.com/post/40465759870/when-i-find-a-solution-without-using-google
Time is precious. Waste it wisely.
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
March 31 2015 02:54 GMT
#12167
On March 31 2015 07:04 Khalum wrote:
Show nested quote +
On March 31 2015 02:39 darkness wrote:
On March 30 2015 22:26 Acrofales wrote:
Honestly, if you have no clue where to start when programming A*, you probably should be staying far away from studying CS...

1. As algorithms go, A* is a simple one. If you don't understand it, CS is not for you.
2. There are literally thousands of explanations of it, pseudocode implementations, and actual implementations in any programming language you can imagine. If you don't know how to find them, CS is not for you (or well, any other study, because some healthy dose of Google knowledge is necessary for most stuff nowadays)


"Only a sith deals in absolutes".


Oh, the irony..


What do you mean? Do you refer to my signature?
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
Last Edited: 2015-03-31 05:51:34
March 31 2015 05:51 GMT
#12168
No like it's ironic to say only sith deals in absolutes because you're using "only" as well, implying you're sith.
There is no one like you in the universe.
KurtistheTurtle
Profile Blog Joined December 2008
United States1966 Posts
March 31 2015 06:03 GMT
#12169
Are you calling Obi-Wan a Sith!??! Gloves off, lets take this outside!!
“Reject your sense of injury and the injury itself disappears."
JD.
Profile Joined September 2014
Australia250 Posts
March 31 2015 06:42 GMT
#12170
I don't disagree with what you guys are saying about my asking for help, just so we're clear its not so much that I don't understand the algorithm but that im having issues implementing in the manner required of my assignment.
As I said I thought it could be a bit of a reach anyway in that it was pretty close to asking for my work to be done for me (though that wasn't my intention) so don't worry about it, continue thread
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
Last Edited: 2015-03-31 08:16:42
March 31 2015 07:04 GMT
#12171
There's a lot of moments when I ask a question and then I ask myself or my friend asks me, why don't I just search the answer? And then I'm like, yeah why didn't I..... and I think you'll have a lot of trouble programming if you can't do most of the searching yourself.

But then there's also the problem where I don't ask my friends for help enough, because a lot of the time the problems can and should be solved by yourself because that's how you actually learn. It's really hard to differentiate being blocked by self-solvable problems or not, and you'll see a lot of times inexperienced programmers ask for help way too early. And as an inexperienced programmer myself it's extremely hard to see when that's the case or not until way later.

It's actually a cool lesson to learn when you're with a good team with an enterprise level code base. How do you code your code in a way that's not only readable, committable, but also searchable. That's why you have for example, not naming conventions but purposeful naming conventions. That's why you have comments. So the purpose is expressed if someone needs to search for a code example. When you have a problem that you can just search through the code base immediately for a keyword and find a perfect example, you thank the hell out of whoever coded that for making your life so easy. Google is smarter, but you have to weave your query in a specific way once your problem is non-trivial, whereas code search is pretty much spot on. I think Github/any public code hosting site would have a lot of direct code search potential even if they probably have way too much code to search quickly.

Sorry I like blogging so sometimes there's no real reason I type stuff here except to say programmy stuff :p

I also find it annoying when someone treats me like a junior when I feel like I know what I'm doing XD I know it's hard to tell though because I complain about problems a lot. I feel like I complain a lot though because I don't have anywhere else to vent at my code.
There is no one like you in the universe.
Invictus
Profile Blog Joined September 2009
Singapore2697 Posts
March 31 2015 07:35 GMT
#12172
As a newbie programmer with no prior knowledge in programming before entering university, this applies alot to me and my peers.. I've been having problems thinking of how to implement solutions and even if i know how it works it just boggles my mind how to implement them.
Lee Jaedong Fighting!
GwSC
Profile Joined December 2010
United States1997 Posts
March 31 2015 07:45 GMT
#12173
On March 31 2015 16:04 Blisse wrote:
There's a lot of moments when I ask a question and then I ask myself or my friend asks me, why don't I just search the answer? And then I'm like, yeah why didn't I..... and I think you'll have a lot of trouble programming if you can't do most of the searching yourself.

But then there's also the problem where I don't ask my friends for help enough, because a lot of the time the problems can and should be solved by yourself because that's how you actually learn. It's really hard to differentiate being blocked by self-solvable problems or not, and you'll see a lot of times inexperienced programmers ask for help way too early. And as an inexperienced programmer myself it's extremely hard to see when that's the case or not until way later.



Yeah, I'm still in school, but that's something I've had a hard time with figuring out - at what point do you stop trying to figure it all out on your own and ask someone/google to help move things along? I always end up feeling like I'm cheating myself out of something important if I don't get there completely on my own, like I am not learning as thoroughly as I would if I had struggled along for hours and hours on my own. At the same time I know that's probably an unrealistic way of thinking, and it's often not practical to work that way. Hopefully sometime soon I'll figure out the balance.
Manit0u
Profile Blog Joined August 2004
Poland17671 Posts
March 31 2015 08:28 GMT
#12174
On March 31 2015 16:45 GwSC wrote:
Show nested quote +
On March 31 2015 16:04 Blisse wrote:
There's a lot of moments when I ask a question and then I ask myself or my friend asks me, why don't I just search the answer? And then I'm like, yeah why didn't I..... and I think you'll have a lot of trouble programming if you can't do most of the searching yourself.

But then there's also the problem where I don't ask my friends for help enough, because a lot of the time the problems can and should be solved by yourself because that's how you actually learn. It's really hard to differentiate being blocked by self-solvable problems or not, and you'll see a lot of times inexperienced programmers ask for help way too early. And as an inexperienced programmer myself it's extremely hard to see when that's the case or not until way later.



Yeah, I'm still in school, but that's something I've had a hard time with figuring out - at what point do you stop trying to figure it all out on your own and ask someone/google to help move things along? I always end up feeling like I'm cheating myself out of something important if I don't get there completely on my own, like I am not learning as thoroughly as I would if I had struggled along for hours and hours on my own. At the same time I know that's probably an unrealistic way of thinking, and it's often not practical to work that way. Hopefully sometime soon I'll figure out the balance.


The thing is not to just google the solution, it is googling the best solution and then implementing it the right way.
Time is precious. Waste it wisely.
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
Last Edited: 2015-03-31 08:44:27
March 31 2015 08:42 GMT
#12175
On March 31 2015 14:51 Blisse wrote:
No like it's ironic to say only sith deals in absolutes because you're using "only" as well, implying you're sith.


Ah, thanks for clarifying. I didn't expect quote to be challenged.

On March 31 2015 16:45 GwSC wrote:
Show nested quote +
On March 31 2015 16:04 Blisse wrote:
There's a lot of moments when I ask a question and then I ask myself or my friend asks me, why don't I just search the answer? And then I'm like, yeah why didn't I..... and I think you'll have a lot of trouble programming if you can't do most of the searching yourself.

But then there's also the problem where I don't ask my friends for help enough, because a lot of the time the problems can and should be solved by yourself because that's how you actually learn. It's really hard to differentiate being blocked by self-solvable problems or not, and you'll see a lot of times inexperienced programmers ask for help way too early. And as an inexperienced programmer myself it's extremely hard to see when that's the case or not until way later.



Yeah, I'm still in school, but that's something I've had a hard time with figuring out - at what point do you stop trying to figure it all out on your own and ask someone/google to help move things along? I always end up feeling like I'm cheating myself out of something important if I don't get there completely on my own, like I am not learning as thoroughly as I would if I had struggled along for hours and hours on my own. At the same time I know that's probably an unrealistic way of thinking, and it's often not practical to work that way. Hopefully sometime soon I'll figure out the balance.


When you have little or no experience, google is that necessary substitute. Once you're an 'expert' at a topic, you may go without google.
Manit0u
Profile Blog Joined August 2004
Poland17671 Posts
Last Edited: 2015-03-31 09:18:13
March 31 2015 09:16 GMT
#12176
I guess that even if you're an expert you'll be using google from time to time just to double-check your solution

I remember that some of the questions during my job interview went along the lines of:

"How good are you with googling?" and "You're not a stranger to StackOverflow, are you?"
Time is precious. Waste it wisely.
Acrofales
Profile Joined August 2010
Spain18220 Posts
Last Edited: 2015-03-31 10:33:08
March 31 2015 10:06 GMT
#12177
On March 31 2015 15:42 JD. wrote:
I don't disagree with what you guys are saying about my asking for help, just so we're clear its not so much that I don't understand the algorithm but that im having issues implementing in the manner required of my assignment.
As I said I thought it could be a bit of a reach anyway in that it was pretty close to asking for my work to be done for me (though that wasn't my intention) so don't worry about it, continue thread


I may have been a bit harsh in my originl post, but there's a reason this type of question doesn't get answered on stack overflow. And only part of it is that the community is not there to do your homework for you.

If you know how A* works, can you write out a pseudocode algorithm for it? If you can, then where in that algorithm is it that you are getting stuck when implementing it in java?

As someone said earlier: can you implement Dijkstra's algorithm? That is a pretty good starting point to modify. All you need to change are the method for picking what node to expand, and the end condition (lots of people forget that the end condition for Dijkstra is simpler).

Also, what kind of datastructure are you using for your graph?
Cyx.
Profile Joined November 2010
Canada806 Posts
March 31 2015 10:37 GMT
#12178
On March 31 2015 18:16 Manit0u wrote:
I guess that even if you're an expert you'll be using google from time to time just to double-check your solution

I remember that some of the questions during my job interview went along the lines of:

"How good are you with googling?" and "You're not a stranger to StackOverflow, are you?"

Haha... I had one this year that was just 'so tell us what kind of resources you used to learn about X', stackoverflow was pretty high up on that list :D
iNsaNe-
Profile Joined January 2005
Finland5201 Posts
March 31 2015 11:43 GMT
#12179
On March 30 2015 22:26 Acrofales wrote:
Honestly, if you have no clue where to start when programming A*, you probably should be staying far away from studying CS...

1. As algorithms go, A* is a simple one. If you don't understand it, CS is not for you.
2. There are literally thousands of explanations of it, pseudocode implementations, and actual implementations in any programming language you can imagine. If you don't know how to find them, CS is not for you (or well, any other study, because some healthy dose of Google knowledge is necessary for most stuff nowadays)


Probably around 80-90 percent of the students that started studying CS in the university I went to (and later taught in basic programming courses) didn't have any prior background on programming. Should they just quit right away?

If that's a normal level assignment to implement the algorithm with Java and you have no idea where to start it's not a good sign, but it doesn't mean that you couldn't learn if you put enough effort to it or learn how to learn. Telling someone they should stay away from the field because they don't know how to solve that problem is ridiculous.
It takes a fool to remain sane.
enigmaticcam
Profile Blog Joined October 2010
United States280 Posts
March 31 2015 16:00 GMT
#12180
On March 12 2015 08:02 Zocat wrote:
Do you need to find the best solution (global optima) or a "good enough" solution (local optima)?

What is the rough user/job size? Hundreds, thousands, millions, unlimited?

Adding / removing rules depends on your rule complexity. Changing a rule can be easy (not working 3 days in a row), but adding a completely new rule might be complicated (user X doesn't like to do job Y, but he can do it if necessary).

If you don't need the global optima I would look into genetic algorithms. The fitness function sounds easy enough to implement with your set of rules and hard-rule breaking offspring can die off immediately.

Thanks for your suggesting of using a genetic algorithm. It works fantastically. At first it was slow - would take 15-30 minutes. But after doing some researching and implementing elitism, it now solves it in seconds, sometimes even less than a second. Thanks!
Prev 1 607 608 609 610 611 1032 Next
Please log in or register to reply.
Live Events Refresh
KCM Race Survival
10:00
Week 7
Kim Chul Min (afreeca) 101
LiquipediaDiscussion
PiG Sty Festival
10:00
Twitch Plays + Serral Holdout
MaNa vs TBD
Serral vs TBD
PiGStarcraft256
LiquipediaDiscussion
The PondCast
10:00
Episode 83
CranKy Ducklings2
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft256
SortOf 176
StarCraft: Brood War
Britney 32115
Calm 7773
Rain 2202
Sea 1702
Horang2 1558
Flash 983
Bisu 844
BeSt 368
Pusan 265
Jaedong 241
[ Show more ]
Stork 184
Mong 143
Soulkey 97
Light 77
ToSsGirL 73
ZerO 49
Sharp 40
Backho 32
sSak 28
Rush 19
Bale 19
Hm[arnc] 19
ZergMaN 19
IntoTheRainbow 18
Shinee 15
Purpose 15
Noble 14
GoRush 13
NaDa 12
Terrorterran 5
NotJumperer 5
sorry 5
Soma 0
Dota 2
XaKoH 632
NeuroSwarm107
XcaliburYe39
League of Legends
JimRising 431
Counter-Strike
olofmeister1729
Stewie2K1117
m0e_tv707
Other Games
ceh9672
C9.Mang0283
Happy270
crisheroes225
Mew2King107
Organizations
Other Games
gamesdonequick870
Counter-Strike
PGL377
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Gemini_19 24
• LUISG 22
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 2
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos1270
• Stunt479
Upcoming Events
Replay Cast
13h 56m
Korean StarCraft League
1d 16h
CranKy Ducklings
1d 23h
OSC
2 days
SC Evo Complete
2 days
DaveTesta Events
2 days
AI Arena Tournament
2 days
Replay Cast
2 days
Sparkling Tuna Cup
2 days
uThermal 2v2 Circuit
3 days
[ Show More ]
Replay Cast
3 days
Wardi Open
4 days
Monday Night Weeklies
4 days
Replay Cast
4 days
Replay Cast
5 days
Replay Cast
6 days
The PondCast
6 days
KCM Race Survival
6 days
Liquipedia Results

Completed

Proleague 2026-02-22
LiuLi Cup: 2025 Grand Finals
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
Acropolis #4 - TS5
Jeongseon Sooper Cup
Spring Cup 2026
WardiTV Winter 2026
PiG Sty Festival 7.0
Nations Cup 2026
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025

Upcoming

[S:21] ASL SEASON OPEN 2nd Round
[S:21] ASL SEASON OPEN 2nd Round Qualifier
ASL Season 21: Qualifier #1
ASL Season 21: Qualifier #2
ASL Season 21
Acropolis #4 - TS6
Acropolis #4
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
RSL Revival: Season 4
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
FISSURE Playground #3
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
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.