• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 21:23
CEST 03:23
KST 10:23
  • 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
[ASL19] Finals Recap: Standing Tall9HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6
Community News
Flash Announces Hiatus From ASL54Weekly Cups (June 23-29): Reynor in world title form?12FEL Cracov 2025 (July 27) - $8000 live event16Esports World Cup 2025 - Final Player Roster16Weekly Cups (June 16-22): Clem strikes back1
StarCraft 2
General
The SCII GOAT: A statistical Evaluation The GOAT ranking of GOAT rankings Statistics for vetoed/disliked maps How does the number of casters affect your enjoyment of esports? Esports World Cup 2025 - Final Player Roster
Tourneys
Korean Starcraft League Week 77 Master Swan Open (Global Bronze-Master 2) RSL: Revival, a new crowdfunded tournament series [GSL 2025] Code S: Season 2 - Semi Finals & Finals $5,100+ SEL Season 2 Championship (SC: Evo)
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma Mutation # 477 Slow and Steady
Brood War
General
Flash Announces Hiatus From ASL BGH Auto Balance -> http://bghmmr.eu/ Player “Jedi” cheat on CSL Unit and Spell Similarities Help: rep cant save
Tourneys
[Megathread] Daily Proleagues [BSL20] Grand Finals - Sunday 20:00 CET Small VOD Thread 2.0 [BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile What do you want from future RTS games? Beyond All Reason
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
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
Things Aren’t Peaceful in Palestine US Politics Mega-thread Trading/Investing Thread Russo-Ukrainian War Thread The Games Industry And ATVI
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread
Sports
Formula 1 Discussion 2024 - 2025 Football Thread NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Blogs
Culture Clash in Video Games…
TrAiDoS
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
StarCraft improvement
iopq
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 616 users

The Big Programming Thread - Page 756

Forum Index > General Forum
Post a Reply
Prev 1 754 755 756 757 758 1031 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
Poland17243 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
Turkey779 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
Hyrule19030 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
3174 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
Poland17243 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
3174 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
Hyrule19030 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
3174 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
Bisutopia19229 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
Spain17970 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
Poland17243 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
Spain17970 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
Poland17243 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
3174 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
Poland17243 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
Hyrule19030 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 1031 Next
Please log in or register to reply.
Live Events Refresh
Next event in 1h 37m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 266
RuFF_SC2 137
Livibee 87
StarCraft: Brood War
Sea 1098
NaDa 40
Icarus 2
Dota 2
420jenkins668
capcasts134
NeuroSwarm92
febbydoto10
LuMiX1
League of Legends
JimRising 686
Counter-Strike
Stewie2K751
taco 608
Other Games
summit1g10365
tarik_tv4837
ViBE191
Organizations
Other Games
BasetradeTV70
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• Berry_CruncH244
• Hupsaiya 108
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Azhi_Dahaki16
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Doublelift4827
• Jankos1588
• masondota2974
Upcoming Events
Korean StarCraft League
1h 37m
CranKy Ducklings
8h 37m
RSL Revival
8h 37m
ByuN vs Cham
herO vs Reynor
FEL
14h 37m
RSL Revival
1d 8h
Clem vs Classic
SHIN vs Cure
FEL
1d 10h
BSL: ProLeague
1d 16h
Dewalt vs Bonyth
Replay Cast
2 days
Sparkling Tuna Cup
3 days
The PondCast
4 days
[ Show More ]
Replay Cast
4 days
RSL Revival
5 days
Replay Cast
5 days
RSL Revival
6 days
Liquipedia Results

Completed

BSL 2v2 Season 3
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025

Upcoming

2025 ACS Season 2: Qualifier
CSLPRO Last Chance 2025
2025 ACS Season 2
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
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.