292 karma · joined Mar 14, 2017 (9y ago) · 123 submissions
comment 8y ago · link · parent
I've not found Go difficult to navigate because of repetition. Quite the reverse really - it's easy to reason about where everything comes from and (usually) easy to work out how everything connects together. I would take that any day over a large Java codebase with the usual obfuscations of dependency injection, or a Python or C++ codebase where somebody has tried to be "clever".
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
And I did not miss that point, thank you. I just disagree with it. I don't think banks make their primary income from fees; current accounts are still basically a loss leader.
comment 8y ago · link · parent
They actually don't. Most ATM fees and inter-bank payments (at least in the UK / Europe) are swallowed by the banks rather than exposed to customers.
> So yes, it is very possible to make a profit by not only having those things but having that without fees.
How? As far as I can tell you're describing a bank that runs deposit accounts but doesn't loan the money back - that is not obviously a profitable enterprise. Something in the whole scheme has to make some money to pay for the employees, the infrastructure, and all the other fixed costs.
comment 8y ago · link · parent
Anyway, noted that it's a very early version, so good luck with it!
comment 8y ago · link · parent
comment 8y ago · link · parent
I tried doing more or less that (compiling a C++ Windows app for 64-bit) a few jobs ago and eventually discovered that way down in a library somewhere a dev (who had long since departed) did some trickery in string processing routines that relied on arguments being lined up on the stack, which is no longer the case with the x86_64 calling convention. That remains the worst piece of code I've ever worked with - it's innocuous to look at, and any developer who understands why that works should also have known better than to do it.
More generally, integer size issues can arise - if `int` remains 32 bits it's no longer enough to capture the difference between two pointers (and obviously should never have been used for that, but often these things happen).
comment 8y ago · link · parent
The exceptions seem to be how it signals failure if the token doesn't match, but they aren't being used for unbounded lookahead.
comment 8y ago · link · parent
It's written in Go so doesn't need any external dependencies unless you want to target that language (i.e. it only needs a JDK if you're trying to build Java).
Disclaimer: I'm the main author.