What's the best way to build large project using Roda ?

Hello Everybody:

Recently, I'm intresting on ruby framework -- Roda(http://roda.jeremyevans.net/)

Roda's tree-route makes good performance,  but the tree-route means nest code that makes code hard to read.

Is anybody can help me or give me some advice that  how Roda build for large project ?

What's the best way to build large project using Roda ?

Thank you.
Sorry for my English.

Hi Mark24, your message unfortunately got there twice. But it's all fine and on the topic and such questions are really welcome here :smiley:

First of all, you can create methods on your App class and use them inside the route block.

Secondly you can use a hash_routes plugin or multi_routes to split parts of your routes into different blocks (I view multi_routes more intuitive, but Jeremy recommends to use hash_routes now for performance purposes)

And last of all, classes in Ruby are open, so you can start a class in one file and require another to continue definition (just ensure you wrap your code in `class App; end` in subsequent files)

Please take a look at this example application you can take to start a new project: GitHub - jeremyevans/roda-sequel-stack: Application Skeleton For Roda/Sequel stack

While the freedom you gain from Roda allows you to write unclean code, it is a freedom you gain to write a simple application in a single file. And it's still possible to make an organized application.

···

On 3/11/22 03:08, Mark24 wrote:

Hello Everybody:

Recently, I'm intresting on ruby framework -- Roda(http://roda.jeremyevans.net/)

Roda's tree-route makes good performance, but the tree-route means nest code that makes code hard to read.

Is anybody can help me or give me some advice that how Roda build for large project ?

What's the best way to build large project using Roda ?

Thank you.
Sorry for my English.

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Thanks a lot :smiley:

I will try it.

···

2022年3月11日 下午4:26,hmdne <hmdne@airmail.cc> 写道:

Hi Mark24, your message unfortunately got there twice. But it's all fine and on the topic and such questions are really welcome here :smiley:

First of all, you can create methods on your App class and use them inside the route block.

Secondly you can use a hash_routes plugin or multi_routes to split parts of your routes into different blocks (I view multi_routes more intuitive, but Jeremy recommends to use hash_routes now for performance purposes)

And last of all, classes in Ruby are open, so you can start a class in one file and require another to continue definition (just ensure you wrap your code in `class App; end` in subsequent files)

Please take a look at this example application you can take to start a new project: GitHub - jeremyevans/roda-sequel-stack: Application Skeleton For Roda/Sequel stack

While the freedom you gain from Roda allows you to write unclean code, it is a freedom you gain to write a simple application in a single file. And it's still possible to make an organized application.

On 3/11/22 03:08, Mark24 wrote:

Hello Everybody:

Recently, I'm intresting on ruby framework -- Roda(http://roda.jeremyevans.net/)

Roda's tree-route makes good performance, but the tree-route means nest code that makes code hard to read.

Is anybody can help me or give me some advice that how Roda build for large project ?

What's the best way to build large project using Roda ?

Thank you.
Sorry for my English.

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Roda's tree-route makes good performance, but the tree-route means nest code that makes code hard to read.

Is anybody can help me or give me some advice that how Roda build for large project ?

What's the best way to build large project using Roda ?

Don't use Roda!

If you are building a new app that does not even have thousands of
users, Roda's performance claims won't make any difference. Just use
Rails instead! It enables writing code that is a lot more
maintainable, understandable, and productive, thus making it easier to
optimize database performance in the future, which is often the true
bottleneck in any web app (not the programming language or framework).

If you think your app will get millions of users, then adding more
servers for a Rails web app is cheaper than paying for developer time
to maintain Roda's cumbersome unstructured code. Also, you can always
cross that bridge when you get to it! It's considered a bad software
engineering practice to pre-optimize for the future since it weighs
you down in the present and prevents you from reaching that bright
future you pre-optimized for. There are countless failed web projects
out there due to that reason.

A lot of unskilled programmers fall for the trap of premature
optimization because many of them are not university educated in
computer-related degrees, and thus do not know how to walk before they
run, so they stumble.

