1,260 karma · joined Nov 2, 2009 (17y ago) · 479 submissions
comment 7y ago · link · parent
1. Generic typehints, for one. Typehinting half the methods as returning a generic `array` is not fun.
2. And that's before you even remember that PHP's array is both a vector and a hashmap, so you need to install a PECL extension or a third-party library to get proper Map/Sequence/etc.
comment 7y ago · link · parent
Granted, those technologies are not as widely used and that limit, if absent, would not inconvenience the user as quickly and easily as CPU/memory hogging does.
comment 7y ago · link · parent
[0]: https://twitter.com/JackyHallyday/status/968263408003973121
comment 7y ago · link · parent
[0]: https://www.johndcook.com/blog/2010/06/07/math-library-funct...
[1]: https://en.wikipedia.org/wiki/Multiply%E2%80%93accumulate_op...
comment 8y ago · link · parent
R. A. Heinlein, Life-Line (1939)
comment 8y ago · link · parent
Both approaches have tradeoffs:
- TSV files can have so many columns that you can't really edit them in a text editor, you'll never find your place. Some of these in D2 have more than 256 columns.
- INI files don't give you a full list of configurable parameters, so you might not even know what flags the engine supports if they're mentioned only once in the entire file or not mentioned at all. Some object types in Red Alert 2 support over 700 flags, not all of them are actually used in the default config…
- two items described in a TSV file are easier to compare than two INI sections, with INI you need a second editor window and some ordering of the keys to make sense of things.
- on the other hand, diffing a TSV file for changes is a lot more challenging.
At the time, I remember thinking how a proper database would make this easier.
---
I have also seen a game where a \n was used as a record separator and \r was used to insert newlines into the text string within a record. Fun times when your text editor tries to "intelligently" handle and normalize line endings.
comment 8y ago · link · parent
I was wondering the same thing. The only relevant item I could find is in bug 1402890 [0] linked in the very last comment. It says:
> Websites dictating what goes in a user's bookmark without any way to change that would be a terrible idea. Doubly so if it's secretly stored without even being viewable.
To me that seems like a valid privacy concern, but it should be solvable without discarding the entire feature. The "it's too hard to maintain this, let's just drop it, some volunteer will implement this again if it's needed (yeah, it won't integrate with our own UI like the current solution does, so what)" mindset in both those bugs just reeks of CADT [1].
comment 8y ago · link · parent
If you've ever had to debug a misbehaving Knockout template just to find it was referencing a misspelled object property, you can appreciate how much cleaner TSX templating is.
comment 8y ago · link · parent
Also worth noting is that not all config files are committed to version control as-is. If a deployment process bakes the config file from variables, it can be even more disconnected and difficult to find the change.
comment 8y ago · link · parent
I download a lot of that content too (sans the chargeback). I like to have it available locally, even when the internet is down, when the site decides to take a particular video down for whatever reason, or even when my account expires. And paying for it makes it just a little more likely they will continue to produce more of it in the future.
comment 8y ago · link · parent
My brain cycles are limited. I would rather let my toolchain catch the trivial errors and focus on more important tasks. I love TypeScript and React/JSX for this – typechecking my code, including views with data bindings and event listeners, saves my sanity.