169 karma · joined Oct 19, 2022 (4y ago) · 21 submissions
comment 1y ago · link · parent
As a preview, two specific cases I've seen:
1) In PRs, some companies like to have semi-structured metadata, like a link to a related ticket under a heading "Ticket". In mdq, you could find that using `# Ticket | [](^https://issues.acme.com/)`
2) Many projects ask people who submit bugs to check off whether they've searched for existing bugs. `- [x] I've looked in the bug tracker for existing bugs`
comment 1y ago · link · parent
If you want to open an enhancement request issue, I'm happy to take a look (PRs also welcome, but not required). If you're not on GitHub, let me know and we can figure out some other way to get the request tracked.
Thanks for taking a look at the project!
comment 1y ago · link · parent
comment 1y ago · link · parent
6.
Show HN: Jq-Like Tool for Markdown(github.com ↗)
325 points · by yshavit · 1y ago · 75 comments
comment 3y ago · link · parent
comment 3y ago · link · parent
10.
State of Infrastructure-from-Code 2023(klo.dev ↗)
14 points · by yshavit · 3y ago · 1 comment
comment 3y ago · link · parent
Firstly, my experience with Haskell left me pretty skeptical of pure programming languages. They're just that much harder to grok; debugging becomes harder (though it looks like this language has log functions, so it's not totally pure FP?), `for` loops are just easier to think about than folding, etc.
But beyond that, the problems this language tries to address just don't seem like the real problems I face. Let's take a few:
• distributed programming: shipping bits of opcode (whether it's machine code, Java bytecode, etc) is easy. The hard part is knowing which bits to distribute where, especially when they have to operate on shared state. I don't see how hashing ASTs helps with that.
• no builds: I mean sure, that's nice I guess. But tbh, I spend very little of my day or mental energy waiting for compilation.
• dependency conflicts: The bad ones of these don't arise from name conflicts — those are easy to get around. The bigger problems are things like two dependencies that each depend on different versions of the same library, and you want them to communicate: you want DepA to talk to DepB via some object defined in DepC that they both use, but DepA and DepB use different and incompatible versions of DepC. Hashing doesn't seem to fix this.
Now, that doesn't mean people shouldn't learn this, especially if they find it interesting. I don't use Haskell at all, but I think I'm a better programmer for having learned it, because it made me think of things in a new way. This language could well be similar — but I don't see it replacing mainstream languages.
comment 3y ago · link · parent
(I'm newish to HN, so please let me know if this message is inappropriate!)
comment 3y ago · link · parent
So, while this announcement is sad, I can't say it's shocking. In other languages I know, IntelliJ products are significantly better than the competitors. For Swift, it's a bit more... meh.
comment 4y ago · link · parent
My sense is that a big part of why people don't like subscription models is that they figure, "I have to pay every month/year, but the developers don't actually have to write new features in that time." I think that mindset implicitly prices the software based on the cost to the company of developing it. I'm suggesting that another mindset is, "if I use this for 10 months instead of 1 month, then it's worth ~10x as much to me (relative to if I'd only used it 1 month), so it makes sense I'd pay ~10x more for it."
I was looking at it less from the business's perspective, and more from the emotional perspective of the buyer.
comment 4y ago · link · parent
comment 4y ago · link · parent
Personally, I tried it once and was too weirded out — I've lived with the side panels for so long that it feels wrong without them there, minimized and providing a nice little frame for my thoughts.
comment 4y ago · link · parent
It's not just a detail of the underlying runtime; there are very real, semantic problems that would occur if two(s) compiled. Consider what would happen if instead of just returning its input, two([]any) modified it:
func two(s []any) {
s[0] = "hello"
}
That's certainly allowed. Now imagine you had: someInts := []int{1, 2, 3}
two(someInts) // this won't compile
It's a good thing that second line doesn't compile, or your []int would contain a string element.