Best practices for managing pricing/discount business rules on rails [closed] - ruby-on-rails

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 fairly new to Rails and I have never developed a large application. A friend of mine and I are developing two separate applications and we found out we both have a need for a way to generically manage pricing / discount rules.
Scenario:
Say you have a conference registration application and depending on who uses the application, they may choose to offer different pricing plans.
$50 1 attendee
$40 >5 attendees
Exhibitor gets 3 free attendees and $30 each additional
Instead of baking in the specifics of these rules, it would be nice to abstract it in some way so rules can change over time and by conference.
What are the best practices for handling this? Are there Rails plugins? We have both searched, but have yet to find the solution.

I think you should have a look at RuleBy. I haven't used it myself, but am still meaning to find the time to experiment with it. It should solve precisely these problems.

I also don't know of an existing plugin for this but since you have at least two apps that need this why not try and make it a rails engine?
That way you and your friend can halve your effort and have something you can open source and show off and improve via community feedback.

Related

A Ruby on Rails framework which can be used for website for an event organizer [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 once build a webshop in Rails using the Spree framework. This was great since everything I needed for a webshop came out of the box. Now I want to make a website for people who organize dance parties. The site should have information of the new line-up and location, pictures/videos of older parties, and the possibility to buy new tickets.
I hope if you think of something that can be used which is like what Spree is for a webshop but then for the above requirements I would be very happy if you could share it with me.
Thanks for your help.
Rails is a good framework for this.
Meaning I can't think of anything premade to help you accomplish this, but it doesn't sound difficult to do from scratch.

Real time messaging application [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 am curious to know the advantages between using parse or a custom xmpp server. I am curious if parse has the capability of being used for creating a real time chat application, because I have never used parse for that use. Or would it be easier and better to use a custom xmpp server to handle messages. I am also curious if parse would be able to completely delete data off the server because that is what my application requires. As background info I have already started the project with parse, but I could switch over to another option if it is necessary.
Thanks
In my experience with working with Parse, I don't believe that it's the correct solution for your needs.
You may get things up and running at first, but as you try to scale your application, you're going to need to ramp up your servers (and cost!) greatly to handle so many requests. Parse's pricing is based on your requests count for the month. Imagine how many requests you expect one user to make in a month. Now times that by 1000.... Not very scalable, huh?
Now I don't know much about xmpp servers, but I've heard from some colleagues that applications like WhatsApp are using Erlang and TCP servers (just like Call of Duty) to handle message requests. In fact, here's an article that talks about the logistics of WhatsApps technology https://www.erlang-solutions.com/about/news/erlang-powered-whatsapp-exceeds-200-million-monthly-users
Best of luck!

How do i implement a database for my ios app? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
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.
Improve this question
So i created my first app which allows users to track there fitness information (workouts, routines, etc). I want take my app to the next step by allowing the user to create there own account and be able to access their workouts from any ios device (all they have to do is log in). I know i have to use databases, but I just don't know where or how to start this process.
Could you recommend any tutorials or perhaps a resource you used to teach yourself? I'm familiar with sql (took a course on it in university.
thanks guys, I apologize for the newb question.
There are many third-party services you can use that can take care of the backend for your app so that you don't need to worry about managing the database yourself. Two of the most popular ones are parse and stackmob. Take a look at their documentations. I personally use parse and would recommend it.
I've never written any os apps, but for applications in general.
There are many ways, one of which is getting a server/website (you can get free ones) and set up the MYSQL database to have the tables you need like users etc.
Then simply send requests via POST/GET to the server which will enter it into the database.Then when they want to login just do the reverse.
I would personally uses sockets, and probably encrypt the data. You may as-well send information such as how long they've used the app for etc.

RoR or Django for web app? [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 at creating a web app (similar functionality to kickstarter)
However i'm not a programmer and my knowledge is very minimal & i'm looking for one to help.
I'm about to post this on freelancer, should the project be built in RoR or Django?
What is the quickest + the best quality?
Thanks for your help
Jake
Here you go, a Kickstarter Clone: https://github.com/lockitron/selfstarter.
If you're thinking about what the project should be built in, Django or RoR, both of which are great choices, then you should really consider the strengths of who will help you. If that person has more experience with RoR, then RoR. If they have more experience with Django, then Django. At such an early stage in a project, deciding between great frameworks that will get the job done is micro-optimization that could wait a while (I don't think there are many if any drawbacks between choosing one over the other performance-wise). Thus, the choice should come from team dynamics and what the team building the product is most comfortable with.
In this case, you don't have a team, but if you were to find someone or some people, and they were all proficient in RoR, then RoR would be the clear choice. If, on the other hand, you are planning on learning web development, and are asking which you should learn, my personal choice would be RoR.

Where to obtain a particular virus for debugging purposes? [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
This is a little bit of an awkward question, and possibly off-topic, but it is at the end of the day in order to help debug a software issue: how would one go about obtaining a particular virus for testing purposes?
We have been receiving reports of our software failing on certain machines, and we think we have (through research and deduction) identified the cause as being a varient of the TDSS/TLD3 rootkit family.
We need to determine if this is truly the case, and if so, we'd like to patch our code to remove the TDSS infection before executing our code. However, I can't find any way of actually obtaining a sample of TDSS to test out this theory on. Short of searching comments on file sharing sites for someone saying "beware, this file is infected with TDSS," I can't think of any other way of sampling the virus? Is there no database of old viruses for such purposes (similar to CDC's stockpile of old viruses for medical research purposes!)?
Again, I do realize this is not a "standard" StackOverflow question, but I figured I would post here in the hopes of someone having some insight to share on this matter.
Here is an in-depth article on TDSS by a security analyst: http://nobunkum.ru/analytics/en-tdss-analysis. You might want to contact the author.

Resources