Hacker News new | past | comments | ask | show | jobs | submit | more ergo14's comments login

I think stencil or Lit are more interesting. I'm not sure I'm the fan of small libs like Lit or preact - I think for scenarios where you have more than 2-3 elements you will have less bytes over the wire very quickly.


My dell e5470 will bluescreen 80% of time when connecting a screen via HDMI on windows 10. Nothing like that happens under linux. The "it just works on other platform" is a myth - they all suck in different ways.


Then maybe look at https://lit.dev/ it might be perfect solution for you, stencil i've heard is also nice. Since its custom-elements you just add custom tags and they will self upgrade.


Lit elements looks nice and it's good to see first-class support for WebComponents. I'm just a bit concerned about having to write declarative HTML in JavaScript functions. Mixing declarative and imperative code can lead to some unwieldy templates so I prefer am approach with minimal templating enhancements sprinkled into standard HTML. What would be an approach, similar to Vue, to enforce the separation of imperative business frim declarative layout definitions using LitElement, Polymer, or similar WebComponents frameworks?


You could probably separate those with tooling.


TP-Link is not cloud based - you can run the controller locally. https://www.tp-link.com/pl/support/download/omada-software-c... - Downloadable here.


But can it do everything sqlalchemy can do? It is not a data mapper ORM it seems.


or Lit-Element.


Weird, we do it with Python all the time. Just don't use globals/threadlocals everywhere and you will be good.


As long as you're not using any libraries/frameworks that use them.


I don't think we've ended up with libs that share state in a dangerous way, maybe we got lucky.


Modules are global singletons, class definitions are global singletons. Monkeypatching is less common in Python than Ruby but I'd still consider it a significant risk.


Imagine be you build a "search users" page with many filters, you will end up inventing query builder at one point. The more dynamic data you need, you will end up reinventing those systems. The worst that can happen is when you start concatenating sql queries together.ORM/query builders save you that headache.


Yes..i have concatenated SQL i must admit.


The trick is to always auto close transactions at the end of the request.


Same here, I'd like to dive into golang. But there is nothing as good as SQLAlchemy. Maybe with generics we will start seeing some projects that can fill the gap.


Mmm yeah I had the same experience. My end conclusion for Golang was "don't use an ORM".


This exactly, I use github.com/doug-martin/goqu for some of my projects though. Only the query builder part though.


Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: