#dev 2024-04-07

2024-04-07 UTC
#
[Al_Abut]
MDX is an extension of the Markdown language that mixes in JSX components, which helps with creating reusable elements, and more interactive charts and alerts. Website for more info: https://mdxjs.com
#
[qubyte]
I played a bit with remark way back. It has the better architecture, but it wasn’t doing the basic stuff well enough back then. Markdoc does a bit too much (I’m a control freak). As for MDX, I will never let JSX even remotely near my personal projects (I want them to retain my interest).
#
[tantek]
backs away slowly from JSX
#
[qubyte]
To each their own of course! My opinions only drive my own site 😄
#
[Al_Abut]
Ooo, sounds juicy. I humbly request some venting about JSX.
#
[Al_Abut]
I’m not a javascript dev and don’t have a dog in the fight, just been easing into using JSX because that’s Astro’s native way to do reusable HTML components.
#
[Al_Abut]
So some foresight about possible pitfalls could be useful
lanodan, [Joe_Crawford], Guest1350, [snarfed], [aciccarello], [contact898], [tantek], to2ds, mahboubine and [Jan_Tuomi] joined the channel
#
[Jan_Tuomi]
Considering how much insanity there is in the JS ecosystem, JSX is one of the saner parts of it in my opinion. And this is coming from an intermittent JS dev. It's just syntactic sugar for a bunch of DOM-representing JS anyway. It's pretty strict too: as long as you properly close your tags it's pretty pitfall-free. I think you are more likely to encounter problems with Astro and the way that it uses JSX rather than JSX itself
to2ds, AramZS and ttybitnik joined the channel
#
[Al_Abut]
Oh [Jan_Tuomi], how true it is that I’ve had to wrestle with Astro. It took me months of part-time work late last year to port my site from the hand-crafted html to using Astro. To be fair, I’m 99% sure it would’ve been the same with any site generator given the manual nature of my previous site version and I decided to that I’d rather get the rust off of my javascript skills than learn a language like Go that I’d never touch agai
#
[Al_Abut]
design work.
#
[Al_Abut]
Having gone through that tunnel though, now I increasingly get that “tipping point” feeling that it was worth it, like jamming out quick markdown blog posts or being able to use components for a new work portfolio.
#
[Jan_Tuomi]
I’m glad you feel that it was worth it :D Having done a number of frontend rewrites, my experience is that that feeling is not necessarily guaranteed 😅
AramZS and [KevinMarks] joined the channel
#
[qubyte]
Sorry, not going to be drawn into a discussion on it. To each their own! Especially when it comes to personal sites.
geoffo, [aciccarello], IWSlackGateway, [KevinMarks], [tantek], [contact898], [Joe_Crawford], [qubyte], [snarfed], [Al_Abut] and to2ds joined the channel
#
gRegor
Re-reading https://github.com/indieweb/micropub-extensions/issues/24, the IBC use of draft scope is different than some others. Specifically, draft scope will default post-status=draft on the new post form, but you can select published instead.
#
gRegor
I think that's OK. IBC requires create scope, draft scope is optional.
#
Loqi
[preview] [dshanske] #24 Proposed Draft Scope
#
gRegor
I chose not to keep the draft posts on your IBC profile, only send them to your Micropub endpoint. Because it's not like writing a draft of longer text you'll come back to edit.
#
gRegor
It sounds like in a couple other implementations, draft scope will force post-status=draft
#
GWG
That's how mine works...If you don't also have create
#
gRegor
On the MP server you mean?
#
gRegor
I haven't done anything on that side of it yet
#
gRegor
I suppose I should support only granting draft scope, in which case it would force post-status=draft.
#
gRegor
I might have been thinking too broadly that create scope was a requirement to create *any* post, draft or published. Seems like draft scope can be in lieu of create scope.
#
GWG
For me, when you request create it offers the chance to change it to draft. If you do, then you can only post drafts.
#
GWG
If you request create you can still create drafts, so for me the permission is a limiter
#
gRegor
Gotcha
#
GWG
For me, requesting both is the same as requesting create
#
gRegor
"If you request create you can still create drafts" That's what IBC is doing now too.
#
gRegor
Shouldn't cause any problems, but yes, I should expand IBC to allow only providing draft scope.
#
gRegor
2 issues closed, 1 opened :)
[Al_Abut], [tw2113], gRegor, ttybitnik, jeremycherfas and earlps joined the channel