• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 20:52
CET 01:52
KST 09:52
  • 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
[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy7ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book20Clem wins HomeStory Cup 289
Community News
Weekly Cups (March 16-22): herO doubles, Cure surprises3Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool48Weekly Cups (March 9-15): herO, Clem, ByuN win42026 KungFu Cup Announcement6BGE Stara Zagora 2026 cancelled12
StarCraft 2
General
What mix of new & old maps do you want in the next ladder pool? (SC2) Potential Updates Coming to the SC2 CN Server Behind the Blue - Team Liquid History Book herO wins SC2 All-Star Invitational Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool
Tourneys
StarCraft Evolution League (SC Evo Biweekly) WardiTV Mondays Sparkling Tuna Cup - Weekly Open Tournament World University TeamLeague (500$+) | Signups Open RSL Season 4 announced for March-April
Strategy
Custom Maps
[M] (2) Frigid Storage Publishing has been re-enabled! [Feb 24th 2026]
External Content
The PondCast: SC2 News & Results Mutation # 518 Radiation Zone Mutation # 517 Distant Threat Mutation # 516 Specter of Death
Brood War
General
ASL21 General Discussion Gypsy to Korea RepMastered™: replay sharing and analyzer site KK Platform will provide 1 million CNY mca64Launcher - New Version with StarCraft: Remast
Tourneys
[Megathread] Daily Proleagues 2026 Changsha Offline Cup [ASL21] Ro24 Group B [ASL21] Ro24 Group A
Strategy
What's the deal with APM & what's its true value Fighting Spirit mining rates Simple Questions, Simple Answers Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Darkest Dungeon General RTS Discussion Thread Path of Exile
Dota 2
The Story of Wings Gaming Official 'what is Dota anymore' discussion
League of Legends
G2 just beat GenG in First stand
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
TL Mafia Community Thread Five o'clock TL Mafia Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia
Community
General
US Politics Mega-thread The Games Industry And ATVI European Politico-economics QA Mega-thread Canadian Politics Mega-thread Russo-Ukrainian War Thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread Cricket [SPORT] Formula 1 Discussion Tokyo Olympics 2021 Thread General nutrition recommendations
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Funny Nicknames
LUCKY_NOOB
Money Laundering In Video Ga…
TrAiDoS
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 5795 users

The Big Programming Thread - Page 955

Forum Index > General Forum
Post a Reply
Prev 1 953 954 955 956 957 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
Poland17706 Posts
April 12 2018 22:39 GMT
#19081
I seriously have no idea how I could live without git now. Even for small pet projects of mine "git init" is usually one of the very first commands I run.

At work I would be totally at loss without stash, rebase, checkouts (of single files and to different branches), cherry-picking and the like.
Time is precious. Waste it wisely.
Lmui
Profile Joined November 2010
Canada6223 Posts
April 12 2018 22:42 GMT
#19082
Branches for feature development, especially if it involves multiple team members.

Repositories that scale to thousands of users.
Branches for different release streams ex. Nightly, Weekstone, RC, Stable and various patches/releases on those codelines.

There's dozens of other reasons to have a good working knowledge of VCS

Something that works when you have 4 people working on a project for a month doesn't necessarily scale when done for hundreds of people working across multiple timezones around the world.

Also, being able to back out changes as well - recent example from work was someone used a third-party library with a license that legal team said we couldn't use - we could easily remove all the content used in that workstream.
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
April 12 2018 23:26 GMT
#19083
On April 12 2018 09:08 berated- wrote:
Show nested quote +
On April 11 2018 12:55 WarSame wrote:
I feel like I'm missing something with Docker. What is the ideal development to production pipeline supposed to look like? What is Docker's place in there?

Do you need 1 docker-compose per environment? How do you handle environment changes between containers?

When I am developing(say a Flask app) I have a mounted volume to auto update my code. When I am done developing I commit to my own branch("flask-101013033", maybe). QA comes in and verifies that this branch works correctly by pulling the branch, building an image from the branch and making a container from the image.

We then move it into integration testing. I merge my code into the integration branch. We then build another image/container for this branch which QA tests for integration.

Finally, we move this image into production.

Is that a reasonable approach? How do Kubernetes and Docker Swarm come into play?


Ideal is a bit weird, as deployment is so culture related that it's hard to say... Our company is using it as this..

I don't use docker in my development environment except to run databases. It's too much of a pain to try to get in and out of the container or mapping mounts for my liking. However, running the database in a docker container so it can be local is fantastic (especially considering they have a sql server on linux image). If you had a large toolchain that is needed for a dev environment I can see how it's attractive to want to use docker for dev though.

One of the strongest selling points of docker is that it gives you the ability to move the exact container between different environments. The container you built in your ci loop, is the container that goes to dev, qa, prod. Not that your setup doesn't work with rebuilding the container, but, trying to extract your configuration out of the build and then pushing the container through the deployment phases just means you're probably more likely to make sure that what you tested in the environment was correct. This is used pretty often with CI/CD. If you're using deploy branches and actually rebuilding you may not get as much advantage at of this.

We also use docker as a part of our gitlab ci loop. When the gitlab pipeline kicks off it spins up a docker builder that has our tools on it to build our applications. It can link in databases, or even selenium servers to run your automated tests against, or any external service that you might have depended on a vm or dedicated server for.

Kubernetes and swarm come in for orchestration -- if you are using microservices and need to get each of the different containers communicating with each other, these tools make it a lot easier to pop up a set of microservices that comprise a full application. Our main website could end up using anywhere from 6-10 services that make up the one app. Trying to "deploy" the entire thing manually is a lot of effort where as those tools make the whole thing a lot easier. Kubernetes can also do a ton of stuff with controlled rollouts and versioning and ingress controllers and a whole bunch of stuff that I don't even fully understand...

Docker is really cool, but, the entire community is still pretty young and things are changing very rapidly. It's definitely buzzwordish but unless you are deploying quite a few application instances it's a lot of overhead for not a ton of gain... except for running your databases in dev on your machine, that's a life saver.


Thank you for the response. I think given what you and others have said I will keep my Docker usage very simply and start using things like Swarm or Kubernetes when that becomes necessary. I wanted to provide a good DevOps foundation for my project(and to learn this stuff), but it seems there is more to learn than I can justify with my time.
Can it be I stayed away too long? Did you miss these rhymes while I was gone?
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
April 13 2018 15:00 GMT
#19084
thanks for all the replies!

do any of you pay for private accounts?
tofucake
Profile Blog Joined October 2009
Hyrule19198 Posts
April 13 2018 15:24 GMT
#19085
I don't. If I want to keep something private I put it on BitBucket.
Liquipediaasante sana squash banana
emperorchampion
Profile Blog Joined December 2008
Canada9496 Posts
April 13 2018 18:09 GMT
#19086
On April 14 2018 00:00 travis wrote:
thanks for all the replies!

do any of you pay for private accounts?


As a student you can get a lot of free benefits from github (including free private repos).
TRUEESPORTS || your days as a respected member of team liquid are over
Manit0u
Profile Blog Joined August 2004
Poland17706 Posts
April 13 2018 20:06 GMT
#19087
On April 14 2018 00:24 tofucake wrote:
I don't. If I want to keep something private I put it on BitBucket.


+1
Time is precious. Waste it wisely.
Excludos
Profile Blog Joined April 2010
Norway8243 Posts
April 13 2018 21:22 GMT
#19088
On April 14 2018 05:06 Manit0u wrote:
Show nested quote +
On April 14 2018 00:24 tofucake wrote:
I don't. If I want to keep something private I put it on BitBucket.


+1


+2. Bitbucket works really nice for private projects (We use Bitbucket for all work related stuff), and it can be integrated with a lot of other stuff. Github should be filled with personal projects for future employers to have a look at tho.
sc-darkness
Profile Joined August 2017
856 Posts
Last Edited: 2018-04-18 18:01:04
April 18 2018 17:48 GMT
#19089
Ok, what the fuck is the problem with std::string and std::wstring on Linux and Windows?

I see that std::string is somehow magically "UTF-8 ready" on Linux. On the contrary, Windows prefers std::wstring for unicode. Yet, std::wstring is 4 bytes on Linux and only 2 bytes on Windows. How does that make std::wstring less desirable on Linux? Why? Clearly wstring is larger so it could hold more characters? And why is this fucked up on an OS level? I just don't understand all this mess.

Link: https://stackoverflow.com/questions/402283/stdwstring-vs-stdstring?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

Edit: Are we meant to use these now?


3) UTF-8 encoded string literal. The type of a u8"..." string literal is const char[].
4) UTF-16 encoded string literal. The type of a u"..." string literal is const char16_t[].
5) UTF-32 encoded string literal. The type of a U"..." string literal is const char32_t[].
Excludos
Profile Blog Joined April 2010
Norway8243 Posts
Last Edited: 2018-04-18 18:32:25
April 18 2018 18:29 GMT
#19090
This is one of many many reasons why I think std::string is an abysmal implementation of string for c++, and why it's always preferably to use literally anything else.

