Live data from Hacker News

Switch to another language in the middle of a project?

news.ycombinator.com

11–20 of 25 posts

Re: Switch to another language in the middle of a project?

#11
I've said this a lot, but I can't recommend Code Igniter enough when working with PHP. Quite fast, almost feels like an entirely different "real" language with so much library support from the framework.

Even when I work with Django (being a huge Python man myself), I miss having some of the better aspects of Code Igniter (and definitely CI's user guide is stellar).

Don't switch languages mid-way unless you have a great reason. PHP blog-flak isn't a good enough reason (IMHO) unless your team is fluent in another language they can code more securely.

Re: Switch to another language in the middle of a project?

#12
finish your project in PHP, throw it up, start making money. Then in your spare time if you feel like it, switch to another language. Or if you are starting to have some performance issues.

If you are going to change your language every time some new language gets hyped you'll never finish.

Re: Switch to another language in the middle of a project?

#13
post #11

I've said this a lot, but I can't recommend Code Igniter enough when working with PHP. Quite fast, almost feels like an entirely different "real" language with so much library support from the framework. Even when I work with Django (being a huge Python man myself), I miss having some of the better aspects of Code Igniter (and definitely CI's user guide is stellar). Don't switch languages mid-way unless you have a gr…

Thanks. We already use PHPTAL. Will Code Igniter work with PHPTAL?

Re: Switch to another language in the middle of a project?

#15
The answer depends on the purpose of the project. If you're building something to make money, you should not spend the time now to switch languages unless your NEW language has some library or feature which your current project simply cannot work without. However, if this is a learning exercise only or just a fun project, there would be no harm in spending the time to explore both the Python and Ruby options.

The key to your decision here should be how much time and effort it would require to duplicate a feature you want to use in your existing system as compared to what comes out of the box with either a new language or an existing PHP framework. If it's a pain to do and the functionality is critical to your project's success, then you should port. Otherwise, I'd recommend you keep doing what you're doing.

Re: Switch to another language in the middle of a project?

#16
Very big mistake if you are serious about bussiness. Django and Ruby are very tough to find cheap programmers for, but there is no shortage of cheap PHP programmers. Expect a language change to throw you back 3 months or more.

And there are many PHP frameworks, don't implement a new one.

Re: Switch to another language in the middle of a project?

#17
I think the answer kind of depends on the nature of the project.

Re-writing something you have now in another language/framework can be (in addition to fun) a great way to learn the new language/framework. If this is just a fun project, well, cool - best of luck to you. If this is a business, something that you'd like to start making money (or at least getting press) from, then maybe the delay will hurt you more than the fun will help you.

In my case, the website was the online component of a small university department. I inherited a PHP codebase that worked, but that I really didn't like, and opted to re-write it in Python/Django. I'm really happy with the decision: I think it was a great way to learn the framework, and the result is a lot better than the PHP site that it replaced, but I don't think I would have done it if I hadn't had a working PHP site to placate students while I was working on it.

Good luck with whatever route you choose to go.

Re: Switch to another language in the middle of a project?

#18
i think you should go where your passion is.if you are board with php, you might be willing to put more hours in to another language.

you will find that the more languages you know the easier it is to switch.

i also think you should keep in mind on how you plan to progress in your company, the further you are from writing the code, the more you will want to be able to recognize a broad set of patterns.

Re: Switch to another language in the middle of a project?

#19
post #9

I was recently halfway through a project that was going strong in PHP, but I started reading about Django and Python and decided to port everything over: turned out to be a very good decision. Django keeps my code clean and Python keeps me inspired. While PHP is a good language, I would argue that it takes more self-control to program well in it.

interesting point - when you have it majority of components ready-made for you, are you really as disciplined a programmer? im going to say "yes," on the assumption that you had the self-control to go to the hardware store and buy a hammer instead of making a set of tools to make a hammer, as the metaphor goes.

Re: Switch to another language in the middle of a project?

#20
I'd say stick with PHP for this project, and try doing the next one in Python or Ruby.

If you feel like you need a framework, slowly build it up one piece at a time as you need it. Don't re-write your whole app before you're making money. You can spend a lot of time doing that, and there are so many other things that can potentially go wrong, you don't need to add "it took us too long to get it working" to the list.

Post reply on HN