• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 13:53
CEST 19:53
KST 02:53
  • 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
Serral wins HomeStory Cup 2915Serral wins Maestros of the Game 243ByuL, and the Limitations of Standard Play3Team Liquid Map Contest #22: Results and Winners7Code S Season 2 (2026): RO4 and Finals Preview12
Community News
RSL goes to London! 2026 Offline Finals Nov 21-224Weekly Cups (July 27-Aug 2): SHIN's big week0SC4ALL II: Brood War - $2500 - Dec 5-69SC4ALL II announced - $10,000 prize pool, Dec 5-64PIG STY FESTIVAL 8.0! (13 - 23 August)14
StarCraft 2
General
The Good, the Bad and the 8 Workers Balance hotfix patch 5.0.16b (July 16) Serral wins HomeStory Cup 29 StarCraft 2 at SC4ALL II Invite #4/8 - Percival Protoss AoE skill expression
Tourneys
RSL goes to London! 2026 Offline Finals Nov 21-22 RSL Revival: Season 6 - Qualifiers and Main Event Sparkling Tuna Cup - Weekly Open Tournament PIG STY FESTIVAL 8.0! (13 - 23 August) Tasteless Time Warp: SC Evo Showmatch (May 25)
Strategy
[G] Having the right mentality to improve
Custom Maps
Nexus Wars 2021 GUIDE [M] (2) Industrial Park
External Content
The PondCast: SC2 News & Results Mutation # 537 Hostile Territory Mutation # 536 Railroad Switch Mutation # 535 Assembly of Vengeance
Brood War
General
Are you ready for ASL 22? NEW HYPE VIDEO BW General Discussion ASL22 General Discussion [Personal Project Share] Terran Defense v0.60 Recent recommended BW games
Tourneys
[Megathread] Daily Proleagues KCM Race Survival 2026 Season 3 Escore Tournament - Season 3 SC4ALL II: Brood War - $2500 - Dec 5-6
Strategy
Any training maps people recommend? Odyssey Mineral Stack Saturation Fighting Spirit mining rates Simple Questions, Simple Answers
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Diablo 2 thread General RTS Discussion Thread ZeroSpace Early Access is Now Live!
Dota 2
Looking for a Dota Mentor 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
US Politics Mega-thread Russo-Ukrainian War Thread Iain M Banks Says He Has Cancer And Months To Live European Politico-economics QA Mega-thread The Games Industry And ATVI
Fan Clubs
The herO Fan Club! The Clem Fan Club INnoVation Fan Club
Media & Entertainment
Anime Discussion Thread Movie Discussion! Series you have seen recently... [Req][Books] Good Fantasy/SciFi books
Sports
NBA General Discussion Football (Soccer) Thread TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion MLB/Baseball 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Simple Questions Simple Answers FPS when play League Of Legend on laptop
TL Community
The Automated Ban List Northern Ireland Global Starcraft
Blogs
Please support my new stand…
Peanutsc
What is a Gamer?
TrAiDoS
Hello guys!
LIN1s
ASL S22 English Commentary…
namkraft
Poker (part 2)
Nebuchad
Customize Sidebar...

Website Feedback

Closed Threads



Active: 6379 users

The Big Programming Thread - Page 756

Forum Index > General Forum
Post a Reply
Prev 1 754 755 756 757 758 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.
Manit0u
Profile Blog Joined August 2004
Poland17822 Posts
August 25 2016 07:41 GMT
#15101
On August 25 2016 14:29 Wrath wrote:
Show nested quote +
On August 25 2016 14:10 tofucake wrote:
if you think PHP is for simpler non-ecommerce sites you are horrendously mistaken


As I said, from my "limited" knowledge. I just can't make up my mind and I need some help.


First of all there's plenty more going on now than just JEE and PHP (although those would be the most prominent). There are some new kids on the block that are getting some traction:
- Ruby on Rails: it's developed with web in mind, really cool, very hip, development times are crazy good but maintenance can be a bitch
- Python (Django): Python is nice. Django is nice. It's like PHP but better. Not as popular though.
- Node: JavaScript went up in popularity immensely lately (it's on the decline now) but still I'm of the opinion that backend is not where JS should be.

Now, to help you out with your decisions a bit, let me tell you about some of the pros and cons of JEE vs PHP:

JEE:
+ Java ecosystem: this is the biggest thing, since you're doing Java you get access to a lot of things (it's also easier on integration since 99% of the ESB solutions are written in Java - Zato is written in Python and I've found it better than other solutions but it's relatively new)
+ Good pay: Java developer's salary is usually 2-3 times higher than PHP dev's
+ Versatility: after learning Java you can go and do other things than web dev

