• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 19:53
CET 01:53
KST 09: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
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
RSL Season 3: RO16 results & RO8 bracket13Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge2[TLMC] Fall/Winter 2025 Ladder Map Rotation14Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA15
StarCraft 2
General
Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge SC: Evo Complete - Ranked Ladder OPEN ALPHA RSL Season 3: RO16 results & RO8 bracket RSL Season 3 - Playoffs Preview Mech is the composition that needs teleportation t
Tourneys
RSL Revival: Season 3 $5,000+ WardiTV 2025 Championship StarCraft Evolution League (SC Evo Biweekly) Constellation Cup - Main Event - Stellar Fest 2025 RSL Offline Finals Dates + Ticket Sales!
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 501 Price of Progress Mutation # 500 Fright night Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death
Brood War
General
2v2 maps which are SC2 style with teams together? Data analysis on 70 million replays BGH Auto Balance -> http://bghmmr.eu/ soO on: FanTaSy's Potential Return to StarCraft A cwal.gg Extension - Easily keep track of anyone
Tourneys
[BSL21] RO16 Tie Breaker - Group B - Sun 21:00 CET [BSL21] RO16 Tie Breaker - Group A - Sat 21:00 CET [Megathread] Daily Proleagues Small VOD Thread 2.0
Strategy
Current Meta Game Theory for Starcraft How to stay on top of macro? PvZ map balance
Other Games
General Games
Path of Exile Nintendo Switch Thread Should offensive tower rushing be viable in RTS games? Clair Obscur - Expedition 33 Stormgate/Frost Giant Megathread
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
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread The Games Industry And ATVI Things Aren’t Peaceful in Palestine About SC2SEA.COM
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread Korean Music Discussion
Sports
Formula 1 Discussion 2024 - 2026 Football Thread NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
TL Community
The Automated Ban List
Blogs
The Health Impact of Joining…
TrAiDoS
Dyadica Evangelium — Chapt…
Hildegard
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1954 users

The Big Programming Thread - Page 983

Forum Index > General Forum
Post a Reply
Prev 1 981 982 983 984 985 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.
Excludos
Profile Blog Joined April 2010
Norway8196 Posts
December 21 2018 20:47 GMT
#19641
On December 22 2018 04:52 SC-Shield wrote:
Show nested quote +
On December 22 2018 04:40 Blisse wrote:
On December 21 2018 03:23 mantequilla wrote:
I have a coworker that knows a lot more than me, like different languages, frameworks, different programming paradigms. etc but I can't help to think he's a bad programmer.

His code is almost always buggy. Ideas he bring out and be sure "it will work" never works.

I was trying to track down a silly bug for 3 days, finally solved it, he refactored my code a bit to make it "better", now its more broken than ever :/
pissed


I mean, code reviews are a thing?


In theory, unit tests should have caught that too.


Only if you write them in the first place!
Silvanel
Profile Blog Joined March 2003
Poland4733 Posts
December 21 2018 21:13 GMT
#19642
If it compiles it works! Works on my machine! Its better that way! And other things i as tester love to hear
Pathetic Greta hater.
Excludos
Profile Blog Joined April 2010
Norway8196 Posts
December 21 2018 23:10 GMT
#19643
On December 22 2018 06:13 Silvanel wrote:
If it compiles it works! Works on my machine! Its better that way! And other things i as tester love to hear


"This isn't working"
"Works on my machine!"
"Yes, but this is an iOS app.."
"Works. On. My. Machine!"
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
December 22 2018 05:58 GMT
#19644
A library I used released a feature that I've been waiting on 8 months ago. They finally released the android version 4 days ago...
Can it be I stayed away too long? Did you miss these rhymes while I was gone?
SC-Shield
Profile Joined December 2018
Bulgaria832 Posts
December 22 2018 11:52 GMT
#19645
On December 22 2018 14:58 WarSame wrote:
A library I used released a feature that I've been waiting on 8 months ago. They finally released the android version 4 days ago...


I guess you were a good boy so Santa brought you gift.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2018-12-24 00:42:58
December 23 2018 22:17 GMT
#19646
im considering writing some machine learning stuff to predict NBA outcomes

