HackerTrans
TopNewTrendsCommentsPastAskShowJobs

BareNakedCoder

no profile record

comments

BareNakedCoder
·4 năm trước·discuss
For the non-riders, ATGATT means "All The Gear, All The Time". I wince whenever I see some young kid and his girlfriend riding with t-shirt, short pants, and sandals. Human erasers on donor cycles :(
BareNakedCoder
·4 năm trước·discuss
The Dickey Amendment[0] frightened the CDC from doing just that. Lobbied for by the NRA and added to a spending bill by a Republican congressman. "Although the Dickey Amendment did not explicitly ban it, for about two decades the CDC avoided all research on gun violence for fear it would be financially penalized." The CDC had budgeted $2.6M to study the problem. This was stopped and, in addition (as "punishment" perhaps?), exactly $2.6M was diverted to something else. Willful ignorance. What can you do?

[0]https://en.wikipedia.org/wiki/Dickey_Amendment
BareNakedCoder
·4 năm trước·discuss
My method is super simple but does require a wee bit of self discipline. I "HALT!". I even have "HALT!" written on a post-it on my monitor. Whenever I notice that my (valuable) attention is wandering, I yell "HALT!" in my head or out loud (depending who is nearby). This makes me snap out of it, to break the pattern. Ideally, I return to what I should be doing but very often I can only do the minimum. The minimum being sitting there doing nothing, thinking of nothing (except the thing I should be doing), until I get bored and want to do something ... but only allowing myself to do what I should be doing otherwise I must continue to sit doing nothing (being halted). It's often too hard to halt AND switch do what I should be doing, so this method breaks it into two steps. Halting alone is much easier to force myself to do since doing nothing is easy. Once in halt-state, the only possible exit is to the proper do-state.

Oh, I just noticed something. HALT!
BareNakedCoder
·4 năm trước·discuss
Made https://securemypw.appspot.com so I could securely share passwords with my wife (for bank, investment, biller accounts) in case something happened to me. URLs are saved in a Google doc we both have access to. Now I use it for most of my passwords.
BareNakedCoder
·4 năm trước·discuss
Agreed! Framework == good doesn't mean any/all frameworks == good. Many of PHP's frameworks seem to have ignored PHP's unique run-time characteristics and adopted Java idioms (with Java, you pay once at compile time; with PHP, you pay with every single request). Ubiquity, near/at the top of the PHP benchmarks, seems to accept PHP's unique run-time characteristics (so performs well) and yet still provides all the benefits of a framework (consistency, etc). Ubiquity should see much more love than Laravel/Symfony/etc but doesn't :(
BareNakedCoder
·4 năm trước·discuss
Agree. Shame it wasn't adopted by more websites. It shutdown just before we launched a new SaaS that used it for auth.
BareNakedCoder
·4 năm trước·discuss
Read "Speaking of India" by Storti. It really helped me understand a lot of the strangeness I also observed working with India-born coworkers and contractors.
BareNakedCoder
·5 năm trước·discuss
Best advice for quantity of sleep: don't stop drinking :)
BareNakedCoder
·5 năm trước·discuss
Lol. I did and it was one of the best things I ever did. But I did it after university. Rode all over north america on it, me and my tent Ƈ:)
BareNakedCoder
·5 năm trước·discuss
Or use a worse DNS resolver. Your ISP may be trying to cash in on DNS names that don't resolve / ain't found by instead sending you to another website that pays the ISP a small fee.
BareNakedCoder
·5 năm trước·discuss
Yes of course the components are usually not the entire page; don't take the terms too literally. I'm still searching for the best name for these modes ("sprinkled" isn't quite right either). Although "full body component" or "big section component" might be a little better, I suggestion not missing the underlying idea or point due to imperfect terms.
BareNakedCoder
·5 năm trước·discuss
Let me take a stab at explaining how AlpineJS is different. First, let me talk about the two "modes" of front-end frameworks, what I'll call: "FPC" and "Sprinkled":

FPC or Full Page Components: the original HTML source (as seen from "view page source", not "inspect") usually contains a tag like `<div id="app"></div>` which simply serves as the place where the FPC-oriented framework inserts its magic. All the magic happens in the JS (possibly generated by compiling from something else like JSX or a component DSL). Note that a FPC is not necessarily a SPA; you could have multiple pages with one FPC each.

Sprinkled: the original HTML source has the framework's tags, attributes, and/or other markup sprinkled throughout it. The framework will search for these sprinklings in the original HTML and do as they direct. Usually the framework only looks within an encapsulating tag so the original HTML might have something like `<div id="app">...more HTML with sprinklies...</div>`.

React and Svelte are FPC frameworks. All the exciting stuff is in the code: JS, JSX, or a JS-like component DSL.

VueJS can be used in multiple modes. It can be used in pure FPC mode. It can be used in hybrid mode: with both components and sprinklies in the original HTML, including sprinklies between a component's start and end tag. And it can (almost) be used in pure sprinkled-mode. I say "almost" because you do need some JS code to define the mount point and the data. (VueJS also has two sub-modes for components: compiled client-side and pre-compiled during the build. The later requires a more complex build step).

AlpineJS is (mostly) for pure sprinkled-mode. It is easy to write non-trivial function with no JS at all, other than loading AlpineJS itself from a CDN. On page load, AlpineJS will automatically do the needful; no bootstrapping JS is required. When re-use and/or complexity requires it, you can move some or much of the code from HTML to your JS. For even more complex stuff, the new plugin ability in V3 of AlpineJS makes adding your own directives/attributes or magic variables/functions easy. This extra ability in V3 just means although you can do 80% with no or very little JS, you still have room to grow for the other 18-20%.

AlpineJS is great for and focuses on the needs of simpler apps. And most of the apps we develop should ... be ... SIMPLE.
BareNakedCoder
·5 năm trước·discuss
The website being announced in this post, alpinejs.dev, is new for V3 of AlpineJS which was launched just yesterday. I've been using it since V1 and I can say it doesn't just look like but really is a perfect balance for projects too small for Vue or React but to big for VanillaJS. I would also argue that small and simple is better for most websites.
BareNakedCoder
·5 năm trước·discuss
They may not have PAID for food but they did WORK to get that food. With UBI no work required.
BareNakedCoder
·5 năm trước·discuss
The founder of SvelteJS works at the NYT. SvelteJS works well on underpowered devices.