Learn to be a good software engineer instead and think rationally
before you act by analyzing pros, cons, and trade-offs to avoid
falling into traps like premature optimization or blindly chasing
popular buzzwords, hypes, and bad practices.

Cheers!

···

On Fri, Mar 11, 2022 at 9:08 AM mark24 <mark.zhangyoung@qq.com> wrote:

Thanks a lot :smiley:

I will try it.

> 2022年3月11日 下午4:26,hmdne <hmdne@airmail.cc> 写道:
>
> Hi Mark24, your message unfortunately got there twice. But it's all fine and on the topic and such questions are really welcome here :smiley:
>
> First of all, you can create methods on your App class and use them inside the route block.
>
> Secondly you can use a hash_routes plugin or multi_routes to split parts of your routes into different blocks (I view multi_routes more intuitive, but Jeremy recommends to use hash_routes now for performance purposes)
>
> And last of all, classes in Ruby are open, so you can start a class in one file and require another to continue definition (just ensure you wrap your code in `class App; end` in subsequent files)
>
> Please take a look at this example application you can take to start a new project: GitHub - jeremyevans/roda-sequel-stack: Application Skeleton For Roda/Sequel stack
>
> While the freedom you gain from Roda allows you to write unclean code, it is a freedom you gain to write a simple application in a single file. And it's still possible to make an organized application.
>
> On 3/11/22 03:08, Mark24 wrote:
>> Hello Everybody:
>>
>> Recently, I'm intresting on ruby framework -- Roda(http://roda.jeremyevans.net/)
>>
>> Roda's tree-route makes good performance, but the tree-route means nest code that makes code hard to read.
>>
>> Is anybody can help me or give me some advice that how Roda build for large project ?
>>
>> What's the best way to build large project using Roda ?
>>
>> Thank you.
>> Sorry for my English.
>>
>>
>> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
>> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;
>
> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

--
Andy Maleh

LinkedIn: Andy Maleh | LinkedIn
Blog: http://andymaleh.blogspot.com
GitHub: AndyObtiva (Andy Maleh) · GitHub

First, thank you&nbsp; for your answer

Ruby is my side project language and I'm still learning and studying it.&nbsp; :D&nbsp;&nbsp;

Rails is great and I would use it to build projects.

Roda is a learning project for me at present. I would like to dig into it.&nbsp; Roda is micro framework, it's much simpler than Rails. &nbsp; :smiley:

Thank you very much for your answer. You must be a very experienced developer, I can feel it. :D&nbsp;

Thank you again!

------------------&nbsp;原始邮件&nbsp;------------------

···

发件人: "Ruby users" <andy.am@gmail.com&gt;;
发送时间:&nbsp;2022年3月11日(星期五) 晚上10:24
收件人:&nbsp;"Ruby users"<ruby-talk@ruby-lang.org&gt;;

主题:&nbsp;Re: What's the best way to build large project using Roda ?

&gt; Roda's tree-route makes good performance,&nbsp; but the tree-route means nest code that makes code hard to read.
&gt;
&gt; Is anybody can help me or give me some advice that&nbsp; how Roda build for large project ?
&gt;
&gt; What's the best way to build large project using Roda ?

Don't use Roda!

If you are building a new app that does not even have thousands of
users, Roda's performance claims won't make any difference. Just use
Rails instead! It enables writing code that is a lot more
maintainable, understandable, and productive, thus making it easier to
optimize database performance in the future, which is often the true
bottleneck in any web app (not the programming language or framework).

If you think your app will get millions of users, then adding more
servers for a Rails web app is cheaper than paying for developer time
to maintain Roda's cumbersome unstructured code. Also, you can always
cross that bridge when you get to it! It's considered a bad software
engineering practice to pre-optimize for the future since it weighs
you down in the present and prevents you from reaching that bright
future you pre-optimized for. There are countless failed web projects
out there due to that reason.

