Readit News logoReadit News
goatslacker commented on JavaScript Is the CO2 of the Web [audio]   changelog.com/jsparty/80... · Posted by u/feross
brylie · 6 years ago
I'm wanting to enhance a server-rendered template with a bit of JavaScript to fetch data from the server and update the DOM.

I like that Vue can be "dropped in" to any HTML page, like jQuery, without completely taking over the frontend development process, but it still weighs in at 30k. Also, the Vue docs are primarily oriented towards a pre-processing SPA workflow.

Are there any light-weight libraries like Vue, around 2k-5k, that enhance static HTML with declarative DOM manipulation reactive data binding?

Is there a "plain JS" approach to declarative DOM manipulation?

goatslacker · 6 years ago
I’ve been enjoying the simplicity of keeping it plain using lit-html. It lets you write declarative markup and they’re template literals.
goatslacker commented on How America lost its love for the stick shift   cnbc.com/2018/09/05/audi-... · Posted by u/acheron
t0mbstone · 7 years ago
Speaking as someone who has owned a number of sports cars with manual transmissions, I can tell you why I finally made the switch to automatic:

Adaptive cruise control in stop and go traffic.

I used to have to deal with a six-speed manual transmission in stop and go traffic for an hour every day, and it was pure torture. I mean, sure, it was fun for a weekend drive in the mountains, but it sucked the rest of the time.

Oh, and as a side note, my new car with an automatic transmission and a 400+ HP engine accelerates from zero to 60 faster and smoother than any one of my previous cars. I will never go back! And I have paddle shifters, if I ever want to manually control the gears.

goatslacker · 7 years ago
Never found paddle shifters to be in the same league as a manual transmission even in modern high performance cars. There's always that bit of lag and delay with automatic that there isn't on a manual.
goatslacker commented on Sadly, I must say goodbye to Leaf, my programming language   mortoray.com/2018/08/07/s... · Posted by u/ingve
oldandtired · 7 years ago
What he is experiencing is the reality of most people's lives. The boredom and drudgery of doing the hard yards every day. Most people do not have the luxury of doing what is interesting to them. It is a case of just having to knuckle down and complete what has been started.

From my personal perspective, it's nice to have side projects that are interesting and learning exercises. The reality is that if these side projects are actually worth it then they need to be completed. Otherwise they are just a fad and not really worth the effort that might be put into them.

If something is worth starting then it is worth finishing.

goatslacker · 7 years ago
Yes and no. Sometimes it's not about the destination but about experiencing the journey. From the post it seems like the author extracted the value they wanted to extract over the years. Knowing when to give up is difficult, especially when you've sunk a lot of cost into the project and feel like you have to finish it. The thing is, you don't have to and it's perfectly acceptable to put it on hold indefinitely.

In the end you'll still have all those experiences with you and that's what you paid for with your time.

goatslacker commented on Ask HN: Do you use budgeting software?    · Posted by u/_null_
gregorymichael · 7 years ago
Built an ad-hoc system using flask, Google Spreadsheets, and Twilio (where I work) that my wife and I have been using for 18 months now -- far longer than any other system has stuck.

- budget tab: tracks category + allocated budget for the month

- expenses tab: tracks date, amount, category, description

- when we spend money, my wife and I text, eg, "13.31 restaurants lunch at chipotle" to a Twilio number. A flask app splits the body of the SMS expecting "X.XX category description", and uses the Google spreadsheets API to add the row to the expenses tab. (Yes, we manually enter every expense, either via SMS or via the spreadsheet. This was a habit we picked up the old YNAB. We could automate this to some extent, but the discipline of having to do something when we spend money has been beneficial).

- I get a confirmation text. My wife gets a text saying "Greg spent $13 on Chipotle. We have $132 left in the lunch category this month."

- Texting "report" to the number kicks back a text with each category and the amount remaining this month.

It's an imperfect system. Some small dollar stuff gets missed. But it's super flexible for reporting since its just a spreadsheet. Because I built it, I actually use it. The confirmation texts have instilled a bit of accountability between the two of us and also serve as a nice reminder during the day of what the other person is doing. ("Hey! Thanks for logging your lunch. How was it?")

Been meaning to write a blog post about it for a while. Will do so if there's interest.

goatslacker · 7 years ago
How much is this in Twilio fees each month?
goatslacker commented on Nintendo signals end for Wii U   bbc.com/news/technology-3... · Posted by u/artsandsci
goatslacker · 9 years ago
So long dear Wii U ! I'll always play and update you with neat hacks at my place. Seriously though, I don't understand people. For me the Wii U had way better games than the Wii and I would never trade my Wii U for any Playstation or Xbox. Smash Bros is way better, Mario Kart is way way way better (the best Mario Kart ever?)... Just lacked a really good 3D Mario Game.
goatslacker commented on Google has reportedly stopped developing its own self-driving car   techcrunch.com/2016/12/12... · Posted by u/doener
goatslacker · 9 years ago
This was known and expected.
goatslacker commented on Manually Testing SSL/TLS Weaknesses   contextis.com/resources/b... · Posted by u/zerognowl
goatslacker · 9 years ago
Amazing work! I'll be following through your post on Saturday; it will be a pleasure to reproduce some of those attack vectors.
goatslacker commented on Show HN: Tesseract.js – Pure JavaScript OCR for 60 Languages   github.com/naptha/tessera... · Posted by u/bijection
goatslacker · 9 years ago
I've been using this library to read screenshots of Pokemon Go to automatically calculate Individual Values for each Pokemon[1] It's worked great on desktop, but on mobile safari where it matters most the library causes the browser to crash :(

1: https://github.com/goatslacker/pokemon-go-iv-calculator/blob...

goatslacker commented on Milligram: A minimalist CSS framework   milligram.github.io/... · Posted by u/somecoder
goatslacker · 10 years ago
Love seeing these microframeworks pop-up. I wrote my own a while back for kicks http://goatslacker.github.io/lotus.css/

I would love to be able to make a custom builds of milligram by shedding some of the modules I don't care about. This could also open it up to other modules being added like Modals or whatever.

u/goatslacker

KarmaCake day336August 5, 2011
About
github.com/goatslacker
View Original