• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 05:18
CEST 11:18
KST 18:18
  • 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] Ro8 Preview: In A Tizzy11[ASL22] Ro16 Preview: Holy Diver5[ASL22] Ro16 Preview: Rough Waters10[ASL22] Ro24 Preview: Siren's Call8[ASL22] Ro24 Preview: Summer's End9
Community News
Weekly Cups (Sep 13-20): herO scores triple2BSL Season 2313Weekly Cups (Sep 7-12): SHIN, ByuN, MaxPax double down1StarCraft open world shooter announced at BlizzCon101Weekly Cups (Aug 30-Sep 7): herO thrives amid growing schism10
StarCraft 2
General
How do you feel about the StarCraft shooter announcement at BlizzCon 2026? Balance hotfix patch 5.0.16b (July 16) Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Weekly Cups (Sep 13-20): herO scores triple The Death of Cheese: From a Professional Cheeser
Tourneys
2026 GSTL Grand Finals ScienceCraft (October 24-25) - Live Event Sparkling Tuna Cup - Weekly Open Tournament Master Swan Open (Global Bronze-Master 2) Stellar Fest TWO the Moon (Dec 16-20)
Strategy
[H] ZvP Mid-Late Game: Stalkers Collossi HT
Custom Maps
[M] (2) Sweltering Sands [M] (2) Frigid Storage
External Content
Mutation # 544 Double Trouble The PondCast: SC2 News & Results Mutation # 543 Enhanced Defenses Mutation # 542 The Ascended
Brood War
General
StarCraft Human 'N' AI League Bot on ladder an AI researcher's take on the ladder bot BW General Discussion BSL Season 23
Tourneys
[Megathread] Daily Proleagues [ASL22] Ro8 Day 2 [ASL22] Ro8 Day 1 [IPSL] IPSL is Back With Winter 26-27!
Strategy
Cliff Jump Revisited (1 in a 1000 strategy) Replay Review Process - What do you do? Simple Questions, Simple Answers Odyssey Mineral Stack Saturation
Other Games
General Games
Warcraft III: The Frozen Throne Stormgate/Frost Giant Megathread Nintendo Switch Thread EVE Corporation Diablo IV
Dota 2
Dota 2 Champions League Season 3 Begins April 25! Official 'what is Dota anymore' discussion
League of Legends
[TL LoL EUW IHs] Teemo shall perish
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Artificial Intelligence Thread All you football fans (soccer)!
Fan Clubs
MarineLorD Fan Club The Creator Fan Club The ShoWTimE Fan Club
Media & Entertainment
Movie Discussion! [Manga] One Piece Diablo Animated Series on Netflix
Sports
Football (Soccer) Thread
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Recent Gifted Posts
Blogs
Violent-Cooperative Play and…
TrAiDoS
38 yo Retired SWE loo…
PurE)Rabbit-SF
Can Bots Beat Pros?? Starcr…
namkraft
[meme] I finally understa…
LUCKY_NOOB
Regacy Esports:Our Goa…
regacyesports
Customize Sidebar...

Website Feedback

Closed Threads



Active: 8336 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
Poland17845 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
Hyrule19257 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
Poland17845 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
Hyrule19257 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
Bisutopia19386 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
Spain18446 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
Poland17845 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
Spain18446 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
Poland17845 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
Poland17845 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
Hyrule19257 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
GSL
08:00
2026 GSTL: Grand Finals
RotterdaM442
SHIN 153
CranKy Ducklings SOOP144
GSL EN (SOOP)0
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 442
SHIN 153
LamboSC2 110
Rex 24
StarCraft: Brood War
Britney 2514
ggaemo 1067
actioN 934
Barracks 463
Stork 453
BeSt 347
EffOrt 340
PianO 199
Rush 102
Mong 60
[ Show more ]
Bale 28
Sharp 20
ZergMaN 13
zelot 13
ZerO 12
NaDa 12
JulyZerg 9
Dota 2
Gorgc3961
League of Legends
JimRising 563
Heroes of the Storm
Trikslyr56
Other Games
gofns20836
Livibee178
ArmadaUGS97
ZerO(Twitch)2
Organizations
Dota 2
PGL Dota 2 - Main Stream9093
StarCraft: Brood War
Afreeca ASL 306
[ Show 11 non-featured ]
StarCraft 2
• Berry_CruncH200
• LUISG 27
• Letter146
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• Migwel
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Upcoming Events
Yamato Cup
5h 42m
BSL Open Qualifier
9h 42m
BSL Open Qualifier
9h 42m
OSC
13h 42m
Replay Cast
14h 42m
Afreeca Starleague
1d
Soma vs Jaedong
WardiTV Weekly
1d 1h
Monday Night Weeklies
1d 6h
Sparkling Tuna Cup
2 days
Afreeca Starleague
2 days
Leta vs Soulkey
[ Show More ]
PiGosaur Cup
2 days
Kung Fu Cup
3 days
The PondCast
4 days
Replay Cast
4 days
CranKy Ducklings
6 days
Online Event
6 days
FEL
6 days
BSL: Ladder Tournament
6 days
Liquipedia Results

Completed

Acropolis #5 - GSA
Blizzard Classic Cup 2026
Calamity Invitational

Ongoing

ASL Season 22
Super Anchor Qualifying S3
CSL 2026 AUTUMN (S22)
Acropolis #5
1win Private Club #1
Logitech G Play Connect 2026
SL StarSeries Fall 2026
FISSURE Playground #3
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3

Upcoming

Acropolis #5 - GSB
Acropolis #5 - GSC
BSL Season 23
SC4ALL II: Brood War
BSL 23: Non-Korean Championship
HSC XXX
Stellar Fest 2: Lunar Cup
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
RSL Offline Finals
Custodian Cup
Copium Cup
PGL Major Singapore 2026
Stake Ranked Episode 6
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
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.