Readit News logoReadit News
bussyfumes commented on Cash: A small jQuery alternative for modern browsers   github.com/fabiospampinat... · Posted by u/thunderbong
luckylion · a year ago
Not having to worry whether some selector matches any elements is part of what makes jQuery attractive to many though. It's very "fire and forget", you send off your command to hide all .foo, and if there are any .foo they will be hidden, and if there are no .foo, nothing happens and you don't need to worry about it, much like CSS. If you write .foo { color: red; } and there isn't any .foo in the document it doesn't do anything but also has no negative side-effects (except that tiny overhead).
bussyfumes · a year ago
Just had a script today that fires in 2 contexts and ran into an error where the element I attach a handler to doesn't exist in one of the contexts which breaks JS on the page. Since I already had jQuery as a dependency in the project, in the moment it felt easier to replace the querySelector call with jQuery, which I did, instead of checking the querySelect result so I second this, the 'fire and forget' part still holds up very well even though the tree traversal pain points have mostly been solved by browsers.
bussyfumes commented on Ask HN: Who wants to be hired? (June 2024)    · Posted by u/whoishiring
bussyfumes · 2 years ago

  Location: Ukraine (GMT+3)
  Remote: Yup
  Willing to relocate: Maybe in the future
  Technologies: JS (Node, Vue, etc), PHP, WordPress, SQL, Git and everything that's related.
  Résumé/CV: On demand.
  Email: bussyfumes@protonmail.com
Looking for long-term employment or short-term gigs, got over 6 consecutive years of working in different teams and plenty of experience freelancing. I love what I do and enjoy being able to make a positive impact.

bussyfumes commented on Ask HN: Burnout because of ChatGPT?    · Posted by u/smdz
bussyfumes · 3 years ago
Don't discard the juniors, maybe ask them to process your prompts for you. That'll give you some space.

I feel the opposite: I had a great experience asking GPT-4 to do some tasks for me and have been feeling like I'm missing out ever since by not using it more often.

However, I'm wary of posting work-related code into it so I either have to come up with similar examples, which is time-consuming or ask it conceptual questions for which I haven't been able to make it much helpful. Sometimes I even noticed that a conversation with a colleague produced a much better result and it wasn't even something very specific to the project. So yeah, I feel like it's a great tool but I'm having a hard time using it productively. It definitely feels like being creative with your prompts is an important part of getting value out of it.

bussyfumes commented on Ask HN: Who wants to be hired? (August 2023)    · Posted by u/whoishiring
bussyfumes · 3 years ago

  Location: Ukraine (GMT+3)
  Remote: Yes
  Willing to relocate: Not at the moment, but maybe in the future
  Technologies: Everything JS: Vue, Node, TypeScript, etc. A bit of PHP and -- I'm not proud of that -- WordPress
  GitHub: https://github.com/kiryhas (not what I use for work but not empty either)
  Email: bussyfumes [at] protonmail.com
I'm a developer with 5+ yoe and I like making stuff work. My most recent experience involves lots of Vue for a live support application (WebRTC, VoIP, SIP though I mostly beat around the bush of all of that complex logic with my UI work). Before that I helped launch a SAAS (Vue + Node, payments and whatnot). I started as a support engineer for a digital product during my uni years so support applications have a special place in my heart. I feel the most capable working on them being able to provide some insights into the processes though I'm always open for learning new stuff. HMU for whatever it is that you might need, I'll be happy to talk with anyone :)

bussyfumes commented on Customer ratings have become meaningless. ‘people give 5 stars like it’s candy.’   wsj.com/articles/uber-air... · Posted by u/balderdash
bussyfumes · 3 years ago
It's a shame that ratings provide so much leverage over employees.

A business I worked for sold their software items on a platform that used to do rating removal when the review didn't provide any context but eventually either bad rep for doing that caught up to them or the scale grew so much that they could no longer afford going through each case and they changed their policies. People would give bad ratings for the worst reasons:

1. They need a refund but the reason is along the lines of "I thought I was buying a different item". They can't ask their bank to do that because then they'll be banned on the platform. If the business provides a refund, then it takes a loss by refunding the part of the price that goes to the platform.

2. They haven't been able to figure out some very basic functionality and they can't even tell you what exactly went wrong. When you try to help them, they either never respond or you help them figure it out and then they don't change their rating.

3. They demand you customize the item to have functionality that it does not have or show it its marketing, you turn them down and suddenly your item is the worst on the market.

Of course there were constructive bad ratings and I'm not saying that the business was selling the cure for cancer, just providing my perspective. It's a tough world out there :)

bussyfumes commented on I wrote my own smart home software   renato.athaydes.com/posts... · Posted by u/thunderbong
bouke · 3 years ago
HomeKit can pair only once, to pair it another time it needs to be unpaired first; a design choice unrelated to HA. But you can “share” your home in the Home app. That will add additional “controllers” to those devices (HA being the device here).
bussyfumes · 3 years ago
Thank you, I thought so. It'd still be nice if they could print it somewhere because that was my first impression so I assume other people not familiar with HA will run into it as well.

