• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 16:01
CEST 22:01
KST 05:01
  • 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
[ASL22] Ro24 Preview: Siren's Call8[ASL22] Ro24 Preview: Summer's End9Serral wins HomeStory Cup 2915Serral wins Maestros of the Game 244ByuL, and the Limitations of Standard Play3
Community News
Stellar Fest TWO the Moon (Dec 16-20)8Weekly Cups (August 24-30): Patches' balance mod takes over2New 3v3 BGH Ladder (and more) on ShieldBattery!40Weekly Cups (August 17-23): Zerg dominate the week6Weekly Cups (August 10-16): SHIN doubles5
StarCraft 2
General
Nexon wins bid to develop StarCraft IP content, distribute Overwatch mobile game SC4ALL: II Winner Will Earn a Spot at HSC 30! Balance hotfix patch 5.0.16b (July 16) September World Ranking: herO leads, Serral climbs Weekly Cups (August 10-16): SHIN doubles
Tourneys
IntoTheTV X SOOP SC2 League : Weekly & Monthly SC2 INu's Battles#20 [BO.9] 2026 GSTL Announcement Stellar Fest TWO the Moon (Dec 16-20) PIG STY FESTIVAL 8.0! (13 - 23 August)
Strategy
[G] Having the right mentality to improve
Custom Maps
Nexus Wars 2021 GUIDE [M] (2) Industrial Park
External Content
Mutation # 541 Binary Choice The PondCast: SC2 News & Results Mutation # 540 Dodge This Mutation # 539 Thunder Dome
Brood War
General
BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ XUN appreciation thread ASL22 General Discussion Making an Online Broodwar Manager Game
Tourneys
KCM Race Survival 2026 Season 3 [Megathread] Daily Proleagues BSL LAN Party - Kraków 29-30 August - OPEN SIGNUPS [ASL22] Ro24 Group F
Strategy
Replay Review Process - What do you do? Game Theory for Starcraft Odyssey Mineral Stack Saturation Fighting Spirit mining rates
Other Games
General Games
Diablo IV EVE Corporation Nintendo Switch Thread [Maplestory Hardcore] Let's Play~!! General RTS Discussion Thread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
[TL LoL EUW IHs] Teemo shall perish TSM pausing esports and CLG Dead
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Power Rank TL Mafia Community Thread NeO.D_StephenKing vs This Guy From 1 Million Dance
Community
General
Things Aren’t Peaceful in Palestine US Politics Mega-thread Artificial Intelligence Thread Russo-Ukrainian War Thread Canadian Politics Mega-thread
Fan Clubs
MarineLorD Fan Club The Creator Fan Club The ShoWTimE Fan Club
Media & Entertainment
Movie Discussion! Anime Discussion Thread
Sports
Football (Soccer) Thread TeamLiquid Health and Fitness Initiative For 2023 MLB/Baseball 2023 NBA General Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Northern Ireland Global Starcraft
Blogs
Regacy Esports: The Bh…
regacyesports
Violent Games and Crime Rate…
TrAiDoS
LOCKPICKING NOOB
LUCKY_NOOB
Cathedral Of CS And NY pizza a…
FuDDx
Please support my new stand…
Peanutsc
Customize Sidebar...

Website Feedback

Closed Threads



Active: 4775 users

The Big Programming Thread - Page 388

Forum Index > General Forum
Post a Reply
Prev 1 386 387 388 389 390 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.
WombaT
Profile Blog Joined May 2010
Northern Ireland27313 Posts
November 08 2013 18:35 GMT
#7741
Been on the unemployment scrap heap for a while, not sure if I'm up for going back into tertiary education again (disliked it the last time).

Literally all the friends I know who did Comp Sci, even the self-confessed mediocre programmers have gone straight into employment, so that is tempting me somewhat.

I'd need to get cracking up my knowledge base in the interim before applying IMO, both for getting into courses but also just because it's be a useful skill to have in life.

What would be a good entry point for the layman into getting more into programming, comp architecture and the like?
'You'll always be the cuddly marsupial of my heart, despite the inherent flaws of your ancestry' - Squat
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
November 08 2013 20:21 GMT
#7742
On November 09 2013 03:35 Wombat_NI wrote:
Been on the unemployment scrap heap for a while, not sure if I'm up for going back into tertiary education again (disliked it the last time).

