You don’t really need docs as --update-refs does what the OP does automatically instead of manually like the OP does.
HN user
sirsuki
http://tritarget.org/
[ my public key: https://keybase.io/sukima; my proof: https://keybase.io/sukima/sigs/p_xMUMbEohTq3s3PJJfqHVAdVw_1U8gdMnM-9eYaYQ0 ]
Wait what? What would that module even be for?!
If I may, the evil is not in the top level await but in the use of a top level await in a module that exports. That is evil. But a top level await in a programs main script seems ok to me.
LOLz! As someone who swaps caps with control on all machines as well as buying keyboards which lack caps for a control key, this site is truly horrifying!
In struggled with this trend even before the AI hype. I love learning and focused my work towards always learning. But it takes energy and lots of work; some days are better than others. My love of learning keeps me motivated over time. However, I’ve noticed a downward trend of juniors who are focused on being spoon fed the answers and avoiding any learning. It drives me nuts and I don’t know how to reconcile this kind of mental model.
I use Makefile for my static blog that is powered by a static site generator. Something I love about this is I can have one place to describe all the different build tools. I can have PlantUML to generate PNG diagrams, Vim to generate syntax highlighted code snippets, openssl to generate certs, etc. I was one of the best choices I made for that project.
The anti-make-reinvent-everything mentality has bugged me for decades. I never understood why every language seems compelled to reinvent the build system. Especially when the output is file based.
In the tech communities we call this “context switching”
Yes. Place the secrets in a secured (symmetric encrypted) document. Then print the password for that document and hand it to a loved one, trusted family member/friend, or lawyer.
When I tried to introduce s-expressions to a DSL my co-workers nearly lynched me. The parenthesis were so violently hated I sunk into a deep hole and still haven’t came back out of it.
I disagree with this take. I have found immeasurable advantages to working with non-IDE/non-hold-my-hand-editors when programming. The separation of concerns (editing text versus compiling and running a program) are valuable to me as a developer. I remember as a child learning code in environments like BASIC, Pascal, TCL, Inform6, etc. And knowing that I could use my preferred text editor that I had a mental model about was a big win. I could lookup references in a book and learn easily. In contrast to IDEs which always got in my way confusing the heck out of me when really I just wanted to type examples from the books I got from the library.
Call me old fashioned but I have a hunch that the separated and minimalist approach has value in learning programming. To this day I still find doing things with minimalist tools I am far more productive than my counterparts who hunt and peck through menus and mouse clicks. A big advantage I think it this separation and minimalism primmed my brain to see way to compose tools and ideas instead or relying on what the system tells me I can and cannot do.
I’m curious if it makes sense to have a distinction between source code existing for the purpose of discovery versus software for fitness of purpose. In other words this is similar to the Cathedral and the Bazaar as OSS used as a tool by users compared to the Bazaar where the focus is on displaying the source code. Much of my interest in contributing to OSS is more about offering examples and ideas via source code and not if the utility of the software fits specific users’ purposes.
I love how text is formatted in these documents. It shows a level of attention and care I don’t see often in modern markup/HTML/Word/Pages pipelines. Maybe it is some TeX magic but I like to believe they hand formatted the ASCII back then.
As a parent dealing with their midlife crisis and raising two children I can say this concept is high on my mind. What kind of world are they going to inherit when they can’t even run to their neighbors for help when something goes wrong? Who do they turn to when they want to help the community?
Something the article talks about is how morality is engendered not found. That the community teaches morality and that we need this or there are gaps in our humanity. Considering how we treat others is a learned skill it is also a taught and reenforced skill. How do we as a society wish our youths to treat each other? We need our systems to engender that.
I have been giving this one a lot of thought. I jumped to sourcehut for my personal projects and was amazed how viscerally pleasing a [PATCH] email thread could be. I am convinced there is a big psychological difference between discussions via Pull Requests and discussions via email/mailing lists. I can’t pin point it but it is almost palpable.
A question I have with the process is: can email based workflow still work with for a continuous integration/delivery pipeline?
Why can’t we just Pair Program more? There is enough open source out there. Enough user groups meeting. Enough hack-a-thons. Just make them Pair Programming sessions. Please! please I beg of you!
Meanwhile, Vim and Emacs users be like “what is going on over there?”
I don't understand folks who want their tools to fight them.
Been coding professionally for a few decades now and I completely understand and validate this. I also do not understand the drive to want tools that fight them. Our CI is so slow doing IMO unnecessary checks. Code is prettified to look ugly and hard to read because others were too lazy to align text manually and just gave up on nice looking code.
All in the name of “making it easier for the less experienced.” To which I cringe because instead of investing in education and team quality standards we invest in tools to enforce a lowest common denominator in a failed attempt to pretend it increases quality when it just gets in everyones’ way.
I’d rather educate and engender personal quality, aesthetics, and pride in their own work. And if others don’t feel that quality matters then they are not a good fit for my team.
I once wrote a tiny DSL language. I used LISP (S-Expressions with parenthesis) because it semantically fit and made the parser much easier to write. I was laughed at and ridiculed by my peers. Everyone hated it that I had to attempt two other language styles just to compensate. I had a chuckle seeing fe syntax is LISP like and I was like “See? I’m not the only one.” Many just can’t give LISP and S-Expressions their due regard. Same for Reverse Polish Notation. I was born on the wrong planet.
This looks very similar to a library I wrote called https://fancy-pants.js.org which wraps custom elements. Mine allowed an opt-in approach to shadow dom or use the light dom (with slot support)
Updates are scheduled and only components that need updating get their render method called. I even threw in a way to pass objects to child components by means of a yield method.
Just in case someone found it intereting.
I wish I could GPG sign or hackcode my online content in pain text. But the tools to do so don’t make it to the general publics consciousness. We used to seal our communications with wax stamps but we don’t have a digital equivalent. Kinda how ROT13 used to be universally understood for spoilers now their use actively confuses people. This makes me sad.
I tried reactivity once to help me understand the implementation details under the hood. I wrote https://fancy-pants.js.org/ for this where I attached mutation to scheduling a render cycle. But it doesn’t address rendering leaving that to the student.
Something that really fascinates me is the difference between diffing versus declaration of dynamic content. In React and Vue it is a runtime function to know what changed and how to apply it. In Ember and Svelte it is a compile time calculation based on markers in the template.
I guess it comes down to personal preference. I’m quite the fan of a declarative style template that gets converted/compiled to a machine under the hood instead of diffing at runtime.
Considering length is key in computing “strength” I’m curious how using a long dialog from a movie might make it bad? Presuming you account for the full 95 entropy set (numbers, upper/lower letters, special characters) and padding¹ then how would an attacker know that a failed phrase failed because it was the wrong phase or because they forget to add some padding that is still unknown.
From a dictionary/rainbow table perspective I'm curious how they would know to include the following in their lookup tables before going fill number crunching mode:
TO be or NOT two be - that is the question!!!!!!!!!!7872665398
Bitwarden suggests this is strong as does GRC Haystacks¹ thoughts?I try to put all my tips tricks and ideas into a tiddlywiki.com as it is a full featured wiki that runs as a self contained HTML file that runs offline. Fantastic for offline documentation.
If only there was a universally available program and format for programming API’s we could reach for as a single command. We could call this man (short for manual).
What happened? In C ecosystem this is a no brainer. Why can’t my frameworks offer a simple man page I can download into a folder and it works offline. Why does modern documentation require such fancy things like a web browser?
I do. I have a Pi I run as a server where it runs PiHole, PiVPN (Wireguard), and a personal Node environment. My main use case is to have a system I can SSH into and develop personal projects. This works well because I have a few machines that I can’t develop locally. A work machine that I cannot mix personal work with. An iPad that has no local shell (I use https://blink.sh for this). It works fantastically!
I’ve made a home “Are you in a meeting” website that everyone on my WiFi can point their browsers to. I have https://tiddlywiki.com instances running there. It manages my VPN when I’m out of the house. And I block a huge portion of ads when I use it as a DNS server.
If you need to use a rejection as a meaningful thing other than an actual exception then it really isn’t an exception is it? Instead fulfill the promise with an object that actually represents the state. Perhaps with a status property. Otherwise your code is going to look like a hot mess and you’ll just confuse generations of developers. Just because you can does not mean you should.
Well for comparison, I did that learning curve process with SQL and I was able to understand it. But I did the same learning curve process with JQ and I still don’t understand it.
I found I am unique, I never learned to touch type but at the same time reaching for a mouse really slows me down. I realized years into using Vim that the reason I love it so much is that I can do all my editing from the keyboard and because it is a deterministic state machine (modal) I can have a mental copy of the editor running in my head while I'm not looking at the screen. This is important to me because I look at my hands while typing. When I use GUI editors like VSCode it pops up all kinds of fancy bells and whistles that when I return my eyes to the screen it no longer matches the mental model I had in my head and I have to do a huge context switch to re-sync; just like how I have to context switch when I reach for the mouse. Am I the only one has this method of typing/editing? Praise the creators for Vim and Emacs editors.
I started keeping a list. Each time I discover a game changing concept I add it to my resource list on my personal website. After doing this I found having such a list invaluable to both myself and others.