As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
As part of a team, we are building an RoR application completely driven through API's. We already have a web app, its just that we now want to make it completely API driven. We initially kicked off with using RABL Templating Engine for generating the JSON Response. We recently observed that by using JSON Builder as an alternative to RABL, our response times increased by about half a second for an API call in our app that users would hit most often . Before we take a final call on deciding to use JSON Builder for all our API's going forward, I just wanted to know about the pros and cons of using RABL and JSON. Also, it would be nice if one could compare the two templating engines mainly keeping performance in mind wherever feasible.
Sharing any relevant links would also be helpful.
Kindly let me know your experiences with the usage of both these templating engines. Thank you.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
At the moment, I write a WCF Service that gives the following functionality:
Videoupload and -download
Usermanagement
Groupmanagement
Filemanagement
A forum
Presencemanagement
As database I use a SQL Server 2012 from Microsoft.
The service gets called via REST, so this would not be the problem.
My question is, what advantage can I get with node.js or better said, is there any advantage?
The biggest advantage is in my point of view, that I am fully platform indipendent. Are there any other advantages?
Greets Knerd
Update, I posted a new question here https://softwareengineering.stackexchange.com/questions/188926/migrate-wcf-to-node-js
You get the usual advantages and disadvantages Node.js has.
I.e.:
Platform independence
Everything is asynchronous
You have the same language for the backend as for the HTML frontend
...
Basically, the question whether you can benefit from Node.js IMHO comes down to whether you need to scale pretty much, and if you have lots of I/O to do.
If the answer to both is 'yes' then Node.js may be a pretty good catch for you.
PS: Completely off-topic, but - are you Knerd from the discussion forum of winfuture.de?
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
We have applied EmberJS as a framework and using Rails 3.2 looking to migrate to Rails 4.0
A lot of push is being done by Rails community for turbolinks, on one side our site works well with the client side framework. And EmberJS gives a good support to write the custom code on the ends where we need one.
My question is how people perceive turbolinks as a way to make dynamic pages. Is going along with turbolinks implicitly meaning we must have as lean as possible Javascript (which means any JS framework is left redundant). So, how do we see would be the growth/support of the JS frameworks and would turbolinks become a defacto.
Is it the right time to start scale up for turbolinks and what are the good references.
Turbolinks is not going to replace ember. This is really an apples to oranges comparison.
Turbolinks isn't a way to make dynamic pages, it's just a way to make your site faster by replacing the body content.
If you're already using Ember you should simply ignore turbolinks.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
Note: I have been out of touch with the PHP world for quite a long time. I am primarily a Python developer.
I have to build a small app in PHP5. Please suggest me a lightweight framework which:
Has MS SQL Server Support that runs on Linux as the app will be running on Ubuntu.
Is fast to learn, use and setup.
Performance is not a critical issue. As the app will be used on a private LAN by about 10 people for data entry mainly.
Suggestion about a templating engines will also be appreciated
Regards
Let's kill off the easy question first - by tempting, I'm assuming you mean templating. If so, Smarty is usually a very good contender as it is simple to learn and very powerful.
Now, for the framework. A wide variety of PHP frameworks have switched to PDO for SQL requests, which means that most of them will easily accomodate MS SQL. CodeIgniter does, so does CakePHP last time I checked.
Ultimately, pick what you know rather than picking something that looks fancy, unless you need the extra features. The learning curve will be smaller.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am planning to use IndexedDB to support offline database but having trouble in performing queries and understanding the underlying mechanics of it. Is there a indexeddb wrapper that can enable me to query against indexeddb using SQL queries? Thanks!
Check out my wrapper library https://bitbucket.org/ytkyaw/ydn-db It will support limited SQL like appengine GQL.
IndexedDB API do not have relational concept nor SQL processor, but relationship is basically relating two object stores by a pair of respective fields. Handling relationship directly is often more efficient than declarative SQL in javascript usage. With declarative SQL language, you tell everything about what you want and wait for the result. OK for backend, not ideal for frontend.
With IndexedDB you don't wait, just open stream of records (cursor) and decide what to do next in each iteration. It is more flexible and much faster. Check out ydn.db.ICursor for these concept.
Currently, the library is very active stage and not ready thought.
As far as I know, there isn't. But I have a wrapper that is using a LINQ interface to query on the indexeddb: linq2indexeddb.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 12 years ago.
I want to build a website that is a simple password generator and that has a nice design.
passwordbird is a simple password generator and http://www.atebits.com/ has a design that I really like. What languages should I use for this project? My main goal is to gain experience in building websites; I don't expect for it to be perfect. I just want to learn something new and apply it to an idea that I have.
HTML, CSS and JS. Here's an example JS script on password generation: http://javascript.internet.com/passwords/password-generator.html
Good luck.
Good training would be a basic HTML&CSS site, and a php script to generate a password.
I imagine you would be able to specify things like length and composition of the password right? Throw all that in a form and send it via Ajax to the php script, get the generated password and display it. For the Javascript(Ajax) part, I'd use JQuery