1,260 karma · joined Nov 2, 2009 (17y ago) · 479 submissions
comment 5y ago · link · parent
[0]: https://ec.europa.eu/cefdigital/wiki/display/CEFDIGITAL/eInv...
comment 5y ago · link · parent
alias dogit='GIT_WORK_TREE=/path/to/src/dir GIT_DIR=/path/to/dotgit/dir git'
dogit pull remote treeish
---I set this up as a "poor man's version control" on a large client's server back in 2016-ish. I was lost for words when last year I saw my colleagues still using Ctrl-R to rerun that alias line.
comment 5y ago · link · parent
General accessibility be damned.
<noscript> fallback messages be damned. (Except when snitching on your page views to Google Analytics, that's too important to be neglected! I wonder if GA has any default marker to let their customers distinguish these views from normal ones, or if that's still left to each customer to implement manually.)
UI customizations in the form of browser extensions and styles be damned.
Ad blocking be damned.
comment 5y ago · link · parent
Generally, it should be noted that an <a> tag is only appropriate if it makes sense to right-click this element and get options to "open in new tab" or "add to bookmarks". All the stupid "buttons" implemented as <a href="#"> + e.preventDefault() need to die.
comment 5y ago · link · parent
[0]: https://stripe.com/partners/apps-and-extensions/invoicing
comment 6y ago · link · parent
PHP closures have to specify which variables they close over, and whether it's done by-val or by-ref [0].
Nowadays there's also a shorthand single-expression-closure syntax that closes implicitly and by value [1].
[0]: https://www.php.net/manual/en/functions.anonymous.php#exampl...
comment 6y ago · link · parent
And there's also XKCDB [1].
comment 6y ago · link · parent
† (if you follow these rules I memorized to show off how smart I am).
---
comment 6y ago · link · parent
The first one, ExecuteXML, takes an <XmlBody> representing a regular SAP B1 XML request and passes it on to one of the real SAP services. We have to find our own XSDs for the inner part, because they sure as hell don't have those.
The second one is ExecuteSQL. It lets us run raw SQL against the SAP database. It doesn't have any support for prepared parameters. What it does have is a blacklist to prevent DDL and other funny business, such as semicolons. This blacklist runs on the raw string you send, and doesn't understand any escape characters. To send a string containing a literal semicolon, I had to turn it into CONVERT(VARCHAR(MAX), 0x...).
comment 7y ago · link · parent
[0]: https://www.w3.org/International/questions/qa-personal-names
comment 7y ago · link · parent
This reminds me a lot of Perl with its creative naming for things, e.g. promises giving you a `Vow` object that you can `keep()` or `break()`. Or how you `bless` an associative array into becoming an object of a certain class.
On the one hand, it is good to have precise and specific terms without reaching for a thesaurus or overloading the same term (e.g. the many meanings of `static` in C).
On the other hand, if every framework and language invents its own terms for everything under the sun, that will not help polyglots or newcomers.
(On the third hand, we have foreigners trying to spot a difference between a "promise" and a "vow".)
Promises are my favourite example of this, because just between C++, C#, JavaScript, and Perl, I can find three-and-a-half different taxonomies for the same functionality.
comment 7y ago · link · parent
[0]: https://developer.mozilla.org/en-US/docs/Web/API/Window/even...
comment 7y ago · link · parent
[0]: https://www.reddit.com/r/programming/comments/ar1qj1/_/egl52...
comment 7y ago · link · parent
It should be noted that the Soviet state was very aggressive in whitewashing themselves and marring their opponents. "Who needs your damned truth if it makes our lives more difficult", one of their leaders said. Their documents should not be taken at face value.
comment 7y ago · link · parent
[0]: https://en.wikipedia.org/wiki/Totskoye_nuclear_exercise