HNHacker News
TopNewBestAskShowJobs

miragecraft

290 karma · joined July 28, 2022

Burned out web designer/developer and techno-luddite. --- miragecraft.com
submissionscomments
miragecraft··on Help us raise $200k to free JavaScript from Oracle
Maybe this is the chance to finally get rid of “Java” from JavaScript. My vote goes to WebScript.
miragecraft··on Ultrasonic Chef's Knife
I think it’s really cool, but not sure about the button design (seams to trap germs) and placement (index finger is not where I naturally exert pressure when cutting with a kitchen knife).

Also would be nice if it can be fitted to existing blades as handle retrofit, but I understand that might not be possible to properly tune the vibrations.

miragecraft··on Ask HN: Looking for headless CMS recommendation
I think a hosted solution is best, unless you know for sure that they’ll always have a developer willing to volunteer their time to manage their server and keep everything up to date.

The cost is peanuts compared to the hourly rate of a developer to personally manage and keep secure their website for them.

As for static site, you think a non technical person can handle a static site generator and deploying to GitHub Pages? I doubt it.

Often times it gets very expensive to cheap out on things.

miragecraft··on Document.write
I disagree that you shouldn’t use document.write for <script> and <style> tags, as it’s the only way to force dynamically inserted script to run in a parser-blocking manner during parsing, and to prevent flash of unstyled content (FOUC) for dynamically inserted styles.

Yes it’s slower, but does it matter for your specific use case? Async scripts are harder to reason about, esp if you have nested templates. FOUC is also a much bigger and more noticeable problem than the tiny delay to parse the CSS snippets.

Forcing scripts to be parser-blocking is also needed if you want to nest document.write, to ensure it is writing to the correct location in the document.

I created an HTML includes library that utilizes document.write extensively: https://miragecraft.com/projects/x-include

miragecraft··on Six Years of Gemini
Ok I guess if you are that level of paranoid - even though both Chromium and Firefox are open source and under a heck of a lot of scrutiny for security vulnerabilities - then I understand why you prefer Gemini.

I just feel the fact that it cuts it self off from the wider clearnet completely kills your audience reach, if you’re ok writing to a very small insular community then sure, but most people want their writings to be read by as many people as possible.

miragecraft··on Six Years of Gemini
You can create a browser plugin that detect such tag and automatically turns off JavaScript.

You can even configure the plugin to detect if a page contains JavaScript while claiming not to be.

miragecraft··on Six Years of Gemini
Instead of inventing a separate protocol, you can invent your own html meta tag that marks a website to be JavaScript-free.

This will let you create search engines that crawl and index these sites specifically.

miragecraft··on A flat pricing subscription for Claude Code
My father pays for ChatGPT and it’s his personal consultant/assistant for everything - from troubleshooting appliance repair, to finding the correct part to buy, to guiding him step by step to track down lost luggage and drafting the email to airline asking for compensation (and got it).

It does everything for him and it gives him results.

So no, I don’t think it’s most useful for programmers, in fact I feel people who are not very techy and not good at Googling for solutions benefit the most as chatGPT (and LLM in general) will hand hold them through every problem they have in life, and is always patient and understanding.

miragecraft··on RybbitL Open source Google Analytics replacement
The logic is simple, as soon as you collected and/or processed IP addresses, you need user consent as it is personal data.

You don’t get to “undo” this requirement by discarding the IP address afterwards, the law doesn’t care.

Others have come to the same conclusion: https://github.com/plausible/analytics/discussions/1963

miragecraft··on RybbitL Open source Google Analytics replacement
A couple of days ago I was researching website analytics and GDPR/cookie law, and it seems clear that you need user consent even if IP addresses are only processed or temporarily stored before being discarded.

Arguing otherwise is like claiming it’s legal to steal from a store as long as you return the goods the next day - it’s legal fantasy.

I don’t think the EU is eager to go after these “ethical” analytics companies or their users, since they have bigger fish to fry. But if you think you’re legally in the clear using these solutions without user consent, you’re fooling yourself.

miragecraft··on You sent the message, but did you write it?
This is just people being lazy and asking AI to do their proverbial homework instead of using it as a teacher to help them improve.
miragecraft··on We fell out of love with Next.js and back in love with Ruby on Rails
He’s politically naive. I agree with him on much, such as don’t make workplace political, and cancel culture and DEI have in many cases gone mad, but his tolerance, even gentle celebration of Trump in the name of free speech is a classic example of the paradox of tolerance.

https://en.m.wikipedia.org/wiki/Paradox_of_tolerance

However he is right in many cases, and I don’t expect anyone to be right all the time, myself included. It’s strange to look for political leadership from a programmer anyhow.