The gist of it is: Windows doesn't have unicode in std::String, but Linux does. wstring doubles the size so you can fit in more characters, but on Linux it already has all the characters, making it larger for literally no reason. That said the 2/4 bytes as mentioned in the stackoverflow post should definitively be wrong, as 4 bytes is the required minimum for full unicode, while 2 bytes will only give you ascii. So those numbers are probably for string, and not wstring.

edit: should also mention that wstring will still work on Linux, and size doesn't really matter that much these days unless you're programming for a potato. So if you're making a program which is suppose to compile on both windows and linux, then you'll want to use wstring (or, like I said: Literally anything else)
nunez
Profile Blog Joined February 2011
Norway4003 Posts
Last Edited: 2018-04-18 19:10:48
April 18 2018 19:08 GMT
#19091
you guys very confused. i suggest getting comfortable with the concept of a class template, and then return to trying to understand what std::string and std::wstring is. they are totally independent of any semantic attached to their data.

a glass bowl is an abysmal implementation of fruit salad. one of the many reasons is that it doesn't contain pieces of fruit. you need to like put it them in there yourself.
conspired against by a confederacy of dunces.
Excludos
Profile Blog Joined April 2010
Norway8243 Posts
Last Edited: 2018-04-18 19:13:29
April 18 2018 19:12 GMT
#19092
On April 19 2018 04:08 nunez wrote:
you guys very confused. i suggest getting comfortable with the concept of a class template, and then return to trying to understand what std::string and std::wstring is. they are totally independent of any semantic attached to their data.