anyone heard of machine learning for sports betting? I would have to imagine its what las vegas uses and they are probably really really good at it.
tofucake
Profile Blog Joined October 2009
Hyrule19159 Posts
December 24 2018 00:27 GMT
#19647
Yeah, there's at least one guy who's won a few hundred thousand by using machine learning to run his fantasy teams
Liquipediaasante sana squash banana
Wrath
Profile Blog Joined July 2014
3174 Posts
December 24 2018 06:16 GMT
#19648
Question, would it be logical to install python on every single Windows server to use it as scripting language instead of batch script? I really feel it is awkward and limited to use.
LightTemplar
Profile Blog Joined August 2011
Ireland481 Posts
December 24 2018 09:56 GMT
#19649
I would think so. Just decide if you want python 2, 3 or both beforehand and be aware you'll probably want a requirements file for any libs you are likely to need across the machines and preferably an easy way to update all the machines with those libs. Basically keep your environments clean and you should be good.
"Thoughts are always there, the mind can't stop" - Grubby
Silvanel
Profile Blog Joined March 2003
Poland4733 Posts
December 24 2018 10:38 GMT
#19650
To elaborate even more if You want to make sure You have exact same environment on multiple machines and at the same time make sure this enviroment doesnt affect different apps potentially also running python use:
venv + install modules from one requirements.txt.
Pathetic Greta hater.
SC-Shield
Profile Joined December 2018
Bulgaria832 Posts
Last Edited: 2018-12-24 13:55:48
December 24 2018 13:54 GMT
#19651
On December 24 2018 18:56 LightTemplar wrote:
I would think so. Just decide if you want python 2, 3 or both beforehand and be aware you'll probably want a requirements file for any libs you are likely to need across the machines and preferably an easy way to update all the machines with those libs. Basically keep your environments clean and you should be good.


Avoid Python 2. Official support will be dropped in 2020. You only have 1 year in this case.
Link: https://www.python.org/dev/peps/pep-0373/#update
Excludos
Profile Blog Joined April 2010
Norway8196 Posts
December 24 2018 14:13 GMT
#19652
On December 24 2018 22:54 SC-Shield wrote:
Show nested quote +
On December 24 2018 18:56 LightTemplar wrote:
I would think so. Just decide if you want python 2, 3 or both beforehand and be aware you'll probably want a requirements file for any libs you are likely to need across the machines and preferably an easy way to update all the machines with those libs. Basically keep your environments clean and you should be good.


Avoid Python 2. Official support will be dropped in 2020. You only have 1 year in this case.
Link: https://www.python.org/dev/peps/pep-0373/#update


Also avoid Python 3. It's a bad language for bad people who should feel bad!
Manit0u
Profile Blog Joined August 2004
Poland17450 Posts
December 24 2018 14:47 GMT
#19653
Also avoid Python. There are better scripting languages
Time is precious. Waste it wisely.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
December 24 2018 15:14 GMT
#19654
like what? my hackles have immediately raised in defense of python, despite very little experience with other languages lol
Excludos
Profile Blog Joined April 2010
Norway8196 Posts
Last Edited: 2018-12-24 15:19:56
December 24 2018 15:18 GMT
#19655
On December 25 2018 00:14 travis wrote:
like what? my hackles have immediately raised in defense of python, despite very little experience with other languages lol


Depends entierly on the use. I'm personally very pragmatic with what I program in, depending entierly on what needs to be done. If you're working with machine learning, Python is the way to go simply because at some point, everyone in the field decided to use it. So nearly all material, guides and software is available only in Python (and a bit in c++). If you're running scripts for windows, powershell works well enough for that. If you're running a server, nodejs is excellent (despite my hate for js in general), if you need a front end: Qt. If you need a 3D world: Unity, etc etc.
SC-Shield
Profile Joined December 2018
Bulgaria832 Posts
Last Edited: 2018-12-24 18:08:12
December 24 2018 18:03 GMT
#19656
On December 24 2018 23:13 Excludos wrote:
Show nested quote +
On December 24 2018 22:54 SC-Shield wrote:
On December 24 2018 18:56 LightTemplar wrote:
I would think so. Just decide if you want python 2, 3 or both beforehand and be aware you'll probably want a requirements file for any libs you are likely to need across the machines and preferably an easy way to update all the machines with those libs. Basically keep your environments clean and you should be good.