A lot of unskilled programmers fall for the trap of premature
optimization because many of them are not university educated in
computer-related degrees, and thus do not know how to walk before they
run, so they stumble.

Learn to be a good software engineer instead and think rationally
before you act by analyzing pros, cons, and trade-offs to avoid
falling into traps like premature optimization or blindly chasing
popular buzzwords, hypes, and bad practices.

Cheers!

On Fri, Mar 11, 2022 at 9:08 AM mark24 <mark.zhangyoung@qq.com&gt; wrote:
&gt;
&gt; Thanks a lot&nbsp; :smiley:
&gt;
&gt; I will try it.
&gt;
&gt;
&gt; &gt; 2022年3月11日 下午4:26,hmdne <hmdne@airmail.cc&gt; 写道:
&gt; &gt;
&gt; &gt; Hi Mark24, your message unfortunately got there twice. But it's all fine and on the topic and such questions are really welcome here :smiley:
&gt; &gt;
&gt; &gt; First of all, you can create methods on your App class and use them inside the route block.
&gt; &gt;
&gt; &gt; Secondly you can use a hash_routes plugin or multi_routes to split parts of your routes into different blocks (I view multi_routes more intuitive, but Jeremy recommends to use hash_routes now for performance purposes)
&gt; &gt;
&gt; &gt; And last of all, classes in Ruby are open, so you can start a class in one file and require another to continue definition (just ensure you wrap your code in `class App; end` in subsequent files)
&gt; &gt;
&gt; &gt; Please take a look at this example application you can take to start a new project: GitHub - jeremyevans/roda-sequel-stack: Application Skeleton For Roda/Sequel stack
&gt; &gt;
&gt; &gt; While the freedom you gain from Roda allows you to write unclean code, it is a freedom you gain to write a simple application in a single file. And it's still possible to make an organized application.
&gt; &gt;
&gt; &gt; On 3/11/22 03:08, Mark24 wrote:
&gt; &gt;&gt; Hello Everybody:
&gt; &gt;&gt;
&gt; &gt;&gt; Recently, I'm intresting on ruby framework -- Roda(http://roda.jeremyevans.net/)
&gt; &gt;&gt;
&gt; &gt;&gt; Roda's tree-route makes good performance,&nbsp; but the tree-route means nest code that makes code hard to read.
&gt; &gt;&gt;
&gt; &gt;&gt; Is anybody can help me or give me some advice that&nbsp; how Roda build for large project ?
&gt; &gt;&gt;
&gt; &gt;&gt; What's the best way to build large project using Roda ?
&gt; &gt;&gt;
&gt; &gt;&gt; Thank you.
&gt; &gt;&gt; Sorry for my English.
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt; Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
&gt; &gt;&gt; <ruby-talk list: member options login page>
&gt; &gt;
&gt; &gt; Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
&gt; &gt; <ruby-talk list: member options login page>
&gt;
&gt;
&gt; Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
&gt; <ruby-talk list: member options login page>

--
Andy Maleh

LinkedIn: https://www.linkedin.com/in/andymaleh
Blog: http://andymaleh.blogspot.com
GitHub: AndyObtiva (Andy Maleh) · GitHub

Roda is micro framework,

"micro framework" is yet another buzzword that tricks gullible people
into thinking it's "cool" and worth learning by following emotions
blindly instead of analyzing rationally like proper software
engineers.

Rails relies on convention over configuration, meaning no matter how
sophisticated Rails features become, there is always a very simple
convention that if you follow, you can build a web application very
productively (think of it like Rails offering you real-world train
rails that ensure your speed of productivity on the road while all the
sophisticated train machinery is hidden inside the engine
compartments, so you never have to worry about it). As such, thinking
Roda is simpler is a misnomer. It is in fact much more complicated to
build good apps with since it requires developers to "configure" a lot
of settings before they can be productive.

Thank you very much for your answer. You must be a very experienced developer, I can feel it. :smiley:

Please do not insult me again by saying you "feel" my experience! If
you really believed that, you would have given me a real thank you by
implementing my advice instead of disregarding it. Actions always
speak louder than words! Telling me a few compliments in words instead
of action means absolutely nothing. There are people who talk the
talk, and then there are people who also walk the walk. Only the
latter bring good into this world. It is better to stay silent until
you have taken action than to say empty words that bring no value
whatsoever.

···

On Fri, Mar 11, 2022 at 9:52 AM Mark24 <mark.zhangyoung@qq.com> wrote:

First, thank you for your answer

Ruby is my side project language and I'm still learning and studying it. :smiley:

Rails is great and I would use it to build projects.

Roda is a learning project for me at present. I would like to dig into it. Roda is micro framework, it's much simpler than Rails. :smiley:

Thank you very much for your answer. You must be a very experienced developer, I can feel it. :smiley:

Thank you again!

------------------ 原始邮件 ------------------
发件人: "Ruby users" <andy.am@gmail.com>;
发送时间: 2022年3月11日(星期五) 晚上10:24
收件人: "Ruby users"<ruby-talk@ruby-lang.org>;
主题: Re: What's the best way to build large project using Roda ?

> Roda's tree-route makes good performance, but the tree-route means nest code that makes code hard to read.
>
> Is anybody can help me or give me some advice that how Roda build for large project ?
>
> What's the best way to build large project using Roda ?

Don't use Roda!

If you are building a new app that does not even have thousands of
users, Roda's performance claims won't make any difference. Just use
Rails instead! It enables writing code that is a lot more
maintainable, understandable, and productive, thus making it easier to
optimize database performance in the future, which is often the true
bottleneck in any web app (not the programming language or framework).

If you think your app will get millions of users, then adding more
servers for a Rails web app is cheaper than paying for developer time
to maintain Roda's cumbersome unstructured code. Also, you can always
cross that bridge when you get to it! It's considered a bad software
engineering practice to pre-optimize for the future since it weighs
you down in the present and prevents you from reaching that bright
future you pre-optimized for. There are countless failed web projects
out there due to that reason.

A lot of unskilled programmers fall for the trap of premature
optimization because many of them are not university educated in
computer-related degrees, and thus do not know how to walk before they
run, so they stumble.

Learn to be a good software engineer instead and think rationally
before you act by analyzing pros, cons, and trade-offs to avoid
falling into traps like premature optimization or blindly chasing
popular buzzwords, hypes, and bad practices.

Cheers!

On Fri, Mar 11, 2022 at 9:08 AM mark24 <mark.zhangyoung@qq.com> wrote:
>
> Thanks a lot :smiley:
>
> I will try it.
>
>
> > 2022年3月11日 下午4:26,hmdne <hmdne@airmail.cc> 写道:
> >
> > Hi Mark24, your message unfortunately got there twice. But it's all fine and on the topic and such questions are really welcome here :smiley:
> >
> > First of all, you can create methods on your App class and use them inside the route block.
> >
> > Secondly you can use a hash_routes plugin or multi_routes to split parts of your routes into different blocks (I view multi_routes more intuitive, but Jeremy recommends to use hash_routes now for performance purposes)
> >
> > And last of all, classes in Ruby are open, so you can start a class in one file and require another to continue definition (just ensure you wrap your code in `class App; end` in subsequent files)
> >
> > Please take a look at this example application you can take to start a new project: GitHub - jeremyevans/roda-sequel-stack: Application Skeleton For Roda/Sequel stack
> >
> > While the freedom you gain from Roda allows you to write unclean code, it is a freedom you gain to write a simple application in a single file. And it's still possible to make an organized application.
> >
> > On 3/11/22 03:08, Mark24 wrote:
> >> Hello Everybody:
> >>
> >> Recently, I'm intresting on ruby framework -- Roda(http://roda.jeremyevans.net/)
> >>
> >> Roda's tree-route makes good performance, but the tree-route means nest code that makes code hard to read.
> >>
> >> Is anybody can help me or give me some advice that how Roda build for large project ?
> >>
> >> What's the best way to build large project using Roda ?
> >>
> >> Thank you.
> >> Sorry for my English.
> >>
> >>
> >> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
> >> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;
> >
> > Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
> > <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;
>
>
> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

--
Andy Maleh

LinkedIn: Andy Maleh | LinkedIn
Blog: http://andymaleh.blogspot.com
GitHub: AndyObtiva (Andy Maleh) · GitHub

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

--
Andy Maleh

LinkedIn: Andy Maleh | LinkedIn
Blog: http://andymaleh.blogspot.com
GitHub: AndyObtiva (Andy Maleh) · GitHub

hmmm... Roda is pretty light and quite intuitive to work with in the Ruby
way.
Of course, one needs to be familiar with html and databases, but that is
what
web developers are supposed to know.

There is a cook book for Roda in the home page of the project, which
takes you some way to your goal.

saji

···

On Sat, Mar 12, 2022 at 1:30 AM Andy Maleh <andy.am@gmail.com> wrote:

> Roda is micro framework,

"micro framework" is yet another buzzword that tricks gullible people
into thinking it's "cool" and worth learning by following emotions
blindly instead of analyzing rationally like proper software
engineers.

Rails relies on convention over configuration, meaning no matter how
sophisticated Rails features become, there is always a very simple
convention that if you follow, you can build a web application very
productively (think of it like Rails offering you real-world train
rails that ensure your speed of productivity on the road while all the
sophisticated train machinery is hidden inside the engine
compartments, so you never have to worry about it). As such, thinking
Roda is simpler is a misnomer. It is in fact much more complicated to
build good apps with since it requires developers to "configure" a lot
of settings before they can be productive.

> Thank you very much for your answer. You must be a very experienced
developer, I can feel it. :smiley:

Please do not insult me again by saying you "feel" my experience! If
you really believed that, you would have given me a real thank you by
implementing my advice instead of disregarding it. Actions always
speak louder than words! Telling me a few compliments in words instead
of action means absolutely nothing. There are people who talk the
talk, and then there are people who also walk the walk. Only the
latter bring good into this world. It is better to stay silent until
you have taken action than to say empty words that bring no value
whatsoever.

