Building a Web Framework [closed] - ruby

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I was looking for some advice on building a Web Framework. I'd like to build a custom framework built on Ruby (but not Rails) focused on security and usability. Can someone point me toward resources for building such a Framework?

I'm also trying to build a Ruby web framework from scratch. I recently came across this book: http://rebuilding-rails.com which goes through creating a ruby web framework from scratch. I haven't read it yet, but it looks like a great resource.

For creating a web framework (if you don't want to handle all of the http stuff) i'd look into rack
for example:
class App
def call
[200, {"Content-type:" => "text/html"}, ["Hello"]]
end
end
# config.ru
run App.new

Here's a list of Ruby Frameworks.
http://www.thepixelart.com/ruby-frameworks-what-are-they-and-why-should-you-choose-one-which-one/
You could get ideas/ inspiration from their architectures.

You cannot possibly build a viable framework from scratch, more so build one focused on usability.
It has to grow organically and be first based on your own needs and follow your own requirements. Only after having built several applications you can extract common portions into a separate framework, refining and polishing the details.

Related

Cannot find a way to execute a ruby script from within swift [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have searched the web and the Swift documentation,
but so far have not found a way to execute a ruby script.
Is there a way to do this? I am assuming the script
exists as a file on the system.
Using system worked for me. The following calculates 5 factorial in Ruby under Swift:
import Cocoa
let value = 5
system("ruby -e \"p (1..\(value)).inject{|a,b| a*b}\"")
This use to be possible in Objective-C through MacRuby, but It didn't offer much benefit over the other options unless you need to interact very heavily between the two environments. MacRuby is more for interacting with the Objective-C world from Ruby than vice-versa, but it does allow you to freely mix the two languages in your project.
Sadly, MacRuby has effectively been dead in the water for a couple of years now. It had a lot of promise, but it didn't have the necessary internal support at Apple for it to succeed.

Want to learn spring with only core java background [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am trying to learn spring and spring mvc.
All the material I checked assumed that expects me to be aware of enterprise application development or server side development.
Is there any material/book of spring for absolute novice...like me who knows only core java and not aware of any enterprise/server development.
Thanks
Vamshi
The official documentation is pretty good http://docs.spring.io/spring/docs/3.2.x/spring-framework-reference/html/beans.html#beans-introduction. If you prefer a book i recommend "Spring in action". For Spring you don't need too much background-knowledge, but for Spring MVC it might be good to start with a basic Servlet tutorial. If you understand what Servlets are and how they work it will be easier to understand the MVC frameworks built on top of it.
I recommend you "just do it". Find a nice example (google) and follow it. In the beginning it is a bit hard to understand and might even be a tiny bit frustrating. But eventually it's worth it and you will never look back.

MonoMac or Monobjc [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I need to port a .Net application from Windows to OS X and I am wondering what are the advantageous and disadvantageous of using either Monobjc or MonoMac and what peoples experience with these are.
App Requirements
Native UI
Scripting Bridge (or alternative) for Inter-application Communication will need to be both ways i.e. calling the ported application from another and having another application call the ported application.
Growl integration for notifications.
What would be the best option considering the requirements above.
For item 1 if you carefully read the below article, you will see why MonoMac was born and why you should now use it,
http://tirania.org/blog/archive/2010/Apr-19.html
After these two years, MonoMac has already grown to be a giant in this field. Unless you are maintaining an old project built upon other bindings, you should consider MonoMac as your first option.
It does not matter whether you use MonoMac or another binding, as the last two items are not closely related to item 1.
For IPC you can consider WCF (limited support from Mono), Thrift (http://thrift.apache.org/) and many others.
Growl is not a Mac OS X API. For such vendor specific stuffs you should consult the vendor.

I'm looking for a nice local ticketing system [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm looking for a nice software to store tickets information locally. It should work only on my laptop under Linux, and be easily installed. The core features that I need:
storing tickets
allows to create additional documentation
don't take too much ram
very easy installation (I don't have whole days for configuring)
multiproject
You can try Project Kaiser
I use redmine and it's fantastic for all of the above. It's browser based so you'd need to install and configure it but it's not hard and well worth the effort.
Redmine is quick efficient and it's the best tool of its kind that I've ever found and I've looked tried many.
I know little about ruby/rails and it took me a few hours to install from clean using the guides.
How about a TidliDu http://www.giffmex.org/tiddlydu2.html. You can't make it easier to install. Create a new one for each project.
OpenOffice spreadsheet?

Any tutorial-like articles out there that explain how to use jRuby on Android? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm planning to perhaps purchase an android phone, and would love to be able to script some simple apps in Ruby on it. I found this article from back in August where the author was able to get the scripts working, but since I'm not a Java head, I had a hard time understanding all the steps.
http://amazing-development.com/archives/2009/08/04/android-scripting-environment-supports-jruby/
Do you know of any other tutorials or how to's out there that explain the process in more detail? Do you know if performance has improved since August?
There is a nice implementation of an Android app (irb in fact) based on JRuby in headius's repository on github. He has some details within the readme on how to use it and the source gives a good example of how to implement anything further.
There is a simpler app (think to "Hello world") but shifting to Mirah (formerly Duby) as opposed to JRuby. I know it's not exactly the same, but you get much the same coding experience but significantly more performance.

Resources