Literally all the friends I know who did Comp Sci, even the self-confessed mediocre programmers have gone straight into employment, so that is tempting me somewhat.

I'd need to get cracking up my knowledge base in the interim before applying IMO, both for getting into courses but also just because it's be a useful skill to have in life.

What would be a good entry point for the layman into getting more into programming, comp architecture and the like?


The best entry point would be to not do it for the money.

Being a programmer is not just about learning some computer stuff, it requires passion for the subject since you constantly have to learn new stuff in your spare time, even 20 years later. As i like to say: Programmers are born, not made. Either you already know your stuff from learning it on your own or you aren't fit for the constant learning. A friend of my family who was an interim manager for an IT company was very suprised when he experienced that programmers actually prefer free training to enhance their skills to earning more money, but that is just how you have to be if you want to be a programmer.

Also, tons of people think the same way you do, which means the job market is overcrowded with hundreds of bad programmers applying for the same jobs, meaning it's not a safe way to get a job. There are lots of other routes you can take that can offer you better job options.
Sub40APM
Profile Joined August 2010
6336 Posts
November 08 2013 20:31 GMT
#7743
On November 09 2013 05:21 Morfildur wrote:
Show nested quote +
On November 09 2013 03:35 Wombat_NI wrote:
Been on the unemployment scrap heap for a while, not sure if I'm up for going back into tertiary education again (disliked it the last time).

Literally all the friends I know who did Comp Sci, even the self-confessed mediocre programmers have gone straight into employment, so that is tempting me somewhat.

I'd need to get cracking up my knowledge base in the interim before applying IMO, both for getting into courses but also just because it's be a useful skill to have in life.

What would be a good entry point for the layman into getting more into programming, comp architecture and the like?

. A friend of my family who was an interim manager for an IT company was very suprised when he experienced that programmers actually prefer free training to enhance their skills to earning more money,

they wanted to enhance their skills because they know how short the life of a programmer can be, so the short cash infusion + possibility of being outdated and losing your job seems a much worse deal than being in line with modern standards. no surprise there, and nothing to do with some kind of innate 'iam born to program', just a rational understanding of how computer programmers can be devastated by businesses that view them as -- for the most part -- interchangeable parts.
Rotodyne
Profile Blog Joined July 2005
United States2263 Posts
November 08 2013 23:29 GMT
#7744
Hey guys, over the last year I have been teaching myself a bunch of web programming stuff (php, javascript, html, css), but I still really just use a programming technique called "get shit done", in the short term this has been useful, but I usually just begin coding projects and figure it out as I go along. Specifically I know I need to learn OO programming.

My question is if I should use PHP to learn OO, or should I use something else? I have heard that PHP isn't a good way to learn because objects were added as sort of an afterthought. But what do I know.
I can only play starcraft when I am shit canned. IPXZERG is a god.
RoyGBiv_13
Profile Blog Joined August 2010
United States1275 Posts
November 08 2013 23:42 GMT
#7745
On November 09 2013 08:29 Rotodyne wrote:
Hey guys, over the last year I have been teaching myself a bunch of web programming stuff (php, javascript, html, css), but I still really just use a programming technique called "get shit done", in the short term this has been useful, but I usually just begin coding projects and figure it out as I go along. Specifically I know I need to learn OO programming.

My question is if I should use PHP to learn OO, or should I use something else? I have heard that PHP isn't a good way to learn because objects were added as sort of an afterthought. But what do I know.


If you want to learn OO, pick a language that is based around objects, rather than "objects-as-a-feature". Otherwise, you're get shit done technique will make object oriented programming feel useless. Java comes to mind, and should be pretty easy to conquer in a few days since it really does hold your hand.
Any sufficiently advanced technology is indistinguishable from magic
Birdie
Profile Blog Joined August 2007
New Zealand4438 Posts
November 08 2013 23:42 GMT
#7746
On November 09 2013 03:35 Wombat_NI wrote:
Been on the unemployment scrap heap for a while, not sure if I'm up for going back into tertiary education again (disliked it the last time).

