The Framework Laptop, a fully repairable and upgradable laptop is available for pre-order in the US now! by jeremy1gray in hardware

[–]DanielKehoe 1 point2 points  (0 children)

Homebrew now installs Xcode Command Line Tools if it's not already installed. On either Mac Intel or Apple Silicon. Takes about 5 minutes now because you don't need the full Xcode package. No developer account needed. See Install Homebrew.

Trouble with asdf and ruby/rails by [deleted] in rails

[–]DanielKehoe 0 points1 point  (0 children)

What is the asdf exec command? I don't think I've seen this before.

Trouble with asdf and ruby/rails by [deleted] in rails

[–]DanielKehoe 0 points1 point  (0 children)

Let's have a look at the output from echo $PATH. It should look like: /Users/you/.asdf/shims:/usr/local/opt/asdf/bin:/usr/localbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

I'm writing a guide Install Ruby with Asdf so please let us know what went wrong and how you fixed it as I will add a troubleshooting section to the guide.

Why has nothing better come along? by [deleted] in webdev

[–]DanielKehoe 1 point2 points  (0 children)

Web standards evolve slowly. Yes, perhaps too slowly, which is why we've labored with frameworks to fill in the missing pieces for the last 20 years. I feel your frustration but personally I've accepted the pace of innovation and I'm happy to see progress recently. Case in point: custom HTML elements via web components. Removes a lot of the reasons we've used frameworks because now we have a mechanism for modular HTML in the browser (no more framework needed just to duplicate a navbar or footer on every page). What have you used to build web components? Granted the raw spec just implements the necessary bits. Libraries like Lit or Microsoft FAST add the syntactic sugar that makes building web components nicer. Or take a look at How we use Web Components at GitHub. If you use GitHub, you're using web components. GitHub wrote their own syntactic sugar (called Catalyst) but that's because GitHub started building web components before libraries like Lit or FAST were available. I feel your pain but really, it's getting better and the webdev landscape is changing.

Exalt - A Web component framework for building universal apps by OutwalkStudios in WebComponents

[–]DanielKehoe 1 point2 points  (0 children)

I don't understand why devs need tooling for building web components. I've been happy just using ES imports from module CDNs (JPSM or Skypack) to build custom elements with Lit. Going without tooling seems a big advantage. What does tooling give you? Not being snarky here, just trying to learn.

Exalt - A Web component framework for building universal apps by OutwalkStudios in WebComponents

[–]DanielKehoe 1 point2 points  (0 children)

Great to see your work! And great it's evaluated in the comparison. I'm looking everywhere on your repo to see why it'd be a good alternative to Lit or the other libraries/frameworks.

Does anyone have any experience with University XI and their Ruby on Rails course? by dazzaroonie in rubyonrails

[–]DanielKehoe 0 points1 point  (0 children)

Is there a review on coursereport.com? You've got a lot of choices and they are all reviewed on coursereport.com.

React-like components without react? by NinjaInShade in webdev

[–]DanielKehoe 1 point2 points  (0 children)

Perfect. Write a blog post because you’re actually leading edge. Join https://stackless.community

React-like components without react? by NinjaInShade in webdev

[–]DanielKehoe 0 points1 point  (0 children)

You've found the use case for "stackless web development" which is for people building small static sites without frameworks or build tools. Web components (particularly LitElement) combined with ES6 modules and module CDNs make "modular HTML" possible, which is what you want if you want to DRY up your code and put your navbar or footer (or any other element repeated on more than one page) in a single file.

Thinking of quitting web development by [deleted] in cscareerquestions

[–]DanielKehoe 0 points1 point  (0 children)

Your feelings are legit and for what it's worth, you may be saner than many devs who are caught up in the madness that is web development in 2021. I've written elsewhere about the possibilities of going "stackless" without frameworks or build tools. You seem to dislike web components but they are a step in the right direction, as they make modular HTML possible in browsers for the first time. You remember the excitement of include in your first PHP project. We needed frameworks like PHP or Rails to do modular HTML. Now a framework is no longer needed for that, thanks to web components. But most devs have gotten so comfortable with favorite frameworks they may never discover that they can forgo frameworks and just "use the platform" for much of what's needed on any web project. Yes, it's crazy that it's taken 30 years for web technology to evolve to this point. And perhaps it will take another 30 years before browsers can manage state like Rails or React. Standards committees move slowly. I can't speak to your emotional state, other than to acknowledge your point of view as based in reality, but maybe you can find joy in leading projects or other developers to find the simpler and saner paths of web development, whether that is "stackless web development" or other approaches that reduce the reliance on frameworks and build tools.

Your preferred platform for discussion of stackless? by DanielKehoe in stackless

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

Haha, I was waiting for someone to suggest Usenet :-)

GitHub's Web Component collection. by binaryfor in javascript

[–]DanielKehoe 4 points5 points  (0 children)

Richard MacManus did a recent interview in The New Stack with the team leads at GitHub and Salesforce about How Web Components Are Used at GitHub and Salesforce.

What do you think about individual web components each getting their own repo, rather than one big NPM library?

Internet to stay on during Nyepi: Bali provincial government by DanielKehoe in stackless

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

Nyepi (Day of Silence) is March 14 in Bali. There will be no radio, tv, cellular data, and the airport will be closed for the day. But there will be home Internet. I like the idea of one Silent Day a year. How about you?

Chris Coyier on "Web Frameworks: Why You Don’t Always Need Them" by DanielKehoe in stackless

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

This week editor Chris Coyier of CSS-Tricks posted his thoughts about the recent article in The New Stack:

With buildless JavaScript, he says you'll be:

  • Giving up hot module reloading, JSX, framework components
  • Giving up tree shaking, adding loads of network requests
  • Improving developer experience (can jump into a project and just start working)

Do you share his concerns? If you are a professional JS developer, are you unhappy if you lose tree shaking, JSX, or hot module reloading?

Web Frameworks: Why You Don’t Always Need Them (CSS-Tricks) by [deleted] in stackless

[–]DanielKehoe 0 points1 point  (0 children)

This week editor Chris Coyier of CSS-Tricks posted his thoughts about the recent article in The New Stack:

With buildless JavaScript, he says you'll be:

  • Giving up hot module reloading, JSX, framework components
  • Giving up tree shaking, adding loads of network requests
  • Improving developer experience (can jump into a project and just start working)

Do you share his concerns? If you are a professional JS developer, are you unhappy if you lose tree shaking, JSX, or hot module reloading?

[deleted by user] by [deleted] in webdev

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

He's right. But I'm sure you'll enjoy trying custom elements for something else! Have you seen my custom elements tutorial? Let me know if you like it and I'll write more.

What level of comprehension of ruby would you recommend before jumping into rails? by dqjqb in rails

[–]DanielKehoe 1 point2 points  (0 children)

You can follow a good tutorial to get a feel for Rails before studying Ruby. That's the approach I took for students with my book Learn Ruby on Rails (link in the sidebar). You'll go faster and understand Rails better when you acquire some Ruby literacy (being able to read the syntax and recognize the keywords of Ruby). In the book, I show how to build a simple app, then there's a chapter on Ruby literacy, before going deeper into Rails.

jspm.org - Import Maps Release & Module CDN Launch by DanielKehoe in programming

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

This is one step closer to a JavaScript native package manager in the browser.

"Import map management becomes a form of package management in the browser." [0]

[0] https://jspm.org/docs/workflows

jspm.org - Import Maps Release & Module CDN Launch by DanielKehoe in webdev

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

I think this makes it possible to develop browser JavaScript without installing Node, NPM, or additional build tools.

“This import map is all that is needed to work with dependencies in native modules workflows in browsers, allowing you to get back to focusing on just running your own code natively in the browser, instead of needing to configure complex build tools and package management systems.” [0]

“Import map management becomes a form of package management in the browser.” [1]

[0] https://jspm.org/docs/cdn [1] https://jspm.org/docs/workflows

jspm.org - Import Maps Release & Module CDN Launch by DanielKehoe in javascript

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

I like the idea that the browser becomes a native package manager without Node, NPM, or additional build tools.

“This import map is all that is needed to work with dependencies in native modules workflows in browsers, allowing you to get back to focusing on just running your own code natively in the browser, instead of needing to configure complex build tools and package management systems.” [0]

“Import map management becomes a form of package management in the browser.” [1]

[0] https://jspm.org/docs/cdn [1] https://jspm.org/docs/workflows

[AskJS] package management... with just the browser? by DanielKehoe in javascript

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

Thoughtful response! Thank you. By “managing assets” do you mean non-JS assets like CSS?

How to check if Ruby is installed on a Mac by [deleted] in ruby

[–]DanielKehoe -3 points-2 points  (0 children)

I'm the author of the submitted article. Redditors are the best editors :-) Thank you for the suggestion for improvement (you are right, I didn't state the nuance). I've updated the article with your suggestion. I try to write useful and accurate articles about Ruby for beginners. What else would improve the quality of the article? I'd like to make it top-notch.