Readit News logoReadit News
lenkite commented on Google did not unilaterally decide to kill XSLT   meyerweb.com/eric/thought... · Posted by u/bkardell
dkiebd · 2 days ago
3. It will eventually be removed. Does it matter whether it will take three months or three years? Since I suppose none of the browser vendors will give developers money to change their xslt usage in codebases for something else.

5. Funny that we are talking about "info that leaks to the public" when we are discussing standards that may be important to billions of people, as if keeping things private was reasonable.

lenkite · a day ago
I wish there was a way to fund XSLT feature in browsers. Chrome team should just open up a funding for features page.
lenkite commented on Show HN: JavaScript-free (X)HTML Includes   github.com/Evidlo/xsl-web... · Posted by u/Evidlo
bawolff · a day ago
Since this seems to be about the recent proposal to remove xslt, i'd point out you can do the same thing with CSS

https://bawolff.net/css-website/index.xml is Evidlo's example but using a css stylesheet instead of xslt. I changed some of the text to explain what i was doing, but otherwise the XML is unchanged with one exception. Unfortunately you do have to put the <a> tags in the xhtml namespace to make them clickable. Other than that no changes to the xml.

Obviously there is a lot that xslt can do that css cannot, but when it comes to just display, CSS is an option here.

lenkite · a day ago
Umm..your CSS example doesn't show any template includes. No way to put header/footer in separate files.
lenkite commented on Go is still not good   blog.habets.se/2025/07/Go... · Posted by u/ustad
tedk-42 · 2 days ago
I'd swap java with go any day of the week. I never liked how much 'code-padding' is required with java `public static void main`
lenkite · 2 days ago
Every function call is 3-5 lines in Go. For any problem which needs to handle errors, the Go code is generally >2x the Java LOC. Go is a language that especially suffers from the "code padding" problem.
lenkite commented on Go is still not good   blog.habets.se/2025/07/Go... · Posted by u/ustad
j1elo · 2 days ago
> People expect a map/filter method

Do they? After too many functional battles I started practicing what I'm jokingly calling "Debugging-Driven Development" and just like TDD keeps the design decisions in mind to allow for testability from the get-go, this makes me write code that will be trivially easy to debug (specially printf-guided debugging and step-by-step execution debugging)

Like, adding a printf in the middle of a for loop, without even needing to understand the logic of the loop. Just make a new line and write a printf. I grew tired of all those tight chains of code that iterate beautifully but later when in a hurry at 3am on a Sunday are hell to decompose and debug.

lenkite · 2 days ago
This depends on the language and IDE. Intellij Java debugger is excellent at stream debugging.
lenkite commented on Go is still not good   blog.habets.se/2025/07/Go... · Posted by u/ustad
theshrike79 · 2 days ago
uv + the new way of adding the required packages in the comments is pretty good.

you can go `uv run script.py` and it'll automatically fetch the libraries and run the script in a virtual environment.

Still no match for Go though, shipping a single cross-compiled binary is a joy. And with a bit of trickery you can even bundle in your whole static website in it :) Works great when you're building business logic with a simple UI on top.

lenkite · 2 days ago
uv is the new hotness now. Let us check back in 5 years...
lenkite commented on The Core of Rust   jyn.dev/the-core-of-rust/... · Posted by u/zdw
tracker1 · 3 days ago
I know this... my point was in that Rust didn't have this feature 5-8 years ago when I first started reading/learning about it. A lot of languages haven't had an active scripting-capable usage that can do this until fairly recently. C# even has it in .Net 10, though I'm not sure about dependency handling in that case.

I like and was commenting that rust has the cargo frontmatter instead of a separate cargo file, same for deno in that it can reference the repo/url directly instead of requiring a separate modules file/folder (like node package.json/node_modules) or even with python. You can reference the modules you need directly.

lenkite · 2 days ago
This is still a nightly feature as I just discovered when I attempted to run this sample.
lenkite commented on Modern CI is too complex and misdirected (2021)   gregoryszorc.com/blog/202... · Posted by u/thundergolfer
AtlasBarfed · 4 days ago
I want my build system to be totally declarative

Oh the DSL doesn't support what I need it to do.

Can I just have some templating or a little bit of places to put in custom scripts?

Congratulations! You now have a turing complete system. And yes, per the article that means you can cryptocurrency mine.

Ansible terraform Maven Gradle.

Unfortunate fact is that these IT domains (builds and CI) are at a junction of two famous very slippery slopes.

1) configuration

2) workflows

These two slippery slopes are famous for their demos of how clean and simple they are and how easy it is to do. Anything you need it to do.

In the demo.

And sure it might stay like that for a little bit.

But inevitably.... Script soup

lenkite · 2 days ago
No, you keep your build system declarative, but you support a clean plugin API that permits injection into the build lifecycle and allow configuring/invoking the plugin with your DSL.
lenkite commented on Code formatting comes to uv experimentally   pydevtools.com/blog/uv-fo... · Posted by u/tanelpoder
cedws · 2 days ago
I mean, Go was designed by one of the authors of UNIX, and that has very much batteries-included tooling.
lenkite · 2 days ago
So UNIXy that he didn't even like long options (--option) in the standard flag library.
lenkite commented on Australia Post halts transit shipping to US as 'chaotic' tariff deadline looms   abc.net.au/news/2025-08-2... · Posted by u/breve
throwawa5 · 3 days ago
What US military aid is going to Pakistan at this point? This info is a decade out of date. Pakistan is incredibly tight with China now.
lenkite · 3 days ago
Kindly educate yourself on the latest developments. US President Donald Trump approved ~$450 million for Pakistan to sustain its F-16 fighter jets after Pakistan's Army Chief cozied up. US-Pakistan strategic military ties have also now re-opened and further deals are on the table.

US wants airbase capability in Pakistan to bomb Iran - at-least that is what American military analysts are saying. Another compelling reason is exploitable rare earths and oil in Balochistan.

Do note that China is not sanctimoniously ordering India to stop buying oil from Russia, Iran and Venezuela.

lenkite commented on Python f-string cheat sheets (2022)   fstring.help/cheat/... · Posted by u/shlomo_z
lenkite · 3 days ago
Say if you were designing a new language and wanted to include string formatting as a feature. Would you personally choose Python f-strings or C-style format strings or Rust-style formats ?

u/lenkite

KarmaCake day4719May 14, 2012View Original