1,489 karma · joined November 6, 2012
Also, it will include the null terminator. Probably won't do any harm but quite silly if you're redirecting to a file for example. I'd subtract one, or use strlen which would cover the pointer case above and I'd hope a modern compiler would elide the call on a string literal anyway.
[1] #define szstr(str) str,sizeof(str)
And I'm not the GP, but I agree. To expand my thoughts:
- The free version is vastly inferior to lichess.org, and it nags you to upgrade at every opportunity.
- They are anti-competitive to the point of censoring the mention of lichess on their forums (for e.g. feature requests) [1]
- I guess it's subjective how paid chess.com compares to lichess.org but I much prefer lichess.
- Minor UX/UI annoyances (you can't give your opponent time or allow takeback requests in a rated game, etc.)
- The price of diamond membership is quite steep for a chess website, but I guess compared to lichess.org anything is quite steep.
Thinking about it further, I guess chess.com seems extra bad because of the existence of lichess.org which is just amazing (100% open source including the apps, zero ads, open API, can download the database of all games, etc.)
Full disclosure, I'm a diamond chess.com member (signed up in January for a year) because I'm quite a chess enthusiast and really wanted to see if it was worth it. It's not, in my opinion.
[1] https://www.reddit.com/r/chess/comments/qudyuq/why_streams_w...
That is, if you have for example a 27" 4K monitor next to a 27" 1080p monitor then the 1080p version is treated as though it's 25% of the size and the mouse gets "stuck" in the 4K monitor unless you're within the 50% of the screen that Windows thinks your 1080p monitor is adjacent to. This works sanely in macOS as it rightly treats each monitor as having the same size.
It's even more comical if you have a very high dpi laptop next to a 1080p or 1440p large desktop monitor.
What's Fig's target audience? Developers.
Developers have been using a tried and tested way to keep configurations for decades -- dotfiles. We sync them across all our devices using git (or any of a thousand other ways). This is a solved problem and doesn't require email addresses or logins.
Really, almost 1 in 10 households with 2 people in the world make more than $33,000 USD/month after tax?
Not convinced, this isn't even close.
Edit: yes, I see now this is monthly. Leaving it as-is so the replies make sense.
I'll start with https://github.com/rivo/tview/ and https://github.com/gdamore/tcell
int this_is_a_fairly_long_variable_name_1;
int this_is_a_fairly_long_variable_name_2;
Why? Because section 5.2.4.1 requires implementations to support at least 32 significant characters in external identifiers and section 6.4.2.1 says "If two identifiers differ only in nonsignificant characters, the behavior is undefined."
These ones may be more "obvious", but:
Given e.g. int a[4][5] then accessing a[1][7] is undefined even though one might assume it's like accessing a[2][2]
x << -3 is undefined behaviour though logically one might assume it should be equivalent to x >> 3
And the classic, very common newbie use of "fflush(stdin);" is also undefined.
- Github and git will highlight a missing newline in a diff by default.
- POSIX defines a line as having a newline at the end, so if you don't have a terminating new line you may have one fewer lines than you think you have [1]
- If you ever want to append to a text file/source file programmatically with something like echo "something at the end" >> yourfile.txt then you'll be grateful you had the habit of ending everything with a newline.
- If you use a shell that doesn't automatically add one when you do cat filename you'll end up with your prompt sitting awkwardly at the end of the file.
vim, iirc, defaults to automatically adding a newline to any file without you explicitly asking for it, unless you do set noeol and set binary or, in versions newer than 7.4, set nofixendofline
[1] https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1...
https://www.reuters.com/business/healthcare-pharmaceuticals/...