miragecraft··on Why can't HTML alone do includes?
I too lamented the loss of HTML imports and ended up coming up with my own JavaScript library for it.

https://miragecraft.com/blog/replacing-html-imports

At the end of the day it’s not something trivial to implement at the HTML spec/parser level.

For relative links, how should the page doing the import handle them?

Do nothing and let it break, convert to absolute links, or remap it as a new relative link?

Should the include be done synchronously or asynchronously?

The big benefit of traditional server side includes is that its synchronous, thus simplifying logic for in-page JavaScript, but all browsers are trying to eliminate synchronous calls for speed, it’s hard to see them agreeing to add a new synchronous bottleneck.

Should it be CORS restricted? If it is then it blocks offline use (file:// protocol) which really kills its utility.

There are a lot of hurdles to it and it’s hard to get people to agree on the exact implementation, it might be best to leave it to JavaScript libraries.

miragecraft··on Minimum Viable Blog
I was handwriting HTML for a while but found that I write a lot more with an actual CMS. At the end of the day it doesn’t matter what your setup is as long as it helps you write as much as possible.
miragecraft··on How I blog with Obsidian, Hugo, GitHub, and Cloudflare
It’s great that this works for you, I hope you write lots.

Everyone’s brain is wired differently, and for me Kirby CMS works best as I can blog anywhere and can run scripts server side. Throw it up on NearlyFreeSpeech.Net and I pay less than $5 a year for hosting.

I’ve read about SSGs suffer software (really dependency) rot when left alone for a few years. You’ll never need to worry about that with PHP.

miragecraft··on Avoiding Skill Atrophy in the Age of AI
It depends on how you use AI - are you using it as "smart shortcut" turning comments/pseudo-code into code blocks? Are you using it for pair programming? A senior programmer to bounce ideas off of?

If you want to learn, AI is extremely helpful, but many people just need to get things done quick because they want to put bread on the table.

Worrying about AI not available is the same as worrying about Google/Stackoverflow no longer being available, they are all tools helping us work better/faster. Even from the beginning we have phyiscal programming books on the shelves to help us code.

No man is an island.

miragecraft··on Minimal CSS-only blurry image placeholders
Is this really a performance concern though?
miragecraft··on Overengineered Anchor Links
In the final demo, when I click on "Conclusion" in the side nav, it doesn't even bring the content into view.
miragecraft··on Yes, some of China's educated youth just asserted sovereignty over Australia
The Zhihu answer linked, which supposedly has over 20 million hits, has less than 7,000 people who clicked on “Agree”.

And someone decided to make a sensationalist news article out of it.

miragecraft··on The Frontend Treadmill
Use “survivor” frameworks, things that last a decade will likely last another. Tailwind, React, Vue, PHP/Laravel, Rails etc. are all very much alive and kicking.

Plus there is nothing wrong with using outdated front end framework other than being unfashionable.

The web is the most backwards compatible platform ever invented,

miragecraft··on TikTok preparing for U.S. shut-off on Sunday
Other children.
miragecraft··on Before you buy a domain name, first check to see if it's haunted
That’s a contradictory statement.
miragecraft··on Before you buy a domain name, first check to see if it's haunted
That’s pretty much what happened to those domains.
miragecraft··on Before you buy a domain name, first check to see if it's haunted
Haunted is a weird way to call them, these are stigmatized domains.
miragecraft··on Using static websites for tiny archives
I'm doing the same except with the convenience of HTML includes.

https://miragecraft.com/projects/x-include

miragecraft··on WordPress.org's latest move involves taking control of a WP Engine plugin
I thought I was reading a tweet from Wendy’s.
miragecraft··on Wordpress.org Login: "I am not affiliated with WP Engine in any way"
I have no horse in this race, my site is powered by Kirby CMS due to my preference for simplicity and security.

Wordpress seems like the dying Emperor in 40k where the daily sacrifice of thousands of psykers (developers) is the only thing sustaining its life.

If this drama craters the developer base then Wordpress might collapse under its own weight.

miragecraft··on Why has Japan been hit with rice shortages despite normal crops?
A lot of countries have a national food reserve that is used to calm prices when demand fluctuates, it allows time to adjust production while you’re putting food in or out of the reserve to control prices.

Does Japan not have that?

miragecraft··on Google-Wiz deal fizzles out, company will pursue IPO
Cloudflare makes no money on domain registration.
miragecraft··on Writing HTML by hand is easier than debugging your static site generator
I coded my own JS based HTML include leveraging script tags.

https://github.com/miragecraft/x-include

The main advantage is that it’s not subject to CORS thus works directly from the local file system without having to set up localhost.

Page 1 of 4Next →