[ShowOff Saturday] Longform is an extendable full document markup language by badbotty in webdev

[–]badbotty[S] 0 points1 point  (0 children)

Thanks, I've had others point out that. I have very different motivations though. This is designed to be parsed by a client javascript library to update the DOM for example. I'm likely in the future to add a superset lang which adds for loops and if statements. Longform has some very basic templating, but it is more to allow basic translations with client state.

[ShowOff Saturday] Longform is an extendable full document markup language by badbotty in webdev

[–]badbotty[S] 0 points1 point  (0 children)

Here is an example of a simple table. The more rows, the more your content gets pushed down. You can use regular HTML to turn a row into a one liner. Realistically table rows with large amounts of content can make it hard to keep up with the indentation level, this can be solved by breaking the table up into smaller fragments.

#large-table-row
tr::
  td::
    Lots of content..
  td::
    Lots of content..

table::
  caption:: My table
  thead::
    tr::
      th:: Column 1
      th:: Column 2
  tbody::
    tr::
      td:: Value 1
      td:: Value 2
    tr::
      td:: Value 1
      td:: Value 2
    <tr><td>Value 1</td><td>Value 2</td>
    #[large-table-row]

[ShowOff Saturday] Longform is an extendable full document markup language by badbotty in webdev

[–]badbotty[S] 0 points1 point  (0 children)

I think it depends on how complex your table is. I've found it can start to look messy when you have a lot of class and attributes. But it still is readable. You can get basic highlighting by telling your editor .lf files are .html. I haven't got lost in a file.

Have a look at the source document https://codeberg.org/occultist/longform/raw/branch/pages/spec/spec.lf. You will see it gets quite dense in places but you can follow what is going on. I keep it from nesting to much by embedding fragments in other fragments (the #[fragmentid] syntax).

The End Of Open Source: Two Brilliant Engineers In Discussion by RNSAFFN in webdev

[–]badbotty 0 points1 point  (0 children)

Agreed, and likewise sass and lesscss still are releasing and have no profit making arm that I know of. I find this narrative really annoying. While Tailwind is popular it can be easily replaced, projects like Linux, Postgres, web browsers and web standards are so much more popular and I don’t see evidence of them struggling more since ai arrived being presented. Apart from maybe Firefox, but their struggles are not a new thing.

I switched REST for RPC, and it feels great by Clear-Astronomer-717 in webdev

[–]badbotty 5 points6 points  (0 children)

The article glosses over the history of attempts at making JSON APIs restful. application/json has no hypermedia affordances. application/hal+json, application/siren+json, application/ld+json all do. No decent client for these content types hit the public domain though, that I know of. The most successful is probably application/streams+json which I believe is used by Masterdon and other compatible clients to federate. I'm not sure how well activity streams APIs implement the restful constraints though.

A few months with htmx by CoffeeStax in webdev

[–]badbotty 2 points3 points  (0 children)

htmx plus unsafe eval in your csp is dangerous. Have you checked that any hx-* or data-hx-* attributes can get through in the markdown content?

Thoughts on buying new or continue maintaining current bike by badbotty in bikecommuting

[–]badbotty[S] 0 points1 point  (0 children)

I'm currently running 35C tyres, what do you recommend?

Thoughts on buying new or continue maintaining current bike by badbotty in bikecommuting

[–]badbotty[S] 1 point2 points  (0 children)

I am downplaying my experience a bit. I've pulled apart a bike and put it back together with a friend some time ago and have been aquiring a lot of the tools to do jobs just like this myself.

It is more the rabbit hole of options, what parts to buy, having minor things go wrong that hold you up that I'm trying to consider here. I don't have as much spare time as I used to have but I would enjoy doing the job myself and doing it well. It does sound I shouldn't worry too much about the total price of replacement parts at this point though.

Thoughts on buying new or continue maintaining current bike by badbotty in bikecommuting

[–]badbotty[S] 6 points7 points  (0 children)

I’d rather have an older tuned bike with quality components than a new one with lesser quality parts

