Comment on: [Humor] How to save the princess using 8 programming languages
2 06 Oct 2016 12:24 u/durchfall in v/programmingComment on: Looking to learn Win32, any tips would be appreciated
Most characters fit inside a single wchar_t, but things like emojis do not. Many developers fail to account for this, which can result in fairly subtle bugs.
Comment on: Looking to learn Win32, any tips would be appreciated
Once you get your head around the basics, is not too hard. Msdn is an excellent resource once you reach that level. One issue that might come to bite you in the ass is all the #defines.
For example, if you make a member function named "CreateWindow", it will actually end up being named CreateWindowW or CreateWindowA if you include windows.h.
Unicode in Windows is utf16, which brings a potential of obscure bugs if you fail to consider surrogate paid (aka emojis will fuck up your sit)
Comment on: Agile, Unit tests and rapid release cycle is pure evil.
I hate agile since in best case it's ScrumBut but more commonly it's anarchy.
Comment on: tbox: v1.5.2 released
For anybody else who don't know what it is:
TBOX is a multi-platform c library for unix, windows, mac, ios, android, etc.
It is similar to glibc, but simpler and more convenient. It includes asio, stream, network, container, algorithm, object, memory, database, string, charset, math, regex, libc, libm, utils and other library modules.
Comment on: Which programming language to learn first [infographic]
Python is (for some definitions of the word) great for beginners!
Does a plethora of features scare you? No problem with python, as it even lacks multi-line comments!
Need to floobify something? No problem, just pip install floobify and you're on your way. Want to know how it is working with crappy 3rd party code? Well, pip install got you covered there as well since most python packages are either retarded, buggy, or both!
Type hinting will quickly teach you how nice static typing is and make you crave the real deal. Hell, even the Python2/Python3 deal will teach you how nice and horrible backwards compatibility is!
Comment on: Policheck - Remove the term "whitelist"
I'm pretty sure policheck is an automated tool, so no breathing required!
Comment on: Is mongodb database ACID compliant enough for Inventory/CRM/Accounting systems of small businesses?
AFAIK mongodb can be considered ACID-compliant with some MASSIVE caveats, but you probably want some additional things like transactions.
It's extremely rare that you actually need nosql for performance, so don't throw away the very notable advantages of proper SQL databases for nothing. If you end up so successful that no existing SQL server is fast enough, you can probably steal some top employees from facebook and google to fix that.
mongodb/redis/etc is popular for the same reason planking was popular: a lot of people simply don't know any better.
Then you get two stack traces