<[0x1eef_]>
You can use require() anywhere, usually. It's also possible to do a lazy import, where the actual import can happen in a place other than the top-level.
donofrio has quit [Read error: Connection reset by peer]
donofrio has joined #ruby
jenrzzz_ has quit [Ping timeout: 272 seconds]
jenrzzz_ has joined #ruby
<adam12>
rapha: Neat. Let me know how it works. I'm going to try to cut a new release shortly.
jenrzzz_ has quit [Ping timeout: 255 seconds]
jenrzzz_ has joined #ruby
Starfoxxes has quit [Ping timeout: 252 seconds]
jenrzzz_ has quit [Ping timeout: 272 seconds]
jenrzzz_ has joined #ruby
Starfoxxes has joined #ruby
jenrzzz_ has quit [Ping timeout: 272 seconds]
reset has quit [Quit: reset]
<[0x1eef_]>
adam12: If you have the time, you can now 'gem install twenty.rb'. Then 'twenty migrate', followed by 'twenty up'. You will probably want to link a project first: 'twenty connect' in the root of a project. There's still a lot of work to do but curious for your feedback.
<[0x1eef_]>
There's a total of 6 dependencies. Going to try reduce that but might be impossible without moving away from AR.
wyclif has joined #ruby
wyclif has quit [Client Quit]
wyclif has joined #ruby
jenrzzz_ has joined #ruby
fercell_ has joined #ruby
fercell has quit [Ping timeout: 272 seconds]
CRISPR has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
CRISPR has quit [Ping timeout: 260 seconds]
jenrzzz_ has joined #ruby
CRISPR has joined #ruby
jenrzzz_ has quit [Ping timeout: 260 seconds]
gthank has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 252 seconds]
CRISPR has quit [Ping timeout: 272 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 252 seconds]
gramps has joined #ruby
Vonter has quit [Ping timeout: 260 seconds]
jenrzzz_ has joined #ruby
Vonter has joined #ruby
jenrzzz_ has quit [Ping timeout: 252 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
jenrzzz_ has joined #ruby
coala has joined #ruby
jenrzzz_ has quit [Ping timeout: 252 seconds]
joako_ has quit [Quit: quit]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 272 seconds]
grenierm has joined #ruby
joako has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
_ht has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
cxl has quit [Quit: bye]
cxl has joined #ruby
jenrzzz has joined #ruby
mange has quit [Quit: Quittin' time!]
jenrzzz has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
rofi has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
rofi has quit [Quit: Client closed]
wyclif has quit [Quit: leaving]
jenrzzz has quit [Ping timeout: 260 seconds]
<rapha>
adam12: it seems to be working well with webrick. with iodine i notice often (but not always) the file will not be found, although it exists in assets/ when i check.
<rapha>
[0x1eef_]: your "Install" section is now outdated.
<rapha>
damn, that must be the first sensible use of a monorepo i've seen, like, ever
jenrzzz has joined #ruby
hd1 has joined #ruby
hd1 has left #ruby [#ruby]
hightower3 has quit [Ping timeout: 260 seconds]
nil78_ has joined #ruby
nil78 has quit [Ping timeout: 255 seconds]
<[0x1eef_]>
Good catch, I should update that.
jenrzzz_ has joined #ruby
lightbulbjim has joined #ruby
lightbulbjim has quit [Client Quit]
mmohammadi9812 has joined #ruby
mohammadi9812m has joined #ruby
xdminsy has joined #ruby
mmohammadi9812 has quit [Ping timeout: 256 seconds]
jenrzzz_ has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
splud has quit [Ping timeout: 256 seconds]
coala has quit [Quit: WeeChat 4.1.3]
jenrzzz has joined #ruby
grenierm has quit [Ping timeout: 250 seconds]
mohammadi9812m has quit [Ping timeout: 252 seconds]
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
mange has joined #ruby
<rapha>
[0x1eef_]: re the lazy import thing ... export { Chart } is at the bottom of Chart.js's ESM chart.js file. Same as what Turbo do for their ESM turbo.js file. One works, the other doesn't when used via <script type=module ...> - go figure.
<rapha>
btw, what's special about 7919?
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 268 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 264 seconds]
jenrzzz_ has joined #ruby
acosta has quit [Quit: Ping timeout (120 seconds)]
jenrzzz_ has quit [Ping timeout: 240 seconds]
acosta has joined #ruby
osc4rpt has quit [Quit: leaving]
osc4rpt has joined #ruby
jenrzzz_ has joined #ruby
szkl has quit [Quit: Connection closed for inactivity]
splud has joined #ruby
jenrzzz_ has quit [Ping timeout: 246 seconds]
mange has quit [Quit: Zzz...]
donofrio has quit [Ping timeout: 272 seconds]
<[0x1eef_]>
rapha: I haven't used them, but from what I gathered, dynamic imports are understood by syntax alone. If you have "import('chart').then((m) => m.Chart)", or in an async function: "const m = await import('foo'); m.Chart". Might not work on all browsers but if you have a module bundler as well it shouldn't be a problem.
<[0x1eef_]>
It also seems type='module' is not needed to use them.
<[0x1eef_]>
I have avoided code splitting because it doesn't really fit into my workflow but I can see a strong case being made for them + dynamic imports.
<[0x1eef_]>
It's not a golden bullet though. The user still has to wait, just later on, so the UI would have to handle a 'loading' state and potentially any errors too.
<rapha>
i'm trying to (and adam12 also seems to be trying to) get rid of using a bundler, in the first place
<rapha>
which brings you to importmaps and ESM and type=import quickly, and wanting to not have to use outdated UMD
mmohammadi9812 has joined #ruby
<[0x1eef_]>
Ah I see.
<rapha>
weaksauce: i wholeheartedly agree. and having slapped types onto it and renaming it hasn't reeeeally helped.
<rapha>
neither have all the fancy features borrowed from other languages left and right in recent years lol...
<[0x1eef_]>
I like React so a bundler is a must AFAIK, unless I want replace JSX with vanilla JS and that'd probably be x10 worse.
<rapha>
so you already bought into the whole thing, yeah, in that case i guess it's best to go with whatever the hipsters have dreamed up in their endless dreams of inception.
<[0x1eef_]>
xD
<[0x1eef_]>
I feel that way, but just about Linux. :)
<rapha>
well, linux has certainly taken a couple of turns for the worse in that regard :(
<[0x1eef_]>
Indeed :P
<rapha>
sometimes i wish someone did a fork of manjaro's XFCE edition and based it on openrc. that'd be a start.
mmohammadi9812 has quit [Ping timeout: 260 seconds]
<[0x1eef_]>
I liked Void Linux once upon a time. These days I've given up on it completely.
<[0x1eef_]>
It seems anything that corporate touches is bound to die. I think the worst parts of Linux lately have come from RedHat.
<rapha>
Lennart *cough* P*cough, cough, clears throat*
<[0x1eef_]>
Lol
nil78_ has quit [Read error: Connection reset by peer]
nil78 has joined #ruby
infinityfye has joined #ruby
infinityfye has quit [Ping timeout: 252 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 264 seconds]
infinityfye has joined #ruby
_whitelogger has joined #ruby
user71 has joined #ruby
<rapha>
need to increase the IRC VM's disk size
rapha has left #ruby [WeeChat 3.7.1]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
dalan038228335 has quit [Quit: Ping timeout (120 seconds)]
sympt has quit [Quit: Ping timeout (120 seconds)]
dalan038228335 has joined #ruby
sympt has joined #ruby
<[0x1eef_]>
Or disable logs :)
<adam12>
[0x1eef_]: Void is corporate now?
<[0x1eef_]>
I don't think so. It's a community effort.
<adam12>
[0x1eef_]: Have you ever seen `htm` and `lit`? Both great replacements for React, at least for the work I do.
<adam12>
Oh. I must have misunderstood.
<[0x1eef_]>
I meant I left Linux behind rather than Void specifically ;)
<adam12>
Oooh
<adam12>
I tried, but I spent so much time trailblazing.
<[0x1eef_]>
I haven't seen those. I've used React + Vue. I heard Svelte is the new cool project, at least a year ago. JS moves super fast.
<[0x1eef_]>
It's hard to keep up. Rewriting something to use the next big thing is kind of wasting time, because no features or bug fixes are happening.
<adam12>
Svelte is definitely interesting, and I agree that JS moves super fast.
<adam12>
I want to write the minimal amount of JS
<[0x1eef_]>
I like JS (or well typescript) as a neccessary evil.
<adam12>
I just want it sprinkled around my app in the minimal amount of places.
<adam12>
The crazy exception reports from Sentry from a large JS frontend have been essentially unusable. I feel bad for anyone experiencing bugs in some of these React apps because they've frequently been unreproducible.
<adam12>
I get why React is super popular tho. It's very declarative. I've seen juniors pick it up in no time.
<adam12>
Much quicker than I ever saw a Rails junior onboard.
<[0x1eef_]>
Yeah - it's a different ecosystem. I think Rails is going in that direction as well. For some things, like chrome extensions, I've had better results jumping head-first into NPM, React, etc rather than solely vanilla. Either way JS is a central point.
rinx1 has joined #ruby
<adam12>
[0x1eef_]: Structure of twenty.rb looks good.
<[0x1eef_]>
Cheeers :) Were you able to try it ?
<[0x1eef_]>
I'm developing it on a tiny screen / resolution, it might look weird on anything bigger.
mmohammadi9812 has joined #ruby
<adam12>
Not yet. Just looking over code.
<adam12>
Surprised to see Nanoc. Haven't used it in 10 years
mmohammadi9812 has quit [Ping timeout: 264 seconds]
<[0x1eef_]>
I like it a lot but it has some drawbacks. For example, digest URLs are near impossible. It could be done in a really hacky way.
<[0x1eef_]>
There's been times I wish I could set long expiration dates on assets, but can't because there's no digest support.
mmohammadi9812 has joined #ruby
rinx1 has quit [Remote host closed the connection]
mmohammadi9812 has quit [Ping timeout: 276 seconds]
mmohammadi9812 has joined #ruby
rvalue has quit [Ping timeout: 272 seconds]
rvalue has joined #ruby
desnudopenguino has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
mmohammadi9812 has quit [Remote host closed the connection]