Lurker News
A lot of what hackers do takes years of building knowledge upon knowledge. That's also true for physicists, marketers, salespeople, managers, etc.

Are there any quick wins that 30 ~ 60 minutes of intense concentration can generate?
For example an average person, if focused, can learn to read (but not understand) Korean decently in under an hour.
A person can also learn a few guitar chords and possibly play a carefully-chosen song in that time.
But those aren't valuable skills in themselves.
Do you know of any simple + valuable wins in your area of interest?
("valuable" intentionally left vague)

Comments (1,076) 251 threads

Show all comments

Showing thread 22 of 251

peteforde5 replies#
There's a growing realization that you can completely side-step the need for Single-Page App frameworks like React using websockets and the morphdom library.

Projects like StimulusReflex (Rails) and LiveView (Phoenix) allow developers to build complex, reactive modern apps faster and easier by rejecting the need to even have client state.
https://github.com/hopsoft/stimulus_reflex
https://github.com/phoenixframework/phoenix_live_view
I haven't been this excited for a web technology since Rails came out.

jes51991 reply#
neat! Of course, this makes me want to run React serverside...
peteforde1 reply#
Whatever floats your boat, I guess.

I don't understand why some folks are determined to see everything through a React lens. It makes sense for Facebook, which is why they made it. If you're doing CRUD, you are just torching your productivity.
Here's an example of tabular data, sorted, paged and filtered in 115 LOC including templates:
https://expo-pjf.herokuapp.com/demos/tabular
No transpiling, no API endpoints, no Redux.

jes5199#
I just think that React components are more readable and more maintainable than erb templates
samcheng1 reply#
Seems like cool stuff. Unfortunately, both of the StimulusReflex demos (Heroku apps) are giving errors right now. Maybe somebody hit a quota!
escanda4 replies#
Your mind will be furtherly blown when you realize this has been working for decades in JavaServerFaces!
nurettin#
Excited for jsf, asp.net, Wt and UniGui. Full circle is complete.
aitchnyu#
Jose Valim responded to me saying its a fast, simpler, stateless and scalable solution compared to stateful solutions. For an example of stateful Java/ .Net app, I use a site that randomly logs me out, logs me out after inactivity, opening stuff in tabs are hit and miss (older ones let tabs mirror each other in background), normal UI actions has unexplainable pauses.

https://elixirforum.com/t/phoenix-liveview-is-now-live/20889...

zacym#
Don't forget GWT!
peteforde#
Citation, please.

I can't yet prove that you don't understand what we're doing, but if I failed to communicate the end result, well, that's on me. It's a hard thing to summarize quickly, and I'm working on it all of the time.

dokem2 replies#
I made similar functionality for Django a few years ago called Sniper. You write all your dom modification code as an Ajax request handler. In his handler you yield out a sequence of dom modification objects and sniper handles the rest. I couldn’t understand why this wasn’t a more popular approach.
choward#
Do you still use it?
peteforde#
The combination of websockets and morphdom vs Ajax polling and DOM updates is a major leap forward. Check it out!
rayalez#
Cool! Is there such thing for Flask? For Node?