HackerTrans
TopNewTrendsCommentsPastAskShowJobs

miragecraft

no profile record

comments

miragecraft
·10 maanden geleden·discuss
Maybe this is the chance to finally get rid of “Java” from JavaScript. My vote goes to WebScript.
miragecraft
·10 maanden geleden·discuss
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
·10 maanden geleden·discuss
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
·11 maanden geleden·discuss
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
·12 maanden geleden·discuss
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
·12 maanden geleden·discuss
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
·12 maanden geleden·discuss
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
·vorig jaar·discuss
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
·vorig jaar·discuss
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
·vorig jaar·discuss
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
·vorig jaar·discuss
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
·vorig jaar·discuss
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
·vorig jaar·discuss
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
·vorig jaar·discuss
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
·vorig jaar·discuss
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
·vorig jaar·discuss
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
·vorig jaar·discuss
Is this really a performance concern though?
miragecraft
·vorig jaar·discuss
In the final demo, when I click on "Conclusion" in the side nav, it doesn't even bring the content into view.
miragecraft
·vorig jaar·discuss
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
·vorig jaar·discuss
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,