Earlier quoted context omitted.
11 AM in Europe! We are pushing it on top of HN
11 PM in New Zealand! Yes, this is how I enjoy spending a Friday night.
Bongo Cat
131–140 of 208 posts
Re: Bongo Cat
#132Please add `return false` or `event.preventDefault()` to your keyboard handlers! Otherwise the browser assumes the page didn't do anything with the events and uses its default keyboard handlers. I have find-as-you-type enabled, and pressing keys launches search for me. Handlers need to "eat" the keyboard events to prevent default browser behavior.
edit: oh it's on github, gonna submit an issue
Re: Bongo Cat
#133Earlier quoted context omitted.
Sad state of JS frontend. Overcomplicating things is the first thought that we have now, then we think about the requirements.
It really isnt. Poor developers might, but poor developers will over complicate things in any domain.
Re: Bongo Cat
#134It uses jQuery extensively. The frontend developer in me wants to make a fork written in typescript using react and redux toolkit to manage keystrokes. Then I realize it is just a fun toy.
Why so oldschool? Isn’t the new coolness to rewrite your frontend in Rust compiled to WASM? :P
Re: Bongo Cat
#135Re: Bongo Cat
#136Earlier quoted context omitted.
What about logging? Elastic is a must in every deployment!
And we haven't even discussed microservices architecture & CI/CD pipelines. Should we included AI powered monitoring?
Re: Bongo Cat
#137In case you want (like me) to share your best art with you colleagues: let e = $.Event('keyup'); '09090586 '.split('').map((k, i) => {setTimeout(()=>{$.play(InstrumentPerKeyEnum[k],k,e.type==="keydown")}, i * 200); setTimeout(() => {$.play(InstrumentPerKeyEnum[k],k,e.type==="keyup")}, i * 250)});
Re: Bongo Cat
#138Re: Bongo Cat
#139Earlier quoted context omitted.
This industry’s best kept secret is that jQuery is as awesome today as it was 10 years ago. The DOM API is so much nicer than the native one it’s not even funny. And when you are not dealing with thousands of buttons you realize you don’t need a virtual DOM. You may even come to the conclusion that if you have so much state in a single view, maybe your UI sucks. And that beneath all the React hype, there were people…
While i use React at work for bigger things, I've come to use Vue for almost all my "smaller" hacks since it becomes a win to use almost as soon as you start using inputs. After this it scales pretty well up for anything that is on "one page". Apart from work things the main example would be a that I built a small audio sequencer hacked together with Vue. That project would've been suicidal to do in JQuery but also w…
Both, perhaps (ie. fork it)?
Re: Bongo Cat
#140Earlier quoted context omitted.
This industry’s best kept secret is that jQuery is as awesome today as it was 10 years ago. The DOM API is so much nicer than the native one it’s not even funny. And when you are not dealing with thousands of buttons you realize you don’t need a virtual DOM. You may even come to the conclusion that if you have so much state in a single view, maybe your UI sucks. And that beneath all the React hype, there were people…
While i use React at work for bigger things, I've come to use Vue for almost all my "smaller" hacks since it becomes a win to use almost as soon as you start using inputs. After this it scales pretty well up for anything that is on "one page". Apart from work things the main example would be a that I built a small audio sequencer hacked together with Vue. That project would've been suicidal to do in JQuery but also w…