- Corpo: Java is mostly used in corporate environments, for some this might be a pro but I think it's a con most of the time
- Java: from my (limited) experience with JEE it's horrible to work with. In the web dev you don't really need enterprise solutions all the time and developing anything in JEE takes much longer than any other stuff I mentioned earlier. I also find it tedious, too verbose and not flexible enough. Scala looks very nice but it's pretty niche still.
- Declining: Java is declining in popularity. Especially in web development. People discovered that you can have practically the same thing for half the cost in half the time with other solutions. It's still going strong only because of how much of the corporate market has been saturated with it before

PHP:
+ Popularity: about 80% of the web runs on it so it's not like PHP is going away anytime soon, especially that with the advent of PHP 7 the language started to get its shit together. This of course translates directly to plenty of job opportunities (I've worked in 5 different places over the past 2-3 years and I still have options to choose despite living in a non-tech city - capital of the most rural region in Poland)
+ Simplicity: it's easy to learn, just need to get familiar with many pitfalls you can get into early on so you can avoid them
+ Many frameworks: there are plenty of frameworks to choose from in the PHP world that let you develop really good apps with best practices (Symfony and Laravel being king right now in the full-stack world, Silex and Lumen leading the way in microframework world)

- Little pay: PHP dev's salary is pretty much at the bottom of the pack, that's because there's plenty of work and plenty of people doing it
- PHP: even though it's getting better and better its still a pretty shitty language
- Web only: with PHP you're pretty much tied to the web

So, if you want to work in a big company, earn plenty and participate in the rat chase then you should go with JEE. If you'd rather work for less but in a smaller and friendlier environment then choose PHP.

PHP is pretty good to start with since there's plenty of opportunities to land a job. You can always switch to something else later on since your experience with PHP will make learning other languages and frameworks easier.

Also, no matter what you choose you'll also have to learn JavaScript, CSS and basics of Linux server administration. Just so you know.
Time is precious. Waste it wisely.
mantequilla
Profile Blog Joined June 2012
Turkey781 Posts
August 25 2016 13:33 GMT
#15102
newb docker question:

I have a web app comprised of java+mysql+tomcat+some static files. Do I need different containers for each of them or can I define all of them with a single dockerfile and call it my-webapp-image ?
Age of Mythology forever!
tofucake
Profile Blog Joined October 2009
Hyrule19235 Posts
August 25 2016 15:24 GMT
#15103
afaik you can do it in a single docker image. I found docker-compose works nice too
Liquipediaasante sana squash banana
Wrath
Profile Blog Joined July 2014
3175 Posts
August 25 2016 16:21 GMT
#15104
- Corpo: Java is mostly used in corporate environments, for some this might be a pro but I think it's a con most of the time


I'm not sure if I'm understanding this. Could you elaborate please?
Manit0u
Profile Blog Joined August 2004
Poland17822 Posts
Last Edited: 2016-08-25 17:50:55
August 25 2016 17:50 GMT
#15105
On August 26 2016 01:21 Wrath wrote:
Show nested quote +
- Corpo: Java is mostly used in corporate environments, for some this might be a pro but I think it's a con most of the time


I'm not sure if I'm understanding this. Could you elaborate please?


Due to costs associated with hiring enough Java programmers, maintenance and other stuff (IDE licenses, Oracle dbs etc.) its usually big companies and corporations that use Java. Most startups and smaller firms are using different technology stacks.
Time is precious. Waste it wisely.
Wrath
Profile Blog Joined July 2014
3175 Posts
August 25 2016 19:28 GMT
#15106
By the way, could you also explain this comment regarding Node?

- Node: JavaScript went up in popularity immensely lately (it's on the decline now) but still I'm of the opinion that backend is not where JS should be.


Why would it be on decline. Also from what I understand when I tried to study it, there is something special in the way it serves client requests. Also, wouldn't Node be a dream job for those who want to be full stack developers? backend and frontend the same language.
tofucake
Profile Blog Joined October 2009
Hyrule19235 Posts
August 25 2016 20:39 GMT
#15107
it's single threaded, which is a huge issue
Liquipediaasante sana squash banana
Wrath
Profile Blog Joined July 2014
3175 Posts
August 25 2016 21:20 GMT
#15108
On August 26 2016 05:39 tofucake wrote:
it's single threaded, which is a huge issue


Why?
beentheredonethat
Profile Joined May 2016
2934 Posts
August 25 2016 21:22 GMT
#15109
Do you guys have any "learn angularJS" recommendation? Tried papajohn.
"Micro tricks like marine splitting, blink stalker micro, and ling/baneling wars were the apex of the game’s achievements; nothing in the world takes your breath away like watching a pro player split marines like a god."
BisuDagger
Profile Blog Joined October 2009
Bisutopia19372 Posts
August 25 2016 21:28 GMT
#15110
On August 26 2016 06:20 Wrath wrote:
Show nested quote +
On August 26 2016 05:39 tofucake wrote:
it's single threaded, which is a huge issue


Why?

Google is a great resource for these types of questions. I know little about node and now im that much more informed after google research!

http://stackoverflow.com/questions/17959663/why-is-node-js-single-threaded
ModeratorFormer Afreeca Starleague Caster: http://afreeca.tv/ASL2ENG2
Acrofales
Profile Joined August 2010
Spain18408 Posts
August 25 2016 21:39 GMT
#15111
On August 26 2016 00:24 tofucake wrote:
afaik you can do it in a single docker image. I found docker-compose works nice too

You can. It's just not how docker is meant to be used, and compromises some of the advantages of using Docker in the first place. I would for sure split into separate mysql and Java containers.
Manit0u
Profile Blog Joined August 2004
Poland17822 Posts
August 25 2016 22:14 GMT
#15112
On August 26 2016 04:28 Wrath wrote:
By the way, could you also explain this comment regarding Node?

Show nested quote +
- Node: JavaScript went up in popularity immensely lately (it's on the decline now) but still I'm of the opinion that backend is not where JS should be.


Why would it be on decline. Also from what I understand when I tried to study it, there is something special in the way it serves client requests. Also, wouldn't Node be a dream job for those who want to be full stack developers? backend and frontend the same language.


I have no idea why it's on the decline (that's what statistics for job offers/job seekers for certain programming languages are showing). Perhaps after everyone and their mother jumped on the hip bandwagon of JS everywhere and for everything the market got over-saturated with JS devs while some startups tried it out and switched to something else (most startups tend to start with RoR and then move on to other technologies, even PHP, because developing in it is super fast and pleasurable but long-term maintenance is a bitch).

Here's some data on that: http://codingvc.com/which-technologies-do-startups-use-an-exploration-of-angellist-data

When it comes to programming language popularity the top 5 are Java, Python, PHP, C# and JavaScript (in that order). I'm quite surprised that Python is by far the fastest growing in popularity but it's an awesome language. Source: http://pypl.github.io/PYPL.html

Anyway, ultimately you should simply choose what you like working with. I'm not a big fan of Java and JavaScript so I never really jumped on the bandwagon (I tried a couple of times but it never worked out). I simply don't like working with those technologies as it brings me no joy at all and I've found out that as soon as you're not enjoying what you're doing it's time to bail out. I quite enjoy working with PHP (despite its many flaws) but I'm doing some Python on the side right now (especially that I've discovered that you can make Android apps/games with it without much hassle and it's 10x more pleasurable than working with Android Studio).
Time is precious. Waste it wisely.
Acrofales
Profile Joined August 2010
Spain18408 Posts
Last Edited: 2016-08-25 22:29:10
August 25 2016 22:28 GMT
#15113
You can make android apps in python? Holy crap, that is awesome! From this moment, I am officially done with Java Android forever! Please tell me the UI is fairly easy. Please please please tell me that. I have never done any UI programming in Python (I wouldn't even know where to start, if not using a web frontend), let alone Python for Android.
Manit0u
Profile Blog Joined August 2004
Poland17822 Posts
Last Edited: 2016-08-25 22:56:09
August 25 2016 22:51 GMT
#15114
On August 26 2016 07:28 Acrofales wrote:
You can make android apps in python? Holy crap, that is awesome! From this moment, I am officially done with Java Android forever! Please tell me the UI is fairly easy. Please please please tell me that. I have never done any UI programming in Python (I wouldn't even know where to start, if not using a web frontend), let alone Python for Android.


You can use the pygame library for that.

What you have to do is:
1. Make a game/app with python + pygame library
2. Use this: http://pygame.renpy.org
3. Map computer keys to android gestures:

if android:
android.map_key(android.KEYCODE_BACK, pygame.K_ESCAPE)

4. Use the library from #2 to package your game into .apk

You could also use kivy but most people tend to be of an opinion that pygame is more intuitive than that.

Just note that you won't get access to native Android interfaces and will have to rely on custom solutions available in pygame.

I'm just starting with that so you have to take everything with a grain of salt. I'll probably post here if I manage to achieve anything meaningful but it might take a while since doing python stuff is pretty much a side-project for me for now.

Here's a video from 5 years ago that showcases this:
Time is precious. Waste it wisely.
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
August 25 2016 23:26 GMT
#15115
--- Nuked ---
Wrath
Profile Blog Joined July 2014
3175 Posts
August 26 2016 05:31 GMT
#15116
On August 26 2016 06:28 BisuDagger wrote:
Show nested quote +
On August 26 2016 06:20 Wrath wrote:
On August 26 2016 05:39 tofucake wrote:
it's single threaded, which is a huge issue


Why?

Google is a great resource for these types of questions. I know little about node and now im that much more informed after google research!

http://stackoverflow.com/questions/17959663/why-is-node-js-single-threaded


My question was why it is a huge issue not why it is a single threaded
Manit0u
Profile Blog Joined August 2004
Poland17822 Posts
August 26 2016 08:30 GMT
#15117
On August 26 2016 14:31 Wrath wrote:
Show nested quote +
On August 26 2016 06:28 BisuDagger wrote:
On August 26 2016 06:20 Wrath wrote:
On August 26 2016 05:39 tofucake wrote:
it's single threaded, which is a huge issue


Why?

Google is a great resource for these types of questions. I know little about node and now im that much more informed after google research!

http://stackoverflow.com/questions/17959663/why-is-node-js-single-threaded


My question was why it is a huge issue not why it is a single threaded


It can be an issue but it doesn't have to be.

From the linked SO question:

If you have an intensive I/O scenario (like a proxy), the event base model will rule, whereas a CPU intensive scenario with a low number of concurrent processes will work best with the thread-based model.
Time is precious. Waste it wisely.
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
August 26 2016 09:00 GMT
#15118
On August 26 2016 14:31 Wrath wrote:
Show nested quote +
On August 26 2016 06:28 BisuDagger wrote:
On August 26 2016 06:20 Wrath wrote:
On August 26 2016 05:39 tofucake wrote:
it's single threaded, which is a huge issue


Why?

Google is a great resource for these types of questions. I know little about node and now im that much more informed after google research!

http://stackoverflow.com/questions/17959663/why-is-node-js-single-threaded


My question was why it is a huge issue not why it is a single threaded


In theory it means that, if one process takes very long, all other processes have to wait for it, which can - again, theoretically - result in poor page loading speed for the end user. In practice, that can indeed occur if a single function does a lot of calculations, but it's a very rare case.

However, firstly there are process managers like StrongLoop for Node.js that essentially run many instances of a node application in parallel and spread the requests between them, similar to the worker threads that the apache uses.
Secondly, most of the processing time of a website these days is pure I/O, database requests, file I/O and such. As an example, PHP applications wait for the database request to finish before they continue with the next line of code, Node.js doesn't. Essentially, once the database query is sent to the server, it starts to work on the next web request and comes back to the first request once the results from the database come back. That reduces the downtime in processes that traditional solutions have.
Lastly, it allows for much easier sharing of data between processes. Taking PHP as an example again, if you want to cache some data that is used in every request, you either have to use some shared memory solution or redis, memcache and the like and serialize/unserialize data on every request. In Node.js your application is persistent, so you can simply store the data that is used in every request without having to read it again every time a new request comes in. That also works for database and file handles. Of course if you are using a process manager, each process will still have it's own shared data.

That is not to say that Node.js does everything right. Node.js does have a tendency to lead into "callback hell" where all the APIs require a callback in which another API call might be made that requires another callback - and so on until you are 30 callbacks deep and forgot how you got there. If you don't pay careful attention to your project structure, it can make applications very messy. There are decent solutions to it, but it's something you have to consciously think about when writing Node.js applications.

Personally, I like Node.js. It's not perfect, but once you wrap your head around JavaScript, it's not as bad as it's made out to be. I'm not sure whether I would use it for massive projects with multiple developers, but it served me well in my private projects.
supereddie
Profile Joined March 2011
Netherlands151 Posts
August 26 2016 10:54 GMT
#15119
On August 26 2016 18:00 Morfildur wrote:
Show nested quote +
On August 26 2016 14:31 Wrath wrote:
On August 26 2016 06:28 BisuDagger wrote:
On August 26 2016 06:20 Wrath wrote:
On August 26 2016 05:39 tofucake wrote:
it's single threaded, which is a huge issue


Why?

Google is a great resource for these types of questions. I know little about node and now im that much more informed after google research!

http://stackoverflow.com/questions/17959663/why-is-node-js-single-threaded


My question was why it is a huge issue not why it is a single threaded


*snip*

I like how you briefly state a "theoretical", as you call it, downside of single threading and then continue to write a lengthy post where you cherry-pick examples as to why single threading is superior, thereby marginalizing the 'huge issue' that it really is.
"Do not try to make difficult things possible, but make simple things simple." - David Platt on Software Design
tofucake
Profile Blog Joined October 2009
Hyrule19235 Posts
August 26 2016 12:37 GMT
#15120
On August 26 2016 14:31 Wrath wrote:
Show nested quote +
On August 26 2016 06:28 BisuDagger wrote:
On August 26 2016 06:20 Wrath wrote:
On August 26 2016 05:39 tofucake wrote:
it's single threaded, which is a huge issue


Why?

Google is a great resource for these types of questions. I know little about node and now im that much more informed after google research!

http://stackoverflow.com/questions/17959663/why-is-node-js-single-threaded


My question was why it is a huge issue not why it is a single threaded

If you're looking to do some standard website, node is a crap choice. Something like TL would go down in flames if it were made in node, nevermind any big site. Nobody will create the next Facebook/Google/Etsy/Ebay/PayPal/Expedia/Whatever until node gets multithreading.
Liquipediaasante sana squash banana
Prev 1 754 755 756 757 758 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 6h 7m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Serral 2055
ProTech70
BRAT_OK 56
StarCraft: Brood War
Britney 22555
actioN 563
Mini 419
Soulkey 286
firebathero 265
Rush 102
Hyun 32
Sexy 31
scan(afreeca) 27
Rock 20
Dota 2
qojqva2188
Fuzer 39
Counter-Strike
fl0m9910
Super Smash Bros
C9.Mang01163
Mew2King115
Heroes of the Storm
Khaldor244
Other Games
Grubby3250
singsing1404
FrodaN1329
Liquid`RaSZi1148
Beastyqt682
Mlord543
Lowko431
JimRising 389
PiGStarcraft336
IndyStarCraft 215
TKL 204
mouzStarbuck171
Hui .169
XaKoH 125
JuggernautJason59
QueenE58
UpATreeSC48
XcaliburYe34
Nathanias31
ToD14
Organizations
Other Games
WardiTV957
gamesdonequick593
[ Show 17 non-featured ]
StarCraft 2
• StrangeGG 59
• LUISG 7
• OhrlRock 2
• Kozan
• AfreecaTV YouTube
• intothetv
• Migwel
• IndyKCrew
StarCraft: Brood War
• HerbMon 26
• Michael_bg 5
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• WagamamaTV229
• lizZardDota283
League of Legends
• Jankos1746
• Shiphtur670
Upcoming Events
OSC
6h 7m
WardiTV Weekly
17h 7m
The Patches Monday
22h 7m
Sparkling Tuna Cup
1d 16h
PiG Sty Festival
1d 18h
PiGosaur Cup
2 days
Replay Cast
2 days
Kung Fu Cup
2 days
Replay Cast
3 days
The PondCast
3 days
[ Show More ]
Replay Cast
4 days
CranKy Ducklings
5 days
Sparkling Tuna Cup
6 days
Liquipedia Results

Completed

Proleague 2026-08-08
CranK Gathers Season 4: BW vs SC2 Team League
Eternal Conflict S2 Finale

Ongoing

KCM Race Survival 2026 Season 3
K-JUNGMAN
Acropolis #5
RSL Revival: Season 6
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
Stake Ranked Episode 2

Upcoming

Escore Tournament S3: W7
CSLAN 4
ASL Season 22
Escore Tournament S3: W8
Acropolis #5 - TRS
Blizzard Classic Cup 2026
Acropolis #5 - GSA
HSC XXX
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
PiG Sty Festival 8.0
Big Dog Cup 2026 Div 1
META DYMY #4
Thunderpick World Champ.
ESL Pro League Season 24
Stake Ranked Episode 4
Logitech G Connect 2026
SL StarSeries Fall 2026
FISSURE Playground #5
BLAST Open Fall 2026
Esports World Cup 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.