Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
midrus
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
33 ms
·
301.
▲
by
midrus
5y ago
In my opinion, it is! Imagine you have a dropdown, or a list of items, etc which is composed of more than one single markup element, such as a couple divs, an ul and a li for each element. Wrapping all of this into a component helps reusing
302.
▲
by
midrus
5y ago
I've tried this and, honestly, I don't like it. Reason number one is how verbose it becomes on the templates when you have to pass a "body", it's at least 4 tags... when you have many nested tags it becomes messy. A
303.
▲
by
midrus
5y ago
Slippers: https://mitchel.me/slippers/
304.
▲
by
midrus
5y ago
I've recently discovered Slippers [1] which provides something very similar but for Django Templates. I've tried it in a side project and it is amazing. I'm pairing it with Unpoly [2] and Tailwind and honestly, I wouldn'
305.
▲
by
midrus
5y ago
So untrue in my experience.....the amount of times I had to fight with external screen resolutions, bad looking fonts, scrolling issues in chrome, etc.
306.
▲
by
midrus
5y ago
You'll be back sooner than you think. Linux on the desktop has tons of problems, some of itself, some of the hardware you have to use with it, specially if we're talking about laptops. Using Linux on the desktop is like trying to
307.
▲
by
midrus
5y ago
Can you point me to the docs or those solutions? I haven't found them when I looked for. Of course there are tons of examples integrating with third party libraries, etc...but tying everything together is what worries me.
308.
▲
by
midrus
5y ago
Dokku is GREAT. I've been using it for about 4 years now and it's rock solid. I love it.
309.
▲
by
midrus
5y ago
Hi, honest questions of things I struggled a lot with when tried to build applications with his stack: What do you use for accessing the database or as ORM, etc? How do you do validations server side and show error messages to the user? How
310.
▲
by
midrus
5y ago
I use almost the same stack, except instead of Alpine + htmx I just use Unpoly. Have you tried it? If so, why did you prefer your choices? Any reason you'd recommend your approach? https://unpoly.com
311.
▲
by
midrus
5y ago
Nowadays I'm using Django + Unpoly + tailwind. I just discovered a few days ago slippers which is just what I was missing. Also using Huey for background jobs, whitenoise for assets, esbuild for building js. And finally dokku to deploy
312.
▲
by
midrus
5y ago
I think you don't find many problems because you're using firebase and that's outsourcing a lot of problems you'd face if you weren't using it. Many people don't want to be tied to a provider to this level (I t
313.
▲
by
midrus
5y ago
Same here. Nowadays I think Django and unpoly give me 99% of what I need. I always missed s way to do "components" server side instead of including chunks of templates, and recently found slippers, which for me completes tht 1% I
314.
▲
by
midrus
5y ago
It is really sad but in my experience the only improvement provided.bybthese tools are regarding developer experience (and some times, not even that!). We're trading our own dev experience and sacrificing our user's. For proof, lo
315.
▲
by
midrus
5y ago
I think this is great. Just something I always missed from Django templates and I think this implementation nails it. Great decisions such as not sharing parent context by default, all attributes being explicit, etc. I think this and Unpoly
316.
▲
Build reusable components in Django without writing a single line of Python
(mitchel.me)
2 points
by
midrus
5y ago
|
1 comments
317.
▲
by
midrus
5y ago
Isn't this conversation about React?
318.
▲
by
midrus
5y ago
Not even in this case I'd return. I prefer to be able to cook my own food, have lunch at home with my partner when she is here, not having to deal with the noises and all the chit chat around me all day, etc.
319.
▲
by
midrus
5y ago
I don't see anything wrong with this. GET request should be idempotent, and it protects me from bad actors abusing it to detect when I open an email.
320.
▲
by
midrus
5y ago
It is not cool
321.
▲
by
midrus
5y ago
In the same line of thinking: I always wonder why people look bad at you if you suggest to use an event bus or dispatch events on an element but it is totally fine to dispatch actions in redux. I don't see the difference other than one
322.
▲
by
midrus
5y ago
It is not fair to compare SPA or big frontend frameworks with "pure JavaScript" or messy jQuery as some imply. By putting 20% the effort we put nowadays with these big frameworks into well organized "sprinkles" it is a v
323.
▲
by
midrus
5y ago
THIS. Server side templates and something like Unpoly is what 90% of projects need. But here I am at work, doing CRUD forms with rxjs, epics, redux, websockets and a shitton of home made packages for doing validation, lazy translations, mix
324.
▲
by
midrus
5y ago
Is it today April 1st in any part of the world I'm not aware?
325.
▲
by
midrus
5y ago
I'll be downvoted to hell for this. I'm from Europe, I've worked for several SF based companies (some hired, some through acquisitions) and can confirm that , despite there are some really, really smart people there are also
326.
▲
by
midrus
5y ago
I could rephrase you comment as why would anyone use Go when I could just use assembler or C and keep all into a single node. People don't use python because they want performance. People use python because of productivity, frameworks,
327.
▲
by
midrus
5y ago
I always imagined them as some kind of "plants", given how they're described to replicate/combine and how they're dried up and stored and later rehydrated...
328.
▲
by
midrus
5y ago
What part of more people dying because not having had the vaccine than people die from side effects of having had it? I suppose that's not science to you because it's not in a tweet.
329.
▲
by
midrus
5y ago
I'm super happy with unpoly. Enhancing HTML to make it do things it doesn't do by default is an awesome idea.
330.
▲
by
midrus
5y ago
No, they're not. It would be a lot worse without the vaccines. Just compare how things are going on countries where vaccination is not happening vs countries that have a high population already vaccinated and you will see how ridiculou
More ›