Is anyone still using npm v1 or v2 (most recent release 9 years ago)? Or do you know where I might find someone who does that? I have the following question:

Versions 1 and 2 of npm used to automatically install peerDependencies if they were not directly depended upon. From versions 3 to 6, a warning was given instead. From version 7 onwards, they went back to installing peerDependencies automatically, but this could be opted out of with peerDependenciesMeta.

Backbone has had an optional peer-ish dependency on jQuery from the beginning. Originally, this was not listed in the package.json so it was not installed unless the user opted in. We are now considering to make the dependency explicit and optional using peerDependenciesMeta, but for extant users of npm v1 or v2, that would mean jQuery is suddenly automatically installed where it previously would not. How bad would that be?

Of course, this would only affect users of the upcoming release of Backbone, which is perhaps a relatively uncommon combination with npm v2 or older, but the two can work together so it is not out of the question.

https://github.com/jashkenas/backbone/pull/4304

#JavaScript #nodejs #npm #legacy #BackboneJS

청개구리 스택 찬가

이 글은 저자가 기술 스택을 선택할 때 주류를 따르지 않고 대안적인 기술을 선택하는 경향, 즉 "청개구리 스택"을 추구하는 경험을 공유합니다. 청개구리 스택은 사용자가 적어 문제 해결에 어려움이 있을 수 있지만, 기술에 대한 깊이 있는 이해와 오픈 소스 기여 기회를 제공합니다. 또한, 후발주자로서 대안적인 설계를 통해 정석 스택보다 나은 이해를 제공할 수 있습니다. 여러 부품을 직접 조립하는 과정은 번거롭지만 각 기술에 대한 깊은 이해를 얻을 수 있게 합니다. 저자는 오늘의 정석 스택도 과거에는 청개구리 스택이었을 수 있음을 지적하며, LLM 시대에도 청개구리 스택이 주는 배움의 기회는 여전할 것이라고 주장합니다. Stack Overflow에 답이 없는 길을 걸으며 얻는 깨달음은 온전히 자신의 것이 될 것이라는 메시지를 전달하며, 독자들에게도 주체적인 기술 선택과 도전을 권장합니다.

Hackers' Pub

Got a notification that #BackboneJS has released a new version and was instantly mentally transported back to happier simpler times.

Still an example of clear, well-documented, and elegant (as it gets) #Javascript: https://github.com/jashkenas/backbone/blob/master/backbone.js

backbone/backbone.js at master · jashkenas/backbone

Give your JS App some Backbone with Models, Views, Collections, and Events - jashkenas/backbone

GitHub
@papa_alpha_papa Interesting! Could I apply your benchmark to the #BackboneJS Events interface as well?
@aral Reminds me of #BackboneJS! 💕

I think about 2 years ago I had a long thread over here about updating my 10+ year old SPA (#backbonejs, #javascript, #perl, #Mojolicious) to a MPA using just #htmx for frontend interactivity.

Well, I've been way too busy to even start any of that! But, in the last couple of days I decided to go for a hybrid approach. I've added some htmx components to my single page application. My app's dashboard finally provides me with some interesting reports, powered by htmx.

That should do for now :-).

Are people still using Backbone.js to make JSON calls inside the WordPress Admin as suggested in the Rest API docs?

https://developer.wordpress.org/rest-api/using-the-rest-api/

I want to get the latest post in a category from another site.

#wordpress #backbonejs

Using the REST API – REST API Handbook | Developer.WordPress.org

These articles explore the basic structure of the WordPress REST API.

WordPress Developer Resources

A beginner #webdev asked whether there was any #MustacheTemplating equivalent of #Angular's ngStyle. I answered on #StackOverflow with a short tutorial on how this can be achieved with #BackboneJS and #MVC.

https://stackoverflow.com/q/78307637/1166087

#JavaScript

How can I achieve something similar to Angular's ngStyle, but with Mustache?

I received the following question on the issue tracker of the Mustache website: Like angular, ngStyle, is there any way we can add dynamic style The question refers to the following notation, which

Stack Overflow
Backbone.js