Do any of y'all use the term "rough-in" for an initial build-out of the basic flow and/or structure of a greenfield section of an application? I tend to use it for getting routing/navigation working plus overall page layout
4.12.2024 22:21Do any of y'all use the term "rough-in" for an initial build-out of the basic flow and/or structure of a greenfield section of...I relearned a lesson I've had to learn numerous times: the way to refactor is by small steps, with the code working at each step.
Today again I tried a ~50-LoC refactoring at once, and I couldn't resolve a bug. Did it step-by-step, all good.
Although, the big-bang approach did act as a spike, leading me to the overall design I ended up using
<marquee> probably would have worked though
27.9.2024 00:59<marquee> probably would have worked thoughI just spent like an hour and a half trying to figure out this one CSS animation. Got it to work, then the moment came when I finally nailed all the settings, and you better believe I am sitting here refreshing the page to experience it over and over, and growling with pleasure every time
27.9.2024 00:58I just spent like an hour and a half trying to figure out this one CSS animation. Got it to work, then the moment came when I finally nailed...The secret was not to call register() until the options were ready to render. So I wrapped the register() call in a function, passed it to my component as a prop called `loadedProps`, and conditionally added it to the <select> props
16.6.2024 16:13The secret was not to call register() until the options were ready to render. So I wrapped the register() call in a function, passed it to...Aannnd, as usual tooting about a problem ends up being a rubber ducking session, I think I have it solved
16.6.2024 16:09Aannnd, as usual tooting about a problem ends up being a rubber ducking session, I think I have it solvedJumping with both feet into a new framework setup and remembering how it's such an exercise in self-flagellation 😖
In this case, trying to get react-hook-form to work with every other technique I'm trying to employ
It doesn't seem to like when I load <select> options dynamically, or else I haven't found the right combination of options. Maybe because it's a couple components deep
So the verification use case wants to know "is this user authorized to create/update an address for user ID n," but the UI just wants to know "is this user authorized to update the user address"... so if the abilities API requires that user ID check, it's an added weird tic for the UI
30.5.2024 00:48So the verification use case wants to know "is this user authorized to create/update an address for user ID n," but the UI just...For example... our user model has one user-address. Certain types of users have the ability to create and update their own user-address. Restricting the address to that user is part of the verification use case, but the UI doesn't really care about that because it just wants to show or not-show a form. The fact that the system has more than one user-address doesn't matter to the UX
30.5.2024 00:45For example... our user model has one user-address. Certain types of users have the ability to create and update their own user-address....It just seems like there ought to be a way to write this code once and have it work for both functions. But I guess the devil's in the details
30.5.2024 00:43It just seems like there ought to be a way to write this code once and have it work for both functions. But I guess the devil's in the...Also, in some implementations (including Laravel) there isn't an easy way to list all of a user's abilities because they are looked up when an ability check is done, as opposed to being encoded as a catalog. The Rails gem cancancan seems more amenable to that because the abilities _are_ basically encoded as a list
30.5.2024 00:41Also, in some implementations (including Laravel) there isn't an easy way to list all of a user's abilities because they are looked...It doesn't seem feasible to directly use policy code to build the UI, because they don't always use the same level of granularity. And some other factors which I'm still struggling to grasp and keep track of
30.5.2024 00:38It doesn't seem feasible to directly use policy code to build the UI, because they don't always use the same level of granularity....Spent a bunch of time today wrestling with the concept of user abilities/policies/etc., and in particular, how two things are related but not quite the same: checking a request to verify that the user is authorized to do that action, and identifying user abilities to know how/whether to represent a feature in a UI
30.5.2024 00:36Spent a bunch of time today wrestling with the concept of user abilities/policies/etc., and in particular, how two things are related but...Ended up succeeding with an iframe 😌
21.4.2024 11:11Ended up succeeding with an iframe 😌In one instance, trying to figure out how to selectively apply Tailwind preflight (aka CSS reset) only to certain regions seems very tricky
16.4.2024 00:17In one instance, trying to figure out how to selectively apply Tailwind preflight (aka CSS reset) only to certain regions seems very trickyThe old code is circa-2010 jQuery and jQuery UI based. I've been trying various approaches: CSS wrapper class to encapsulate, iframes, shadow DOM, everything seems to have major gotchas
16.4.2024 00:16The old code is circa-2010 jQuery and jQuery UI based. I've been trying various approaches: CSS wrapper class to encapsulate, iframes,...Working on a project to wrap our (very) old frontend core content in a new layout so we can flip the switch on the new layout and then gradually replace the old app views. Turning out to be very difficult
16.4.2024 00:14Working on a project to wrap our (very) old frontend core content in a new layout so we can flip the switch on the new layout and then...I just hit my daily steps goal while walking to the freezer to put my stress-binge ice cream away... I'll take it
22.11.2023 03:15I just hit my daily steps goal while walking to the freezer to put my stress-binge ice cream away... I'll take itA tool we subscribe to does not offer webhook event notifications... but they do have a Slack notification bot. So I implemented a Slack app that listens for their notifications and then does the thing 🙃
I guess Slack is the true universal integration platform at the moment
Just sitting here chilling until Assassin's Creed drops 😶🕰️
5.10.2023 02:43Just sitting here chilling until Assassin's Creed drops 😶🕰️