Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
thom
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
40 ms
·
691.
▲
by
thom
3y ago
In Clojure, for example, tests are defined by a macro that decorates a function with certain metadata marking it as a unit test. So they can live and be run from anywhere, but get stripped out of proper builds. You can also go one further,
692.
▲
by
thom
3y ago
How recent are these experiences? Sad to note that Sheldon Menery died recently, but he had as much influence as anybody on cracking down on cheating in organised play.
693.
▲
by
thom
3y ago
For the benefit of downvoters, let me explain myself: the 'reducing function' (also called a 'reducing step function' in other parts of the docs) isn't always what you'd think of as the normal arity-2 function
694.
▲
by
thom
3y ago
That's just bad code, and yes, that happens. But if you can write it in a commit message you can capture it somewhere else that people will actually see without having to root around in a completely separate system.
695.
▲
by
thom
3y ago
Online, the answer is Arena. You can get started for free and if you never want to spend anything it’s possible to grind the resources you need to acquire new cards and compete in tournaments. You can get all the way to money prizes this wa
696.
▲
by
thom
3y ago
An isolated failing integration test implies a better unit test could exist somewhere. But as you point out, you still probably came out ahead by not writing _all_ the possible unit tests you could have.
697.
▲
by
thom
3y ago
I’m always surprised this is controversial but: everything you write in a commit message should be evident from your code and its comments. Nobody should ever have to look at git history to understand a codebase.
698.
▲
by
thom
3y ago
Just to intensify the sacrilege here: I’ve been happy testing private behaviour with tests directly alongside the code. This way you can easily sweep away the test code if you change the implementation, and it serves as decent documentation
699.
▲
by
thom
3y ago
What effect would this have on the type of people would got to go to college?
700.
▲
by
thom
3y ago
I’ve always felt any mention of reducers is a big distraction. They’re not really key to the idea of transducers which are almost entirely about pure sequence to sequence transforms.
701.
▲
by
thom
3y ago
In fairness, it’s hard to picture a scenario where you couldn’t have an IEnumerable wherever you might want one.
702.
▲
by
thom
3y ago
It’s the mapping itself that can be composed with transducers. Where before you had pipelines of map/filter/whatever, now you have a single function representing the sequence operations, which can be used for any kind of sequence
703.
▲
by
thom
3y ago
Huh, you're not wrong. The other time I quite shamelessly hacked something together with my son in Roblox Studio just to show what was possible. I did have to resist scorning all the snippets of code I came across (and I do think there
704.
▲
by
thom
3y ago
Also the one place you can play Contract from Below, so technically the format is even more powerful than Vintage!
705.
▲
by
thom
3y ago
Yeah, I could read those deck lists all day. Wonderful stuff.
706.
▲
by
thom
3y ago
Yeah, same with programming certainly - the feeling as a kid of just pushing through to get something done no matter what the code looks like. Now you’re second guessing everything and trying to do a professional job. But it’s rare as an ad
707.
▲
by
thom
3y ago
Magic has been such a huge part of my life. At my lowest point after moving to a new town, we were gifted a pile of cards from one of my dad’s coworkers. It was the only thing keeping me going and more or less saved my relationship with my
708.
▲
by
thom
3y ago
Excited if the next article is about Shandalar. Every few years I find myself coming back to that (and building some unbeatable version of The Deck).
709.
▲
by
thom
3y ago
Mine are the Canon 10x42. More money than you should really be spending on something nonessential but I swear the effect is mind expanding. Probably cheaper to get a good tripod though.
710.
▲
by
thom
3y ago
Bought some image stabilising binoculars recently, admittedly on a bit of a whim but the experience is quite magical. Excited to see if they're any good for stargazing!
711.
▲
by
thom
3y ago
Even if it only sold 5000 copies, I remember getting the DVD in the swag bag for StackOverflow dev days, so it must have reached a pretty big international audience over time.
712.
▲
by
thom
3y ago
Not to drag up dirt, but the drama was someone’s quite public suicide and I suspect Joel concluded the bad PR wasn’t worth the good will generated otherwise.
713.
▲
by
thom
3y ago
Many of the recent bannings haven’t been accidental combos though, they’ve just been power creep. Wizards is in a tough spot these days because Commander players and people playing cube want a constant stream of new cards that have to be us
714.
▲
by
thom
3y ago
I suspect some fine tuning could solve this, or perhaps somehow train on 17lands.com pick orders to establish power levels?
715.
▲
by
thom
3y ago
I bought this app when it was maps.me out of a weird prepper urge to have more offline stuff on my phone (shout out to Kiwix for offline Wikipedia, and modern phones for having terabytes of storage). But then I grew to absolutely love it, t
716.
▲
by
thom
3y ago
I agree, but a lot of popular window managers aren't very good.
717.
▲
by
thom
3y ago
They do, and PowerToys also has some additional functionality in FancyZones, but it's still not perfect. It's hard to express "I want exactly this window alongside exactly this other window" purely via the keyboard, it&#
718.
▲
by
thom
3y ago
Yeah, I'm not arguing for humungous screens. It just seems like window managers aren't up to scratch for that much real-estate, and the traditional "two full screen windows side-by-side" setup enabled by dual monitors is
719.
▲
by
thom
3y ago
Gotcha. I must admit on Linux especially where I just have Ctrl+1, Ctrl+2, Ctrl+3 mapped to virtual desktops, I'm not unhappy on a single screen. I'm just aware that 20 years ago when it started to become more common, it was one o
720.
▲
by
thom
3y ago
I've never really seen it as multi-tasking, just that a lot of knowledge work involves inputs and outputs (edit web page/ previous web page, edit code/view test results, read requirements/write spec etc). Those can often
More ›