On Fri, Mar 11, 2022 at 9:52 AM Mark24 <mark.zhangyoung@qq.com> wrote:
>
> First, thank you for your answer
>
>
> Ruby is my side project language and I'm still learning and studying
it. :smiley:
>
> Rails is great and I would use it to build projects.
>
> Roda is a learning project for me at present. I would like to dig into
it. Roda is micro framework, it's much simpler than Rails. :smiley:
>
> Thank you very much for your answer. You must be a very experienced
developer, I can feel it. :smiley:
>
> Thank you again!
>
>
>
> ------------------ 原始邮件 ------------------
> 发件人: "Ruby users" <andy.am@gmail.com>;
> 发送时间: 2022年3月11日(星期五) 晚上10:24
> 收件人: "Ruby users"<ruby-talk@ruby-lang.org>;
> 主题: Re: What's the best way to build large project using Roda ?
>
> > Roda's tree-route makes good performance, but the tree-route means
nest code that makes code hard to read.
> >
> > Is anybody can help me or give me some advice that how Roda build for
large project ?
> >
> > What's the best way to build large project using Roda ?
>
> Don't use Roda!
>
> If you are building a new app that does not even have thousands of
> users, Roda's performance claims won't make any difference. Just use
> Rails instead! It enables writing code that is a lot more
> maintainable, understandable, and productive, thus making it easier to
> optimize database performance in the future, which is often the true
> bottleneck in any web app (not the programming language or framework).
>
> If you think your app will get millions of users, then adding more
> servers for a Rails web app is cheaper than paying for developer time
> to maintain Roda's cumbersome unstructured code. Also, you can always
> cross that bridge when you get to it! It's considered a bad software
> engineering practice to pre-optimize for the future since it weighs
> you down in the present and prevents you from reaching that bright
> future you pre-optimized for. There are countless failed web projects
> out there due to that reason.
>
> A lot of unskilled programmers fall for the trap of premature
> optimization because many of them are not university educated in
> computer-related degrees, and thus do not know how to walk before they
> run, so they stumble.
>
> Learn to be a good software engineer instead and think rationally
> before you act by analyzing pros, cons, and trade-offs to avoid
> falling into traps like premature optimization or blindly chasing
> popular buzzwords, hypes, and bad practices.
>
> Cheers!
>
> On Fri, Mar 11, 2022 at 9:08 AM mark24 <mark.zhangyoung@qq.com> wrote:
> >
> > Thanks a lot :smiley:
> >
> > I will try it.
> >
> >
> > > 2022年3月11日 下午4:26,hmdne <hmdne@airmail.cc> 写道:
> > >
> > > Hi Mark24, your message unfortunately got there twice. But it's all
fine and on the topic and such questions are really welcome here :smiley:
> > >
> > > First of all, you can create methods on your App class and use them
inside the route block.
> > >
> > > Secondly you can use a hash_routes plugin or multi_routes to split
parts of your routes into different blocks (I view multi_routes more
intuitive, but Jeremy recommends to use hash_routes now for performance
purposes)
> > >
> > > And last of all, classes in Ruby are open, so you can start a class
in one file and require another to continue definition (just ensure you
wrap your code in `class App; end` in subsequent files)
> > >
> > > Please take a look at this example application you can take to start
a new project: GitHub - jeremyevans/roda-sequel-stack: Application Skeleton For Roda/Sequel stack
> > >
> > > While the freedom you gain from Roda allows you to write unclean
code, it is a freedom you gain to write a simple application in a single
file. And it's still possible to make an organized application.
> > >
> > > On 3/11/22 03:08, Mark24 wrote:
> > >> Hello Everybody:
> > >>
> > >> Recently, I'm intresting on ruby framework -- Roda(
http://roda.jeremyevans.net/)
> > >>
> > >> Roda's tree-route makes good performance, but the tree-route means
nest code that makes code hard to read.
> > >>
> > >> Is anybody can help me or give me some advice that how Roda build
for large project ?
> > >>
> > >> What's the best way to build large project using Roda ?
> > >>
> > >> Thank you.
> > >> Sorry for my English.
> > >>
> > >>
> > >> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
> > >> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;
> > >
> > > Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
> > > <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;
> >
> >
> > Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
> > <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;
>
>
>
> --
> Andy Maleh
>
> LinkedIn: Andy Maleh | LinkedIn
> Blog: http://andymaleh.blogspot.com
> GitHub: AndyObtiva (Andy Maleh) · GitHub
>
> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;
>
> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

--
Andy Maleh

LinkedIn: Andy Maleh | LinkedIn
Blog: http://andymaleh.blogspot.com
GitHub: AndyObtiva (Andy Maleh) · GitHub

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

--

I must disagree here. If you know the programming patterns, you will use them correctly in any environment. The same as you can write unstructured code with Rails. And yes, of course you will have to write boilerplate to those patterns yourself, which will cost you time, but will give you control and knowledge about how your application actually works and how to change its flow on demand.

But I guess that's just another way of doing things. Rails certainly has strengths with its familiarity - know one app, know them all. If I were planning to write hundreds of advanced web apps, I would probably learn Rails. But myself, I chose to write and maintain just a couple of advanced web apps and do them best, so I do Roda.

Also, having used both ActiveRecord and Sequel, I must say the second has much more features and allows you to write complex apps that don't have a single SQL line. Roda was mostly written to leverage the strengths of SQL algebra facilities provided by Sequel.

···

On 3/11/22 15:24, Andy Maleh wrote:

Don't use Roda!