a glass bowl is an abysmal implementation of fruit salad. one of the many reasons is that it doesn't contain pieces of fruit. you need to like put it them in there yourself.


This is so unreasonably unhelpful for anything that was ever stated I wonder why you even bothered. It's so vague I can't even fathom who you're answering or what about.
nunez
Profile Blog Joined February 2011
Norway4003 Posts
April 18 2018 19:36 GMT
#19093
for shame.
conspired against by a confederacy of dunces.
sc-darkness
Profile Joined August 2017
856 Posts
Last Edited: 2018-04-18 20:31:29
April 18 2018 20:11 GMT
#19094
On April 19 2018 04:12 Excludos wrote:
Show nested quote +
On April 19 2018 04:08 nunez wrote:
you guys very confused. i suggest getting comfortable with the concept of a class template, and then return to trying to understand what std::string and std::wstring is. they are totally independent of any semantic attached to their data.

a glass bowl is an abysmal implementation of fruit salad. one of the many reasons is that it doesn't contain pieces of fruit. you need to like put it them in there yourself.


This is so unreasonably unhelpful for anything that was ever stated I wonder why you even bothered. It's so vague I can't even fathom who you're answering or what about.


He refers to this popular idea of treating std::string like a dummy container of characters (very much like binary serialisation where you have to know how to treat data?). It's usually recommended to treat it as UTF-8, then you convert it to wide strings when you deal with Windows API. You have to do conversions in both directions. Also, if you need string manipulation (string.find, string.at, etc), then wide strings are preferable. He said it in an asshole-ish way, but I'm not surprised considering what kind of horrifying C++ code he posted here in the past. I'd definitely avoid his code style, but it seems he isn't good at explaining concepts either.

Edit: I re-read post about wstring and string on Windows and Linux. It's indeed a very fucked up thing to deal with. We suffer because of backwards compatibility support for code pages on Windows where ANSI string could be interpreted in different ways depending on if you have cyrillic Windows, Asian Windows, western Windows, etc.. Otherwise, std::string would have been fine both on Windows and Linux to deal with UTF-8. Fuck backwards compatibility. Let applications break the hard way so they are encouraged to switch to Unicode instead.
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
April 20 2018 00:52 GMT
#19095
I am trying to unit test decryption on Android while using a KeyGuardManager:

Android reference for KeyGuardManager

Sample Activity

How? It needs user input, right? How do you test that?
Can it be I stayed away too long? Did you miss these rhymes while I was gone?
Silvanel
Profile Blog Joined March 2003
Poland4744 Posts
April 20 2018 13:34 GMT
#19096
Generaly during unit tests You use stubs for anything You dont have.
If You want to test with real user input You are doing functional and/or component tests, not unit test.

I know its not really helpful but as a tester i like to be precise with a vocabulary.
Pathetic Greta hater.
Artesimo
Profile Joined February 2015
Germany567 Posts
April 20 2018 14:32 GMT
#19097
Testing is for people who code too weak so they have to check if it works anyways

And yes, thats a quote which I got in response to me trying to convince someone how fun Mockito is for (java) testing.
Excludos
Profile Blog Joined April 2010
Norway8243 Posts
April 20 2018 14:35 GMT
#19098
On April 20 2018 23:32 Artesimo wrote:
Testing is for people who code too weak so they have to check if it works anyways

