• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 00:35
CEST 06:35
KST 13:35
  • 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
[ASL21] Ro16 Preview Pt2: All Star10Team Liquid Map Contest #22 - The Finalists16[ASL21] Ro16 Preview Pt1: Fresh Flow9[ASL21] Ro24 Preview Pt2: News Flash10[ASL21] Ro24 Preview Pt1: New Chaos0
Community News
2026 GSL Season 1 Qualifiers14Maestros of the Game 2 announced82026 GSL Tour plans announced14Weekly Cups (April 6-12): herO doubles, "Villains" prevail1MaNa leaves Team Liquid24
StarCraft 2
General
Maestros of the Game 2 announced Team Liquid Map Contest #22 - The Finalists MaNa leaves Team Liquid 2026 GSL Tour plans announced Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool
Tourneys
2026 GSL Season 1 Qualifiers Sparkling Tuna Cup - Weekly Open Tournament GSL CK: More events planned pending crowdfunding RSL Revival: Season 5 - Qualifiers and Main Event Master Swan Open (Global Bronze-Master 2)
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
Mutation # 522 Flip My Base The PondCast: SC2 News & Results Mutation # 521 Memorable Boss Mutation # 520 Moving Fees
Brood War
General
ASL21 General Discussion Pros React To: ASL S21, Ro.16 Group C BGH Auto Balance -> http://bghmmr.eu/ [TOOL] Starcraft Chat Translator Data needed
Tourneys
[ASL21] Ro16 Group C [ASL21] Ro16 Group D [Megathread] Daily Proleagues [ASL21] Ro16 Group B
Strategy
What's the deal with APM & what's its true value Simple Questions, Simple Answers Any training maps people recommend? Fighting Spirit mining rates
Other Games
General Games
Diablo IV Nintendo Switch Thread Dawn of War IV Starcraft Tabletop Miniature Game General RTS Discussion Thread
Dota 2
The Story of Wings Gaming
League of Legends
G2 just beat GenG in First stand
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 Five o'clock TL Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Canadian Politics Mega-thread Russo-Ukrainian War Thread YouTube Thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread McBoner: A hockey love story Formula 1 Discussion Cricket [SPORT]
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Sexual Health Of Gamers
TrAiDoS
lurker extra damage testi…
StaticNine
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2073 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 Ireland26667 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
Portugal3293 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 Ireland26667 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
Replay Cast
00:00
2026 GSL Season 1: Qualifiers
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RuFF_SC2 196
Nina 104
StarCraft: Brood War
GuemChi 6139
ProTech141
yabsab 38
Backho 25
soO 16
Icarus 3
Dota 2
NeuroSwarm129
League of Legends
JimRising 731
Counter-Strike
summit1g8822
tarik_tv3692
Coldzera 1916
Fnx 627
Super Smash Bros
hungrybox1359
Other Games
C9.Mang0485
WinterStarcraft331
Maynarde98
Trikslyr28
Organizations
Other Games
gamesdonequick1096
BasetradeTV155
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 16 non-featured ]
StarCraft 2
• practicex 34
• intothetv
• AfreecaTV YouTube
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• RayReign 36
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Rush992
• Lourlo875
• Stunt298
Other Games
• Scarra2158
Upcoming Events
The PondCast
5h 25m
KCM Race Survival
5h 25m
WardiTV Map Contest Tou…
6h 25m
Gerald vs herO
Clem vs Cure
ByuN vs Solar
Rogue vs MaxPax
ShoWTimE vs TBD
OSC
10h 25m
CranKy Ducklings
19h 25m
Escore
1d 5h
RSL Revival
1d 12h
Replay Cast
1d 19h
WardiTV Map Contest Tou…
2 days
Universe Titan Cup
2 days
Rogue vs Percival
[ Show More ]
Ladder Legends
2 days
uThermal 2v2 Circuit
2 days
BSL
2 days
Sparkling Tuna Cup
3 days
WardiTV Map Contest Tou…
3 days
Ladder Legends
3 days
BSL
3 days
Replay Cast
3 days
Replay Cast
4 days
Wardi Open
4 days
Afreeca Starleague
4 days
Soma vs hero
Monday Night Weeklies
4 days
Replay Cast
4 days
Afreeca Starleague
5 days
Leta vs YSC
Replay Cast
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2026-04-22
RSL Revival: Season 4
NationLESS Cup

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
KCM Race Survival 2026 Season 2
StarCraft2 Community Team League 2026 Spring
WardiTV TLMC #16
Nations Cup 2026
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
PGL Cluj-Napoca 2026
IEM Kraków 2026

Upcoming

Escore Tournament S2: W4
Acropolis #4
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
Maestros of the Game 2
2026 GSL S2
RSL Revival: Season 5
2026 GSL S1
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
TLPD

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

Advertising | Privacy Policy | Terms Of Use | Contact Us

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