If you are building a new app that does not even have thousands of
users, Roda's performance claims won't make any difference. Just use
Rails instead! It enables writing code that is a lot more
maintainable, understandable, and productive, thus making it easier to
optimize database performance in the future, which is often the true
bottleneck in any web app (not the programming language or framework).

If you think your app will get millions of users, then adding more
servers for a Rails web app is cheaper than paying for developer time
to maintain Roda's cumbersome unstructured code. Also, you can always
cross that bridge when you get to it! It's considered a bad software
engineering practice to pre-optimize for the future since it weighs
you down in the present and prevents you from reaching that bright
future you pre-optimized for. There are countless failed web projects
out there due to that reason.

A lot of unskilled programmers fall for the trap of premature
optimization because many of them are not university educated in
computer-related degrees, and thus do not know how to walk before they
run, so they stumble.

Learn to be a good software engineer instead and think rationally
before you act by analyzing pros, cons, and trade-offs to avoid
falling into traps like premature optimization or blindly chasing
popular buzzwords, hypes, and bad practices.

Cheers!

Use roda.

It allows you to go small (single file app), go microservice (json API), go
monolith (via plugins + forme + sequel from the same author). It integrates
well with most of the ecosystem that is not rails-only. It scales well, and
is one of the most productive frameworks around.

Read "mastering Roda": Mastering Roda

Saji Hameed <saji@u-aizu.ac.jp> escreveu no dia sexta, 11/03/2022 à(s)
16:49:

···

hmmm... Roda is pretty light and quite intuitive to work with in the Ruby
way.
Of course, one needs to be familiar with html and databases, but that is
what
web developers are supposed to know.

There is a cook book for Roda in the home page of the project, which
takes you some way to your goal.

saji

On Sat, Mar 12, 2022 at 1:30 AM Andy Maleh <andy.am@gmail.com> wrote:

> Roda is micro framework,

"micro framework" is yet another buzzword that tricks gullible people
into thinking it's "cool" and worth learning by following emotions
blindly instead of analyzing rationally like proper software
engineers.

Rails relies on convention over configuration, meaning no matter how
sophisticated Rails features become, there is always a very simple
convention that if you follow, you can build a web application very
productively (think of it like Rails offering you real-world train
rails that ensure your speed of productivity on the road while all the
sophisticated train machinery is hidden inside the engine
compartments, so you never have to worry about it). As such, thinking
Roda is simpler is a misnomer. It is in fact much more complicated to
build good apps with since it requires developers to "configure" a lot
of settings before they can be productive.

> Thank you very much for your answer. You must be a very experienced
developer, I can feel it. :smiley:

Please do not insult me again by saying you "feel" my experience! If
you really believed that, you would have given me a real thank you by
implementing my advice instead of disregarding it. Actions always
speak louder than words! Telling me a few compliments in words instead
of action means absolutely nothing. There are people who talk the
talk, and then there are people who also walk the walk. Only the
latter bring good into this world. It is better to stay silent until
you have taken action than to say empty words that bring no value
whatsoever.

