Quantcast
Channel: Dave Copeland :ruby:
Browsing all 613 articles
Browse latest View live
↧

Article 1

I'm mostly interested in 80's/90's coin-ops and 2600 games. And boy does playing them with a gamepad suck. And boy does the market for pre-fab arcade sticks look grim. So…I guess I have to make my own...

View Article


Article 0

There exists a PCB that connects to arcade controls and produces a USB keyboard. I may try that over this holiday season. I think my woodworking skills are sufficient to build an enclosure. I think.

View Article


Article 1

I like to think of this as follows: My debugging tools work in every language, including ones that have not been invented yet.https://fosstodon.org/@faassen/113526570485658439

View Article

Article 0

I don't mind if people link to Mr HH's bullshit blog posts. But I just really hate seeing his face taking up the entire toot/skeet. I don't like seeing ANYONE's face that large, but his is the worst,...

View Article

Article 5

Decided to replace Vanilla JS bit in sustainable-rails.com with a custom element. One thing it's making me realize is the following rule of thumb:If you are using data- element, stop and consider if an...

View Article


Article 4

The biggest downside of building custom elements vs. e.g. React is that you must defensively locate the elements you need to operate on. Checking the result of querySelector adds bulk.

View Article

Article 3

I'm not sure how the web platform could address this, but having a version of querySelector that returned null objects that responded to all of HTMLElement's API would be a start.

View Article

Article 2

This is how I'd envision querySelector working with the NullObject:• if no element is found, returns a LoggingNullObject• any property or function of the LoggingNullObject returns a NoLoggingNullObject

View Article


Article 1

LoggingNullObject can be optionally configured to log what element it was supposed to be, but wasn't found. NoLoggingNullObject is silent.When developing, you really need debug/log info about null...

View Article


Article 0

More details/motivation on dev debugging in this section of my Web Components deep dive: https://naildrivin5.com/blog/2024/01/24/web-components-in-earnest.html#warnings-silent-failure-and-debugging

View Article

Article 3

Continuing adventures in test #WebComponents it's just such a shitshow. jsdom doesn't support fetch, so stuff like MSW requires using a polyfill. It just gets farther away from testing these elements...

View Article

Article 2

example: new Request("/foo") works great in a browser, because baseURI exists. This doesn't exist in Node and it's unclear how to even make it exist.Anyway, I'm hand-rolling everything, and I think...

View Article

Article 1

https://gist.github.com/davetron5000/3d8dbc405b5a0a18f68668301e555e23You have to setup the HTML before doing any JSDOM stuff, as well as set up any fetch expectations. Then, when the custom elements...

View Article


Article 0

And no, request.body.json() does not exist in Node, so readBodyIntoJSON() is a nasty function.Of note, this code works entirely based only on mocha and no other dependencies. I'm just so tired of...

View Article

Article 3

Thinking about app generators. The Rails method of relentlessly gsub'ing files just doesn't work. Rails _generators_ are not much better - more gsubbing.What's the alternative? A pre-existing repo that...

View Article


Article 2

In the US, responding "STOP" to an SMS unsubscribes you, at the infrastructure level. I always to junk with "fuck you", then "STOP", then I block the contact.Today, just "fuck you" got the "you have...

View Article

Article 1

Transferring repos relevant to my LLC to a GitHub org. Adding a link between GH and my LLC website. That needs the CF distro ID. which comes from terraform. Which is way out of date. And DNSimple...

View Article


Article 0

People talking about #NoBuild - I want #NoUpdateshttps://ruby.social/@davetron5000/113556125843700979

View Article

Article 2

Seems like Neither RDoc nor Yard have been updated with features from Ruby 3.2 or later? Yard can't handle right-wise assignment and RDoc is putting the method body in the method name for endless...

View Article

Article 1

Yard Issue: https://github.com/lsegal/yard/issues/1434 (fork of yard has a fix that also does not work)[Screenshot of rdoc showing the name of a method as 'layout (= "default")']

View Article
Browsing all 613 articles
Browse latest View live