And yes, thats a quote which I got in response to me trying to convince someone how fun Mockito is for (java) testing.


Or the quote my boss gave me when I told him we desperately needed to implement some unit testing in our consistently breaking system. "You should have just made it better to begin with" and "We don't have time to do testing right now, the system needs to work first". The irony of the last statement was lost on him.

On a completely different topic: I'm starting in a new job next week xD
Manit0u
Profile Blog Joined August 2004
Poland17706 Posts
Last Edited: 2018-04-20 15:26:20
April 20 2018 15:24 GMT
#19099
Has anyone worked with AWS SDK before?

Their API is behaving really weird recently. We have everything configured, region set to 'eu-central-1', endpoints are correct, buckets are fine, presigned urls are generated properly etc.

The problem arises when you try and call ".exists?" method on the AWS object. It returns AWS::S3::BadRequest error every time. I've managed to capture and fully analyze one such exception - its stack trace was useless and it had no message, instead it had this huge context object attached, which had a ton of other object inside.

Anyway, I've managed to get down to the requests and responses that this API is sending behind the scenes (it's Amazon's library, not our own) and it appears that request headers refer to credentials as being on 'us-east-1'. I've checked and nowehere in our entire system do we mention 'us-east-1' region for S3...

Any idea what could be going on here? Looks like some stupid defaults but I see no reason for them to be set since we explicitly set all the variables in AWS config...

I remember that they mentioned something about newer version of their API requiring region and endpoint to be set, but we did that already.
Time is precious. Waste it wisely.
sc-darkness
Profile Joined August 2017
856 Posts
Last Edited: 2018-04-20 22:34:22
April 20 2018 17:35 GMT
#19100
C++ question: Does anyone know what happens if you use ANSI Windows API functions where you pass UTF-8 std::string? I thought that wasn't supposed to be ok, yet it doesn't seem obvious if it's broken. It's hard to debug at this point.
It's really annoying that there is no standard UTF variant to use. Windows prefers UTF-16, while Linux and maybe HTTP prefer UTF-8.

Edit: CreateFileA doesn't seem to work with UTF-8 then.
Prev 1 953 954 955 956 957 1032 Next
Please log in or register to reply.
Live Events Refresh
The PiG Daily
22:00
Best Games of SC
Maru vs Solar
Rogue vs MaxPax
herO vs Clem
SHIN vs ByuN
herO vs SHIN
TBD vs ByuN
PiGStarcraft543
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft543
ViBE215
mouzStarbuck 112
Ketroc 53
StarCraft: Brood War
Shuttle 511
LancerX 32
NaDa 29
Rock 10
Moletrap 6
Super Smash Bros
C9.Mang0401
AZ_Axe134
Other Games
summit1g8908
tarik_tv4774
shahzam454
crisheroes195
ProTech129
ToD20
Organizations
Other Games
BasetradeTV48
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• Berry_CruncH123
• Hupsaiya 111
• davetesta27
• RyuSc2 25
• Kozan
• Migwel
• AfreecaTV YouTube
• sooper7s
• intothetv
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• HerbMon 12
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Other Games
• imaqtpie764
• Scarra746
• Shiphtur136
Upcoming Events
RSL Revival
9h 9m
Cure vs Zoun
herO vs Rogue
Platinum Heroes Events
14h 9m
BSL
19h 9m
RSL Revival
1d 9h
ByuN vs Maru
MaxPax vs TriGGeR
WardiTV Team League
1d 11h
BSL
1d 18h
Replay Cast
1d 23h
Replay Cast
2 days
Afreeca Starleague
2 days
Light vs Calm
Royal vs Mind
Wardi Open
2 days
[ Show More ]
Monday Night Weeklies
2 days
OSC
2 days
Sparkling Tuna Cup
3 days
Afreeca Starleague
3 days
Rush vs PianO
Flash vs Speed
Replay Cast
4 days
Afreeca Starleague
4 days
BeSt vs Leta
Queen vs Jaedong
Replay Cast
4 days
The PondCast
5 days
Replay Cast
5 days
RSL Revival
6 days
Replay Cast
6 days
Liquipedia Results

Completed

KCM Race Survival 2026 Season 1
WardiTV Winter 2026
Underdog Cup #3

Ongoing

BSL Season 22
CSL Elite League 2026
CSL Season 20: Qualifier 1
ASL Season 21
Acropolis #4 - TS6
2026 Changsha Offline CUP
RSL Revival: Season 4
Nations Cup 2026
NationLESS Cup
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

CSL Season 20: Qualifier 2
CSL 2026 SPRING (S20)
Acropolis #4
IPSL Spring 2026
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 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 © 2026 TLnet. All Rights Reserved.