On Fri, Mar 11, 2022 at 9:52 AM Mark24 <mark.zhangyoung@qq.com> wrote:
>
> First, thank you for your answer
>
>
> Ruby is my side project language and I'm still learning and studying
it. :smiley:
>
> Rails is great and I would use it to build projects.
>
> Roda is a learning project for me at present. I would like to dig into
it. Roda is micro framework, it's much simpler than Rails. :smiley:
>
> Thank you very much for your answer. You must be a very experienced
developer, I can feel it. :smiley:
>
> Thank you again!
>
>
>
> ------------------ 原始邮件 ------------------
> 发件人: "Ruby users" <andy.am@gmail.com>;
> 发送时间: 2022年3月11日(星期五) 晚上10:24
> 收件人: "Ruby users"<ruby-talk@ruby-lang.org>;
> 主题: Re: What's the best way to build large project using Roda ?
>
> > Roda's tree-route makes good performance, but the tree-route means
nest code that makes code hard to read.
> >
> > Is anybody can help me or give me some advice that how Roda build
for large project ?
> >
> > What's the best way to build large project using Roda ?
>
> Don't use Roda!
>
> If you are building a new app that does not even have thousands of
> users, Roda's performance claims won't make any difference. Just use
> Rails instead! It enables writing code that is a lot more
> maintainable, understandable, and productive, thus making it easier to
> optimize database performance in the future, which is often the true
> bottleneck in any web app (not the programming language or framework).
>
> If you think your app will get millions of users, then adding more
> servers for a Rails web app is cheaper than paying for developer time
> to maintain Roda's cumbersome unstructured code. Also, you can always
> cross that bridge when you get to it! It's considered a bad software
> engineering practice to pre-optimize for the future since it weighs
> you down in the present and prevents you from reaching that bright
> future you pre-optimized for. There are countless failed web projects
> out there due to that reason.
>
> A lot of unskilled programmers fall for the trap of premature
> optimization because many of them are not university educated in
> computer-related degrees, and thus do not know how to walk before they
> run, so they stumble.
>
> Learn to be a good software engineer instead and think rationally
> before you act by analyzing pros, cons, and trade-offs to avoid
> falling into traps like premature optimization or blindly chasing
> popular buzzwords, hypes, and bad practices.
>
> Cheers!
>
> On Fri, Mar 11, 2022 at 9:08 AM mark24 <mark.zhangyoung@qq.com> wrote:
> >
> > Thanks a lot :smiley:
> >
> > I will try it.
> >
> >
> > > 2022年3月11日 下午4:26,hmdne <hmdne@airmail.cc> 写道:
> > >
> > > Hi Mark24, your message unfortunately got there twice. But it's all
fine and on the topic and such questions are really welcome here :smiley:
> > >
> > > First of all, you can create methods on your App class and use them
inside the route block.
> > >
> > > Secondly you can use a hash_routes plugin or multi_routes to split
parts of your routes into different blocks (I view multi_routes more
intuitive, but Jeremy recommends to use hash_routes now for performance
purposes)
> > >
> > > And last of all, classes in Ruby are open, so you can start a class
in one file and require another to continue definition (just ensure you
wrap your code in `class App; end` in subsequent files)
> > >
> > > Please take a look at this example application you can take to
start a new project: GitHub - jeremyevans/roda-sequel-stack: Application Skeleton For Roda/Sequel stack
> > >
> > > While the freedom you gain from Roda allows you to write unclean
code, it is a freedom you gain to write a simple application in a single
file. And it's still possible to make an organized application.
> > >
> > > On 3/11/22 03:08, Mark24 wrote:
> > >> Hello Everybody:
> > >>
> > >> Recently, I'm intresting on ruby framework -- Roda(
http://roda.jeremyevans.net/)
> > >>
> > >> Roda's tree-route makes good performance, but the tree-route
means nest code that makes code hard to read.
> > >>
> > >> Is anybody can help me or give me some advice that how Roda build
for large project ?
> > >>
> > >> What's the best way to build large project using Roda ?
> > >>
> > >> Thank you.
> > >> Sorry for my English.
> > >>
> > >>
> > >> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
> > >> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;
> > >
> > > Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
> > > <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;
> >
> >
> > Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
> > <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;
>
>
>
> --
> Andy Maleh
>
> LinkedIn: Andy Maleh | LinkedIn
> Blog: http://andymaleh.blogspot.com
> GitHub: AndyObtiva (Andy Maleh) · GitHub
>
> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;
>
> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

--
Andy Maleh

LinkedIn: Andy Maleh | LinkedIn
Blog: http://andymaleh.blogspot.com
GitHub: AndyObtiva (Andy Maleh) · GitHub

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

--

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Hi Mark24, I am in the Rails team.

You said this is a side project for the sake of learning. When you want to
explore, learn, and play around, anything goes. You could do Perl CGI for
that matter.

Please, pick what interested you, by all means, and see where it takes you
:).