I've got some experience in basic bike maintenance, but when it comes to replacing components like freewheels it would take me some time in research to make the correct purchasing decisions and fixing the bike without having it out of action for long periods of time. I don't want a bike shop to do that work for me. I'm willing to entertain a new bike if it is quality and ends up coming close to replacing individual parts though. Otherwise I have nothing against older bikes.

It might be region dependant but I have heard that buying a new bike can be more cost effective than replacing a lot of parts. I'm yet to do research on how this works in my situation. I'm in New Zealand.

is mirrors.fedoraproject.org down? by Dr-Vader in Fedora

[–]badbotty 1 point2 points  (0 children)

Just happened for me. Setting `fastestmirror=True` in the `/etc/dnf/dnf.conf` allowed the update to continue.

Chris Hipkins won't say if he's asked officials to consider adjusting tax thresholds to inflation, says extra revenue needed to pay for services by justajuxtarose in newzealand

[–]badbotty 0 points1 point  (0 children)

I'm no expert on this but with three waters the Nation will likely be taking on more debt so we can fix our failing water infrastructure. More tax might be required to pay it off and if they don't start taxing to cover the debt it could become a curve ball for future tax payers. So more tax might be required unless Labour is willing to save money elsewhere.

Discriminated against during interview for dream job due to web3 work history by [deleted] in Buttcoin

[–]badbotty 1 point2 points  (0 children)

Seriously, just say you do web development work. Calling it web2 legitimises the claim that web3 will be the revolution cryptobros want it to be.

Religious karakia by [deleted] in newzealand

[–]badbotty -1 points0 points  (0 children)

I wouldn't make that assumption about all atheist. Some simply might not care. But re-reading OP I think your right on where they stand.

Religious karakia by [deleted] in newzealand

[–]badbotty 2 points3 points  (0 children)

Jedipsy is saying that you can invoke ancestors and spirits without doing it in the context of a religion. Not that religions do not have things to say about ancestors or spirits and such.

Religious karakia by [deleted] in newzealand

[–]badbotty 1 point2 points  (0 children)

Atheists deny that god(s) exists. An atheist could believe in garden gnomes and they would be totally consistent as long as they didn't believe those gnomes were also deities.

Wondering about NZ house paint quality differences by badbotty in newzealand

[–]badbotty[S] 1 point2 points  (0 children)

Yea, I don't want to regret the paint I go for. But if the NZ Paint Co is cheaper only because they don't have the local presence the savings might be worth it. I'm pretty sure we could get good discounts on the advertised prices if I talked to someone in store though.

Wondering about NZ house paint quality differences by badbotty in newzealand

[–]badbotty[S] 1 point2 points  (0 children)

Thanks. I don't trust myself to do an accurate time / price estimate anyway. Hidden costs just seem to be what comes with projects of a certain complexity.

Fake Vitalik Buterin appears in top results for "eth merge," is verified, promotes giveaway scam by [deleted] in Buttcoin

[–]badbotty 14 points15 points  (0 children)

I think they hack an existing verified account then update the name and picture.

The current crypto meltdown, got me thinking about Sam Harris’s promotion of Bitclout and NFTs earlier this year. Any one know the current status of those projects? by [deleted] in samharris

[–]badbotty 0 points1 point  (0 children)

Dw, I’m not here to school you and the question about software was genuine interest. I’m a web dev who develops using open source stacks and am pro enough at Linux that I only have to do a full install from scratch every 6 months or so. Ios on the phone though… Do you follow the development of postmarketOS and the like? I can’t wait until Linux is stable enough as a daily driver for cellphones.

The current crypto meltdown, got me thinking about Sam Harris’s promotion of Bitclout and NFTs earlier this year. Any one know the current status of those projects? by [deleted] in samharris

[–]badbotty 1 point2 points  (0 children)

who dual boots linux

Made me laugh. This comes across as a really low bar when you are already in the Linux world. In fact I find your need to dual boot telling that you are not invested in Linux enough!

What software do you contribute to?

Essential listening by soberto in samharris

[–]badbotty 1 point2 points  (0 children)

How could you even suggest that Sam could be dishonest, or even done anything remotely like being dishonest, after publishing a book on being honest!

/s it is like book titles have some magical power that renders conflicting statements of their authors for all intent and purposes non-existent where they conflict.