I'm pleased to announce v1 of Tom's Data Onion — a programming puzzle in a text file.
Let me know what you think! #TomsDataOnion
https://t.co/zWcHtEj8p7
@nateberkopec Deprecating controllers specs in favour of request specs was a step in the right direction, although not everyone seems to have got the memo.
@nateberkopec Yeah, basically. An endpoint is an easily-testable function that takes a request and returns a response (streaming responses are a bit different, but still). Rails gonna Rails, though.
@allenholub Let’s have a look at Shi'er lü, the ancient Chinese music scale from before Big Pythagoras started spreading fake news. What a coincidence that it uses the same ratios.
@allenholub And what makes notes sound good together, Allen? Why are fifths always harmonic? Of course Pythagoras didn’t invent music. Do you also argue that gravity has no relation to math because Newton didn’t invent gravity?
If you're unable to create a majestic monolith with basic programming tools like encapsulation and namespaces, you don't have what it takes to improve upon the situation with a distributed swarm of microservices. Your spaghetti code will just be on five different plates.
@brandontroberts Probably “this should be reusable” (which btw is not feedback I’d typically give). IMO reviews are about the code, and less about who wrote it.
@HashNotAdam Packwerk is exactly the kind of thing you want at larger team sizes, but it’s also going against the grain of Rails. DHH is a lone wolf and Rails is his personal “survival kit”, so it’s not surprising, just annoying that we have to rely on e.g. Shopify to make workarounds.
@HashNotAdam It’s less frameworks succeeding/falling, and more designs being better/worse. E.g. ActionController scales okish. There’s no reason why better design has to be less flexible. It should actually be the opposite. Bad design restricts your options, which is why AR is painful.
@MissRahee That’s the ideal, and if you can enforce that standard it will help. Even so, you can still run into the problem of important/risky things being deferred until late in the project.
@MissRahee Thanks Adam! In the article I was imagining that stuff was still getting done every cycle and being demoed. IMO demos show velocity, but don't necessarily derisk the project. Put another way: demos show that things are getting done, but don't ensure they are the right things.
@nateberkopec Yep, but it at least gives control to the frontend, vs a typical REST API that responds with everything regardless of whether the frontend wants it. Some sophisticated REST APIs do give you that control, but they're not common and kinda complicated to implement well.
@GranataLLC @unclebobmartin@martinfowler “Recovery” or “rest” implies that you’re deliberately working at an unsustainable pace. If the pace was sustainable then rest wouldn’t be necessary.