Literally all the friends I know who did Comp Sci, even the self-confessed mediocre programmers have gone straight into employment, so that is tempting me somewhat.

I'd need to get cracking up my knowledge base in the interim before applying IMO, both for getting into courses but also just because it's be a useful skill to have in life.

What would be a good entry point for the layman into getting more into programming, comp architecture and the like?

I've seen a bunch of people who try to study programming but don't really care about it other than doing it for the money, they're usually worse programmers and sometimes can't complete the courses. Having said that, I do think that if you work hard at it you'll be fine, even if you're not "passionate" about it. But don't do it half-heartedly.
Red classic | A butterfly dreamed he was Zhuangzi | 4.5k, heading to 5k as support!
misirlou
Profile Joined June 2010
Portugal3316 Posts
November 08 2013 23:43 GMT
#7747
On November 09 2013 08:29 Rotodyne wrote:
Hey guys, over the last year I have been teaching myself a bunch of web programming stuff (php, javascript, html, css), but I still really just use a programming technique called "get shit done", in the short term this has been useful, but I usually just begin coding projects and figure it out as I go along. Specifically I know I need to learn OO programming.

My question is if I should use PHP to learn OO, or should I use something else? I have heard that PHP isn't a good way to learn because objects were added as sort of an afterthought. But what do I know.

Although not the best OOP language, PHP has the main features of OOP so you can start learning with what it's available there. If you do plan in "getting shit done" with PHP and other web languages, there's no real reason to go learn another language to learn OOP.
AFAIK PHP has dynamic dispatching, abstraction, polymorphism and inheritance, so you're good to go.
Nyxisto
Profile Joined August 2010
Germany6287 Posts
November 08 2013 23:51 GMT
#7748
For learning OOP, i'd go with Java, as it's generally pretty simple to learn, very useful, and highly object-oriented.
Tobberoth
Profile Joined August 2010
Sweden6375 Posts
November 09 2013 00:00 GMT
#7749
I would recommend Java or C# if you want to learn OO, possibly Ruby if you're more into that. It's nice to go with a language which more or less forces you to think in terms of classes and objects if you want to use the standard library.
WombaT
Profile Blog Joined May 2010
Northern Ireland27313 Posts
November 09 2013 05:31 GMT
#7750
Cheers for the responses all, useful food for thought
'You'll always be the cuddly marsupial of my heart, despite the inherent flaws of your ancestry' - Squat
Orome
Profile Blog Joined June 2004
Switzerland11984 Posts
Last Edited: 2013-11-09 08:38:45
November 09 2013 08:37 GMT
#7751
Really hoping someone can help me out, I'm growing very desperate. Been up all night working on an assignment. The most frustrating thing is that it's not a problem with coding, it's just a general lack of knowledge of the toolkit I'm supposed to be using.

I'm trying to get a data import from a .csv running in GWT. Now, I realise in a proper GWT application that would mean I would have to host the file since GWT doesn't have client-side IO access, but it was specifically stated that for this assignment, actually hosting the application (and the .csv file) wasn't necessary yet. The way I understood it all we have to do for the moment is getting it to run in development mode (which afaik is still Java code?) and that we could basically treat the import the same way you would do it in a basic Java application. Is this possible? Ie. is it possible to use java.util.IO functionality (or libraries like OpenCSV) in GWT as long as it just needs to run in development mode? If so, how would I get these libraries to work? Atm, while the import works perfectly fine in Java terms, but I get errors like 'No source code is available for type.java.io.FileReader; did you forget to inherit a required module?' every time I try to run the whole thing in development mode.

I've been googling for hours without the slightest success. Please help, I'm turning more insane by the minute.
On a purely personal note, I'd like to show Yellow the beauty of infinitely repeating Starcraft 2 bunkers. -Boxer
phar
Profile Joined August 2011
United States1080 Posts
November 09 2013 19:41 GMT
#7752
When you say "csv import," do you mean that you want to build a web page that uploads csv input from the user and does something with it?

If you're talking about the other way around, using dev mode (or even super dev mode) sounds like a complete hack to me. java.io is mostly not emulated in GWT:

http://www.gwtproject.org/doc/latest/RefJreEmulation.html#Package_java_io


It would be easier to help if we had a very clear idea of what you're trying to accomplish. What do you mean by "csv import."? Where is the csv file, where does it have to go?
Who after all is today speaking about the destruction of the Armenians?
Orome
Profile Blog Joined June 2004
Switzerland11984 Posts
November 10 2013 06:15 GMT
#7753
lol, I have this tendency to keep trying and trying to get something running even when it's obvious I should just have gone to bed 10 hours ago. Yesterday was definitely one of these times. I went to sleep 2 hours after posting the message and fell into some sort of coma sleep for 17 hours. :p

Anyway, yeah I realise that wasn't a very clear explanation of what I'm trying to do. I'm not trying to read csv input from the user. All I want to do is read the csv file that holds my data for the program when the program loads (onModuleLoad should call the import method I suppose). It then gets read into a data structure.
On a purely personal note, I'd like to show Yellow the beauty of infinitely repeating Starcraft 2 bunkers. -Boxer
Rotodyne
Profile Blog Joined July 2005
United States2263 Posts
November 10 2013 06:26 GMT
#7754
Thanks for the responses guys, I appreciate it.
I can only play starcraft when I am shit canned. IPXZERG is a god.
bangsholt
Profile Joined June 2011
Denmark138 Posts
November 10 2013 10:10 GMT
#7755
@Orome:

Are you not overthinking this very much? I mean... Just put up the file together with your project and request it using a RequestBuilder - then you get it back as a string and then do your parsing on it.
Orome
Profile Blog Joined June 2004
Switzerland11984 Posts
November 10 2013 10:43 GMT
#7756
I'm sure I'm overthinking it, the problem's really that I have absolutely no knowledge on GWT and the few tutorials I've found online haven't helped.

Ok, so if I can just do it with RequestBuilder, a few dumb questions: Where should the .csv file be stored? In the war folder? What package should my code for the import go? server or client?
On a purely personal note, I'd like to show Yellow the beauty of infinitely repeating Starcraft 2 bunkers. -Boxer
bangsholt
Profile Joined June 2011
Denmark138 Posts
November 10 2013 11:43 GMT
#7757
Read up on how you request JSON in GWT. I don't see why you can't do the same with a CSV file - it should be on the client side. You just put the file where you have all your compiled GWT files.

Right, so you're in development mode. Well, I suppose you still have somewhere you put the html files - put the CSV there then.
klo8
Profile Joined August 2010
Austria1960 Posts
Last Edited: 2013-11-10 15:23:34
November 10 2013 13:08 GMT
#7758
Hi!

I'm writing a simple raytracer in Scala right now and I'm in the process of making it multi-threaded and parallelized. I have the code here if anyone wants to take a look. My approach is to use Akka actors (basically threads with no shared mutable state and communicating using messages) to distribute the work out to multiple cores. Right now, I have 4 actors (because my PC has 4 cores) and I want to do the following when the render() method of the ParallelRayTracer is called:
1. Create 4 actors
2. Send each actor a RenderJob message that consists of the scene that he should render and which part of the output image he should write to. When I do this, I get a list of 4 Futures that consist of a RenderResult which has the rendered data (as an Array[Color]) and which part of the image that is.
3. Accumulate the partial results into one big Array[Color] and then return it, all asynchronously. (meaning wrapped in a Future, so the return value of the function is actually Future[Array[Color]])

The third part is where I'm having trouble. From sending the RenderJob messages, I get back a Seq[Future[RenderResult]]], so that's a list of results each wrapped in a Future. Right now, I just wait for each Future to finish by looping over the Seq and blocking until the result is done, which works, but it's ugly and makes the UI unresponsive during rendering. What I want to do, is transform the list of futures in some way that yields me a Future[Array[Color]] in the end (the big array consisting of the whole image). I've played around with Future.map, flatMap and for-comprehensions but I always get some weird type mismatch errors from the compiler. If anyone has experience with this sort of thing, help would be really appreciated.

