Pinboard (jm)
https://pinboard.in/u:jm/public/
recent bookmarks from jmThe Configuration Complexity Clock2019-07-15T13:27:58+00:00
http://mikehadlow.blogspot.com/2012/05/configuration-complexity-clock.html?m=1
jmFrustratingly there are still some business requirements that can’t be configured using the new [post-config-file] rules engine. Some logical conditions simply aren’t configurable using its GUI, and so the application has to be re-coded and re-deployed for some scenarios. Help is at hand, someone on the team reads Ayende’s DSLs book. Yes, a DSL will allow us to write arbitrarily complex rules and solve all our problems. The team stops work for several months to implement the DSL. It’s a considerable technical accomplishment when it’s completed and everyone takes a well earned break. Surely this will mean the end of arbitrary hard-coded business logic? It’s now 9am on the clock.
Amazingly it works. Several months go by without any changes being needed in the core application. The team spend most of their time writing code in the new DSL. After some embarrassing episodes, they now go through a complete release cycle before deploying any new DSL code. The DSL text files are version controlled and each release goes through regression testing before being deployed. Debugging the DSL code is difficult, there’s little tooling support, they simply don’t have the resources to build an IDE or a ReSharper for their new little language. As the DSL code gets more complex they also start to miss being able to write object-oriented software. Some of the team have started to work on a unit testing framework in their spare time.
In the pub after work someone quips, “we’re back where we started four years ago, hard coding everything, except now in a much crappier language.”
(via Oisin)]]>configuration scripting dsls script config rules-engines rules via:oisin dsl coding hard-codinghttps://pinboard.in/https://pinboard.in/u:jm/b:2dcb1cf251ce/The programming error that cost Mt Gox 2609 bitcoins2014-05-29T14:12:21+00:00
http://www.righto.com/2014/03/the-programming-error-that-cost-mt-gox.html
jmWhile analyzing coinbase transactions, I came across another interesting bug that lost bitcoins. Some transactions have the meaningless and unredeemable script:
OP_IFDUP
OP_IF
OP_2SWAP
OP_VERIFY
OP_2OVER
OP_DEPTH
That script turns out to be the ASCII text script. Instead of putting the redemption script into the transaction, the P2Pool miners accidentally put in the literal word "script". The associated bitcoins are lost forever due to this error.
(via Nelson)]]>programming script coding bitcoin mtgox via:nelson scripting dslshttps://pinboard.in/https://pinboard.in/u:jm/b:a14c815def53/