adamzapasnik
Joined 7 years ago
Joined 7 years ago
What if you have a complex/dynamic query, how do you build it? You said yourself that AR works better than concatenating SQL strings, but AR doesn't even support CTEs atm and building complex queries is not trivial and sometimes even possible without just SQL strings...
No good, community backed serialisation gem. AMS is a mess, other ones are not maintained. And I'm not a fan of JSON api spec's serialisation either.
But also AR doesn't have any easy tools to construct complex queries/multi queries. It works for basic and medium stuff, but even this very common count problem is a disaster to deal with. Sure. you can use Arel and some other gems, but these aren't good solutions for someone that wants to get things done. Makes me wonder how others deal with these problems tbh.
Gonna share a link to my Elixir related project (formatter for .html.l?eex files) that readers will probably find useful. https://github.com/adamzapasnik/prettier-plugin-eex
I actually learnt two lessons:
4 days a week is something I'm looking forward when I have a profitable side project.
5 days x 6 hours imo is better than 5 x 8 hours, better to be less tired and maximize next day's most productive hours than to be tired and burn out eventually
- some kind of manual labour or any kind of movement, sitting at a desk all time is boring and unhealthy
- some kind of social interactions, I don't count tech-talking as one
I don't even think that this is RuboCop's fault but Ruby's. Because you can write said code in a lot of different ways (like shown in the post).
But this way you have to write couple of classes more, couple of variables more. And with Tailwind you just define/change value in the config and you have all the classes generated, so the changes are minimal.
- you can copy the classes from html directly into @apply (you need to tinker a bit more to get responsive/hover/etc classes to work, though)
- you work with predefined values, so if you switch color in tailwind.config.js, it's gonna get correct value in the @apply class too.
That's the way I see it
The way I see it, pre-phone their daughter was probably much more engaged with her parents and was doing more manual creative stuff. After the phone appeared, she distanced herself and got absorbed by it.
I don't get why so many people here are trying to defend smartphones/social media?
Isn't it pretty obvious they are addictive? And to a young kid, that doesn't know any better, it can get really bad.
Prefer just "good job" comments, or what?
Products: - retrochat.xyz - private MVP, soon to be released (2020) :wink: