• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 23:15
CET 05:15
KST 13:15
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2BGE Stara Zagora 2026 announced15[BSL21] Ro.16 Group Stage (C->B->A->D)4Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win3RSL Season 3: RO16 results & RO8 bracket13
StarCraft 2
General
BGE Stara Zagora 2026 announced Weekly Cups (Nov 24-30): MaxPax, Clem, herO win SC2 Proleague Discontinued; SKT, KT, SGK, CJ disband Information Request Regarding Chinese Ladder SC: Evo Complete - Ranked Ladder OPEN ALPHA
Tourneys
$5,000+ WardiTV 2025 Championship Constellation Cup - Main Event - Stellar Fest RSL Revival: Season 3 Tenacious Turtle Tussle [Alpha Pro Series] Nice vs Cure
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress Mutation # 500 Fright night Mutation # 499 Chilling Adaptation
Brood War
General
Which season is the best in ASL? [ASL20] Ask the mapmakers — Drop your questions BW General Discussion FlaSh's Valkyrie Copium BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[Megathread] Daily Proleagues [BSL21] RO16 Group B - Sunday 21:00 CET [BSL21] RO16 Group C - Saturday 21:00 CET Small VOD Thread 2.0
Strategy
Game Theory for Starcraft How to stay on top of macro? Current Meta PvZ map balance
Other Games
General Games
Stormgate/Frost Giant Megathread The Perfect Game Path of Exile Nintendo Switch Thread Should offensive tower rushing be viable in RTS games?
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas TL Mafia Community Thread
Community
General
Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread US Politics Mega-thread The Big Programming Thread Artificial Intelligence Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Where to ask questions and add stream? The Automated Ban List
Blogs
James Bond movies ranking - pa…
Topin
Esports Earnings: Bigger Pri…
TrAiDoS
Thanks for the RSL
Hildegard
Saturation point
Uldridge
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1242 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 Ireland26177 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
Portugal3241 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 Ireland26177 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
PiGosaur Monday
01:00
#60
PiGStarcraft527
SteadfastSC117
CranKy Ducklings95
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft527
RuFF_SC2 141
SteadfastSC 117
Nathanias 81
StarCraft: Brood War
PianO 194
Noble 45
Icarus 9
Dota 2
monkeys_forever476
League of Legends
JimRising 805
Counter-Strike
Coldzera 1052
Other Games
summit1g13301
WinterStarcraft481
C9.Mang0306
ViBE158
Organizations
Other Games
gamesdonequick1102
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Hupsaiya 67
• intothetv
• AfreecaTV YouTube
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Azhi_Dahaki13
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo810
• Stunt330
Other Games
• Scarra1267
Upcoming Events
Wardi Open
7h 45m
StarCraft2.fi
12h 45m
Replay Cast
19h 45m
The PondCast
1d 5h
OSC
1d 11h
Demi vs Mixu
Nicoract vs TBD
Babymarine vs MindelVK
ForJumy vs TBD
Shameless vs Percival
Replay Cast
1d 19h
Korean StarCraft League
2 days
CranKy Ducklings
3 days
SC Evo League
3 days
BSL 21
3 days
Sziky vs OyAji
Gypsy vs eOnzErG
[ Show More ]
OSC
3 days
Solar vs Creator
ByuN vs Gerald
Percival vs Babymarine
Moja vs Krystianer
EnDerr vs ForJumy
sebesdes vs Nicoract
Sparkling Tuna Cup
4 days
OSC
4 days
BSL 21
4 days
Bonyth vs StRyKeR
Tarson vs Dandy
Replay Cast
5 days
Wardi Open
5 days
StarCraft2.fi
5 days
Replay Cast
5 days
StarCraft2.fi
6 days
PiGosaur Monday
6 days
Liquipedia Results

Completed

Proleague 2025-11-30
RSL Revival: Season 3
Light HT

Ongoing

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

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
Kuram Kup
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
TLPD

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

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.