HackerTrans
TopNewTrendsCommentsPastAskShowJobs

phaedryx

1,705 karmajoined 16 лет назад
I'm here

Submissions

An Aperiodic Monotile (2023)

cs.uwaterloo.ca
59 points·by phaedryx·2 года назад·19 comments

comments

phaedryx
·5 дней назад·discuss
If you're in the Salt Lake County/Utah County area, we're having Ruby meetups: https://www.meetup.com/utah-ruby-users-group/
phaedryx
·3 месяца назад·discuss
I helped run a website selling tickets for a venue that had a Garth Brooks concert. I can confirm that they did the same thing in the 2010's.
phaedryx
·10 месяцев назад·discuss
This is my understanding:

1. Ruby Central hosts, maintains, and sponsors Rubygems and Bundler

2. Based on recent events, it was possible that credentials were stolen (https://www.bleepingcomputer.com/news/security/60-malicious-...)

3. They decided to lock everyone out until security issues could be resolved

It makes sense to me from a security standpoint, but their communication has been terrible which has led to a lot of speculation.
phaedryx
·10 месяцев назад·discuss
It sounds like the judge works for Anthropic
phaedryx
·12 месяцев назад·discuss
The first programs I ever wrote were from one of these books.
phaedryx
·в прошлом году·discuss
Hypercard was inspired by an LSD trip.
phaedryx
·в прошлом году·discuss
I've made it a point to always ask beforehand: "what is the dress code expectation? I've seen everything from t-shirts to suits in the tech industry and I'd like show up dressed appropriately."

I always get a positive response.
phaedryx
·в прошлом году·discuss
Same. When the game started I was looking for a black circle to use against the "bubbles"; none showed up, and suddenly I had lost.
phaedryx
·в прошлом году·discuss
This looks interesting. I think I'll try it out over the weekend. Thanks for sharing.
phaedryx
·в прошлом году·discuss
Why not create a word/name? e.g. Clojure
phaedryx
·в прошлом году·discuss
I work for a company that uses Rails. We don't have any Python code, but we use a lot of AI.
phaedryx
·в прошлом году·discuss
Yes. It does a lot for you and you can add features and explore ideas quickly. The batteries are included.

I do know Ruby well though.
phaedryx
·в прошлом году·discuss
I remember when Backbone first came on the scene and “get your truth out of the DOM” was the rallying cry.

I'm going to cheat and get a list from AI:

1. Difficulty in maintaining and debugging: When state is scattered throughout the DOM, it becomes challenging to track and manage, leading to code that is hard to maintain and debug.

2. Performance issues: Frequently querying the DOM for state information can be more expensive and slower compared to accessing data stored in JavaScript objects or dedicated state management solutions.

3. Lack of a single source of truth: Storing state in the DOM makes it difficult to establish a centralized, authoritative source for application data, which can lead to inconsistencies and errors.

4. Synchronization problems: Keeping DOM elements in sync with a mutable list of data can quickly become complex, especially when dealing with dynamic lists or elements without unique identifiers.

5. State persistence issues: DOM-based state is vulnerable to loss during page refreshes or navigation, which can lead to poor user experiences, especially in single-page applications.

6. Scalability challenges: As applications grow, managing state in the DOM becomes increasingly cumbersome and can result in performance bottlenecks.

7. Difficulty in implementing advanced features: Techniques like time-travel debugging, state snapshots, and easy hydration become more challenging or impossible when state is primarily stored in the DOM.

8. Increased complexity in component communication: Relying on DOM for state can complicate the process of sharing data between components, potentially leading to prop drilling or other anti-patterns.
phaedryx
·в прошлом году·discuss
I think the idea of "sprinkling" JavaScript into your server-rendered HTML is a good one. However, I think that Stimulus is terrible.

1. There isn't a good way to test it. There is nothing in the docs about how to test it.

2. Keeping state in the DOM is dangerous

3. Messaging between Stimulus controllers is painful

4. They disconnect parameters from functions. The functions have to scan through the DOM to find what they need which I think is fundamentally weird

5. Reusability is rare

6. It doesn't try to play nice with the larger JavaScript ecosystem.

I personally prefer Vue.
phaedryx
·в прошлом году·discuss
Would that make them sick?
phaedryx
·2 года назад·discuss
Looks really nice.

Some very minor feedback: the animations are a bit too busy for my tastes
phaedryx
·2 года назад·discuss
Will no one rid me of this turbulent priest?
phaedryx
·6 лет назад·discuss
Yes!

1. What if something goes wrong?

2. How do I test for handling success/error?

They never address this stuff.
phaedryx
·6 лет назад·discuss
I wish they'd document how to write tests for this stuff. Also, I wish they'd provide an example with multiple moving parts.
phaedryx
·6 лет назад·discuss
I'm to the point where I'll buy a game even if it isn't supported (yet) because I assume it will be eventually. They really have been doing a great job.

All of my computers are windows-free now.