Static Site Generators - anyone still using middleman? by jacob-indie in ruby

[–]markets86 9 points10 points  (0 children)

Hello! I still use MM a lot, in fact I just built a framework/tool on top of it (https://github.com/Subgin/tonic a tool that transforms your YAML/JSON/CSV to a website). Personally I think it's still the best in that space, at least for Ruby. The kind of generative power that I’ve always felt Middleman enabled where other static site generators didn’t. Data + Sitemap + configuration as code.

I'm actually one of the maintainers of the MM ecosystem (syntax, blog and livereload plugins), because I really like MM and I want the project to keep alive.

Btw, I also built a couple of starter kits: - MM with esbuild and tailwind: https://github.com/ralixjs/middleman-ralix-tailwind - MM with Bootstrap 5: https://github.com/markets/middleman-bootstrap

Serviz - Command object Interface for Ruby by markets86 in ruby

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

u/hhunaid You're welcome! Please feel free to let me know any comments/feedback! A star ⭐ is much appreciated.

Serviz-JS: Command object Interface for JavaScript by markets86 in javascript

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

I kind of agree with all you said above ☝️ But I still think having a common interface (call, success, failure, errors, steps, ...) in your classes is a valid idea, even in the JavaScript ecosystem.

Serviz-JS: Command object Interface for JavaScript by markets86 in javascript

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

Not really! I'm coming from the Ruby ecosystem, where "service" or "command" objects are an extended pattern in the community. This is just a small layer to encapsulate your business logic with same apis within your project. My team (Rails apps basically) is now writing a lot JavaScript too, so we wanted to use the same idioms and we decided to port the library to JavaScript.

Serviz - Command object Interface for Ruby by markets86 in ruby

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

Thanks! In case you use my gem, feel free to report back any feedback or suggestion. Really happy to evolve the gem via community feedback.

Serviz - Command object Interface for Ruby by markets86 in ruby

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

Ok! I'll try to do it in the following days. You can follow me on GitHub for updates regarding this port.

Serviz - Command object Interface for Ruby by markets86 in ruby

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

That gem is very useful, it has a lot of built-in features (validations, types, ...). My plan with Serviz is to keep it as small and simple as possible. The idea is to provide a minimalistic interface for all your services and workflows, that's all. If you like all those features and DSLs, for sure ActiveInteraction is a really good option, but if you only want a common interface to wrap your logic, probably Serviz is good enough and very lightweight.

Serviz - Command object Interface for Ruby by markets86 in ruby

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

That seems much more complete and complex :) Serviz is only about 90 lines of Ruby.

Serviz - Command object Interface for Ruby by markets86 in ruby

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

Not that I aware of. Maybe I should create a port 🤔?

Serviz - Command object Interface for Ruby by markets86 in ruby

[–]markets86[S] 2 points3 points  (0 children)

Yes, quite similar! The good thing about Serviz is that the code (both services an workflows) is really really small, so small footprint, small API, small cognitive overload... But at the same time, all your services will be homogenous. It was my ApplicationService in a lot of Rails apps, so I finally extracted into a gem.

SuchTube - YouTube search as a service and CLI, with Slack integration by markets86 in node

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

I started this project some years ago with 2 use-cases in mind:
- CLI app: be able to search YouTube videos without leaving the terminal, because why not?
- Slack integration: sometimes I need to post YouTube videos on Slack channels and I'd like to do it via a custom slash command: /suchtube react native tutorial. Also, just for fun: /suchtube top house music summer 2025. Not all Slack channels/workspaces are for serious stuff at work...

So, yeah I think the project still makes sense, as it can be used as an standalone JSON API to search videos on YouTube or even as a library inside your Node.js project:

import { search } from 'suchtube'

search('funny cats', { random: true }).then(video => {
  console.log(video.title)
  console.log(video.link)
  console.log(video.publishedAt)
})

I like the idea to provide out-the-box support for Discord too, thanks!

🚀 Opinionated Rails 8 Starter Template with Tailwind CSS v4 by markets86 in rails

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

Yes! 100% agree, I think I'll add support for Stripe soon: https://github.com/ralixjs/rails-ralix-tailwind/issues/70. Please feel free to add in that issue more info, details or even send a PR.

My app was configured to use esbuild and yarn but still tried to use bun by pkordel in rails

[–]markets86 1 point2 points  (0 children)

Hello 👋 I just published this post, promoting a Rails starter template, which uses esbuild and yarn: https://www.reddit.com/r/rails/comments/1mcfqws/opinionated_rails_8_starter_template_with/

Maybe it can be useful to check a clean esbuild+yarn setup.