Regarding sharing, I tried it, but it says "A home hub is required to add or remove accessories, scenes or people". I looked it up and apparently you were able to use an iPad as the home hub which you'd share access to, but since a certain version of iPadOS/iOS it can only be either an Apple TV or a Home Pod. I think Apple is focusing on being able to access your home setup anywhere so it requires a device that is supposed to stay at home all the time. Still a shame because it hinders offline-first setups like mine.

bussyfumes commented on I wrote my own smart home software   renato.athaydes.com/posts... · Posted by u/thunderbong
dividedbyzero · 3 years ago
I'm in the same boat. I'm running two instances of Home Assistant with Zigbee2MQTT for sensors, lights and switches, a few non-Zigbee devices via built-in integrations, and NodeRed for more complex automations. I find the stack to be a bit of a Sisyphean mess, quite unreliable, and a significant time sink.

I'll give some examples:

- HA occasionally freezes for a few seconds during automation runs, though system load, IO etc. look fine. No idea what's going on. It should have more than enough resources. Both instances do this (on different hardware).

- After every restart, ZigBee switches only work after the second press (the first message shows up on MQTT, but is apparently ignored). This is especially annoying if we're having guests when HA acts up; also, some switches use double-press for special behavior.

- Sometimes an automation or two just don't trigger until HA is restarted, but everything else works (happens about once every two weeks).

- Outlets and sensors may be gone from the network for a week (e.g. accidentally left unplugged) but will never be shown as stale in HA.

- Most automations I want devolve into huge YAML messes or huge NodeRed graphs, since I seem to need a lot more flexibility than other HA users. I've found it's a lot easier to just write a script for these, but the developer experience of the various scripting plugins leaves a lot to be desired. Also, yet more flaky abstractions.

- Why is it that checking whether a scene is active is so hard? That's just the sort of heavy lifting I expect HA to do for me.

- Every release of HA seems to add new little quirks; apparently, lots of people in the community don't even bother updating regularly?

- It's very hard to know what's going on inside HA; it seems to log every last thing except for what I'm looking for. I usually just look if MQTT sees the right things, then restart HA until the issue I'm having disappears. That this strategy usually works is problematic in itself.

All in all, it feels more like training a cat, not the hands-off appliance-style setup I'd like to have, and it takes up way too much of my limited spare time.

I really like HA for the user-facing part, great app, great web interface, even supports Apple Watch. I'm comfortable with writing code, perhaps a bunch of scripts against MQTT and the HA API would be the way to go for me, or perhaps something like AppDaemon.

I've also tried using Apple Homekit with Homebridge, and while that was rock solid, hands-off and very reliable, it doesn't have the flexibility I want either.

bussyfumes · 3 years ago
I've setup HA so that I can turn on/off a couple of WLED smart lights and I found the UX of the dashboard to be a bit confusing.

After setting up a HomeKit Bridge integration, you are given a QR code to connect from the Home app. The code appears in the Notifications tab. I missed the code at first so the Notifications tab was empty and I thought that there should be a button to issue another one? After looking it up online, apparently the way to go is: delete the integration, create it again and be more careful with the Notifications tab.

Then if I want another person in the house to be able to control the lights from their device, I can't show them the code. This makes me wonder whether the HomeKit Bridge supports only one connection or if I just have to screenshot the QR code? It can't be that bad, right?

Other than that, a great piece of software. When I got the smart lights it bummed me out that I couldn't control them with Home and had to use some third-party app to do it so eventually discovering HA significantly improved my experience.

bussyfumes commented on Ask HN: Most interesting tech you built for just yourself?    · Posted by u/l2silver
4ggr0 · 3 years ago
So it's been two days, I've played it a lot since then and cleared it twice. If feels soooo good to clear it because it's rare (for me).

Looking forward to the update ;D

bussyfumes · 3 years ago
Sorry for the delay, I've been a bit busy recently.

I've just adjusted the highlighting of the cubes, give it a look. For feedback you can contact me here, by email or open an issue on GH. Hope you enjoy!

bussyfumes commented on Ask HN: Most interesting tech you built for just yourself?    · Posted by u/l2silver
toddyamakawa · 3 years ago
Start with 4 different color cubes, each with the value of 128.

Then just keep splitting them until you have a full the game. You'll need some intelligence in deciding which cubes to split and where to stack the split cube.

But if you reach a state where you can't split anymore you can must backtrack and try again.

bussyfumes · 3 years ago
Yeah, makes sense, I'll consider it, thank you!
bussyfumes commented on Ask HN: Most interesting tech you built for just yourself?    · Posted by u/l2silver
ywain · 3 years ago
Very cool game! Are all seeds solvable?
bussyfumes · 3 years ago
Happy to know you like it!

No, some seeds can't be solved and the game doesn't verify them.

u/bussyfumes

KarmaCake day58February 1, 2022
About
bussyfumes at protonmail.com
View Original