Avoid Python 2. Official support will be dropped in 2020. You only have 1 year in this case.
Link: https://www.python.org/dev/peps/pep-0373/#update


Also avoid Python 3. It's a bad language for bad people who should feel bad!


I dislike scripting languages, including Python, but come on Python is good for prototyping for some scientists, I had a colleague who was doing imaging science in Python first to try algorithms because it was quick to write. Of course, you can later write an algorithm in a faster language like in C or C++.
mantequilla
Profile Blog Joined June 2012
Turkey779 Posts
Last Edited: 2018-12-24 18:30:00
December 24 2018 18:23 GMT
#19657
Python feels weird to me, I usually categorize languages in my head in two, either javascript like (everything is allowed, very flexible but can be a pain if used badly) or java like (very strict, not flexible but everything is according to a rule, easy to follow someone else's code). Python is neither, it allows too many things, like runtime modification of class methods etc. but at the same time can't print("number is: " + 1) or print("list is : " + null) and whole thing terminates because of this. It can concat two arrays with + operator but can't concat a string and a number.

When writing js, I usually think "im sure I can do that in js" and when writing java "let me think how I can do sth like that". In python, I have no idea

Try Groovy

PS: Anyone know Scala here?
Age of Mythology forever!
Excludos
Profile Blog Joined April 2010
Norway8196 Posts
December 24 2018 18:30 GMT
#19658
On December 25 2018 03:03 SC-Shield wrote:
Show nested quote +
On December 24 2018 23:13 Excludos wrote:
On December 24 2018 22:54 SC-Shield wrote:
On December 24 2018 18:56 LightTemplar wrote:
I would think so. Just decide if you want python 2, 3 or both beforehand and be aware you'll probably want a requirements file for any libs you are likely to need across the machines and preferably an easy way to update all the machines with those libs. Basically keep your environments clean and you should be good.


Avoid Python 2. Official support will be dropped in 2020. You only have 1 year in this case.
Link: https://www.python.org/dev/peps/pep-0373/#update


Also avoid Python 3. It's a bad language for bad people who should feel bad!


I dislike scripting languages, including Python, but come on Python is good for prototyping for some scientists, I had a colleague who was doing imaging science in Python first to try algorithms because it was quick to write. Of course, you can later write an algorithm in a faster language like in C or C++.


This is indeed the biggest usecase for Python: Scientists who doesn't really know how to program and/or doesn't have the time for it. I don't know exactly when or why all scientists decided to band togheter to use one language above all others, but that is the situation we're in atm.
SC-Shield
Profile Joined December 2018
Bulgaria832 Posts
Last Edited: 2018-12-24 18:49:32
December 24 2018 18:47 GMT
#19659
On December 25 2018 03:30 Excludos wrote:
Show nested quote +
On December 25 2018 03:03 SC-Shield wrote:
On December 24 2018 23:13 Excludos wrote:
On December 24 2018 22:54 SC-Shield wrote:
On December 24 2018 18:56 LightTemplar wrote:
I would think so. Just decide if you want python 2, 3 or both beforehand and be aware you'll probably want a requirements file for any libs you are likely to need across the machines and preferably an easy way to update all the machines with those libs. Basically keep your environments clean and you should be good.


Avoid Python 2. Official support will be dropped in 2020. You only have 1 year in this case.
Link: https://www.python.org/dev/peps/pep-0373/#update


Also avoid Python 3. It's a bad language for bad people who should feel bad!


I dislike scripting languages, including Python, but come on Python is good for prototyping for some scientists, I had a colleague who was doing imaging science in Python first to try algorithms because it was quick to write. Of course, you can later write an algorithm in a faster language like in C or C++.


This is indeed the biggest usecase for Python: Scientists who doesn't really know how to program and/or doesn't have the time for it. I don't know exactly when or why all scientists decided to band togheter to use one language above all others, but that is the situation we're in atm.


Well, "why" is obvious, it's a very high level language which allows you to write something in just a few lines. In C++, you have a lot more to write, but performance won't be an issue at least. It's very easy to pick between the two: speed of writing or performance and stricter rules (predictable deallocation, static typing, etc).
Excludos
Profile Blog Joined April 2010
Norway8196 Posts
December 24 2018 19:06 GMT
#19660
On December 25 2018 03:47 SC-Shield wrote:
Show nested quote +
On December 25 2018 03:30 Excludos wrote:
On December 25 2018 03:03 SC-Shield wrote:
On December 24 2018 23:13 Excludos wrote:
On December 24 2018 22:54 SC-Shield wrote:
On December 24 2018 18:56 LightTemplar wrote:
I would think so. Just decide if you want python 2, 3 or both beforehand and be aware you'll probably want a requirements file for any libs you are likely to need across the machines and preferably an easy way to update all the machines with those libs. Basically keep your environments clean and you should be good.


Avoid Python 2. Official support will be dropped in 2020. You only have 1 year in this case.
Link: https://www.python.org/dev/peps/pep-0373/#update


Also avoid Python 3. It's a bad language for bad people who should feel bad!


I dislike scripting languages, including Python, but come on Python is good for prototyping for some scientists, I had a colleague who was doing imaging science in Python first to try algorithms because it was quick to write. Of course, you can later write an algorithm in a faster language like in C or C++.


This is indeed the biggest usecase for Python: Scientists who doesn't really know how to program and/or doesn't have the time for it. I don't know exactly when or why all scientists decided to band togheter to use one language above all others, but that is the situation we're in atm.


Well, "why" is obvious, it's a very high level language which allows you to write something in just a few lines. In C++, you have a lot more to write, but performance won't be an issue at least. It's very easy to pick between the two: speed of writing or performance and stricter rules (predictable deallocation, static typing, etc).


Sure, but there are plenty of other high level languages to pick from. The probable reason Python has been used over anything else for this purpose is probably due to it compiling to c++ code, which makes it very easy to integrate c/c++ libraries, of which there are many (like OpenCV). Unlike something like javascript which compiles to bytecode, so all preexisting libraries for other languages have to be rewritten for it.
Prev 1 981 982 983 984 985 1032 Next
Please log in or register to reply.
Live Events Refresh
OSC
23:00
OSC Elite Rising Star #17
CranKy Ducklings96
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
White-Ra 186
Nathanias 96
ProTech22
StarCraft: Brood War
Calm 3103
Artosis 710
Terrorterran 2
Counter-Strike
taco 232
Heroes of the Storm
Khaldor198
Other Games
summit1g10456
Grubby3758
Pyrionflax207
Maynarde131
Organizations
Other Games
gamesdonequick1327
BasetradeTV50
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 19 non-featured ]
StarCraft 2
• Hupsaiya 97
• HeavenSC 41
• musti20045 27
• Kozan
• LaughNgamezSOOP
• sooper7s
• AfreecaTV YouTube
• intothetv
• Migwel
• IndyKCrew
StarCraft: Brood War
• HerbMon 12
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota21110
• Ler71
League of Legends
• Doublelift4246
Other Games
• imaqtpie1404
• Scarra1393
Upcoming Events
OSC
8h 7m
Wardi Open
11h 7m
Monday Night Weeklies
16h 7m
OSC
22h 7m
Wardi Open
1d 11h
Replay Cast
2 days
Wardi Open
2 days
Tenacious Turtle Tussle
2 days
The PondCast
3 days
Replay Cast
3 days
[ Show More ]
LAN Event
4 days
Replay Cast
4 days
Replay Cast
5 days
Sparkling Tuna Cup
6 days
Replay Cast
6 days
Liquipedia Results

Completed

SOOP Univ League 2025
RSL Revival: Season 3
Eternal Conflict S1

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
META Madness #9
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
HSC XXVIII
RSL Offline Finals
WardiTV 2025
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 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.