edit: Alright, I figured it out. The Future object has a bunch of very useful methods for processing lists of Futures. In my case, it turned out to be Future.traverse and my solution turned out to be a one-liner:
Future.traverse(futures)(_.map(_.data)).map(_.flatten.toArray)

"futures" being the Seq[Future[RenderResult]] and "data" being the image data from the RenderResult
This post is clearly not a hurr, as you can see from the graph, the durr never intersects with the derp.
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
November 10 2013 13:28 GMT
#7759
If a class extends (inherits) one from Java API, do I need to represent that on a class diagram? E.g. if a class extends Thread.
Orome
Profile Blog Joined June 2004
Switzerland11984 Posts
November 10 2013 15:46 GMT
#7760
On November 10 2013 20:43 bangsholt wrote:
Read up on how you request JSON in GWT. I don't see why you can't do the same with a CSV file - it should be on the client side. You just put the file where you have all your compiled GWT files.

Right, so you're in development mode. Well, I suppose you still have somewhere you put the html files - put the CSV there then.


Thanks for the tips. I'm not really much closer, I really just don't know enough about any of this (first time I'm doing anything that's not just a simple console output program), I'll just leave it be for the moment.
On a purely personal note, I'd like to show Yellow the beauty of infinitely repeating Starcraft 2 bunkers. -Boxer
Prev 1 386 387 388 389 390 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 2h 29m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 543
SpeCial 83
BRAT_OK 80
MindelVK 18
JuggernautJason9
StarCraft: Brood War
Shuttle 984
Dewaltoss 157
White-Ra 114
Pusan 43
Sexy 40
Counter-Strike
fl0m1551
Other Games
Liquid`RaSZi2030
KnowMe267
ArmadaUGS185
IndyStarCraft 127
RotterdaM110
Trikslyr46
Mew2King40
ToD35
Organizations
Other Games
BasetradeTV48
[ Show 16 non-featured ]
StarCraft 2
• Berry_CruncH189
• Reevou 12
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• Migwel
StarCraft: Brood War
• Michael_bg 6
• Pr0nogo 3
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV829
League of Legends
• TFBlade952
Other Games
• imaqtpie1163
• Shiphtur293
Upcoming Events
OSC
2h 29m
IntoTheTV X SOOP
14h 59m
CranKy Ducklings
1d 13h
Big Brain Bouts
1d 13h
Garitos vs ArT
Lambo vs Percival
TriGGeR vs ByuN
Sparkling Tuna Cup
2 days
OSC
2 days
Shopify Rebellion Sundays
2 days
Mixu vs TBD
Spirit vs TBD
Clem vs TBD
Patches Events
2 days
Afreeca Starleague
3 days
Soma vs Shuttle
BeSt vs Rush
WardiTV Weekly
3 days
[ Show More ]
Afreeca Starleague
4 days
Leta vs ggaemo
Jaedong vs Queen
GSL
4 days
PiGosaur Cup
5 days
Kung Fu Cup
5 days
Replay Cast
6 days
The PondCast
6 days
Liquipedia Results

Completed

Proleague 2026-09-02
PiG Sty Festival 8.0
Light Tournament 2026

Ongoing

KCM Race Survival 2026 Season 3
K-JUNGMAN
ASL Season 22
Super Anchor Qualifying S3
CSL 2026 AUTUMN (S22)
RSL Revival: Season 6
Calamity Invitational
Big Dog Cup 2026 Div 1
BLAST Open Fall 2026
Esports World Cup 2026
Esports World Cup 2026: LCQ
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026

Upcoming

Acropolis #5
Acropolis #5 - TRS
Escore Tournament S3: King of Kings
Blizzard Classic Cup 2026
Acropolis #5 - GSA
Acropolis #5 - GSB
Acropolis #5 - GSC
HSC XXX
Stellar Fest 2: Lunar Cup
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
RSL Offline Finals
BLAST Rivals Fall 2026
IEM Beijing 2026
Stake Ranked Episode 5
PGL Masters Bucharest 2026
1win Private Club #2
Thunderpick World Champ. '26
ESL Pro League Season 24
Stake Ranked Episode 4
1win Private Club #1
Logitech G Play Connect 2026
SL StarSeries Fall 2026
FISSURE Playground #3
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.