917 karma · joined Nov 17, 2014 (12y ago) · 333 submissions
comment 6y ago · link · parent
People will come up with many ways to generate profane language. See guids/uuids for example, or l33tsp34k. A major change to hypothetically prevent a single case seems unbalanced.
comment 6y ago · link · parent
Ten, eleven and twelve are unique names and probably have their entymology derived from a base-12 numbering system once primarily used in Anglo-speaking countries.
comment 7y ago · link · parent
comment 7y ago · link · parent
In other words, it's still possible to pass in a separate js object instance containing the configuration.
Yet I'm not sure about the whole of your arguments, so I can't tell if it would actually make sense to wrap the default js builder pattern implementation (the javascript object initializer syntax aaaaaaaaaaab refers to).
However, I do method builders often overused in API's where a simple singular builder method combined with builder classes suffice and simplify.
comment 7y ago · link · parent
If you're interested in my implementation: https://github.com/generateui/jsettlers-web/blob/master/src/... https://github.com/generateui/jsettlers-web/blob/master/src/... https://github.com/generateui/jsettlers-web/blob/master/src/... https://github.com/generateui/jsettlers-web/blob/master/src/...
A hex has a coord. A coord has 6 nodes and 6 edges. An Edge can be created from 2 coords or 2 nodes. A node can be created from 3 edges or 3 coords. The implementation is immutable and memoized.
comment 7y ago · link · parent
comment 7y ago · link · parent
Though it's true that monorepos without proper discipline can tend towards coupling. Yet, when discussing mono vs poly, we should keep this in mind.
comment 7y ago · link · parent
Implementation would be interesting and most likely quite hard to achieve, though.
comment 7y ago · link · parent
comment 7y ago · link · parent
It's a shame though that we don't represent them as such in the current state of affairs but choose to implement them separately in every language. Can we have a fast, universal, feature complete parser generator that is natively supported in our mainstream languages?
For instance, think adding an ANTLR grammar into a .NET project and then be able to just do `var ipAddress = ip"127.0.0.1";` and get full editor support with that.
comment 7y ago · link · parent
In effect, his argument is: 1) You have `public X Do(Y y)` changed into `public X Do(Option<Y> y)`. This will break your API. 2) You have `public X Do(Y y)` changed into `Option<X> Do(Y y)`. This will break your API.
Thus, do not use Option<T> or equivalent in your API's. Only use a language-supported construct such as C#8's upcoming `string?` and `string`.