+ Post New Thread
Results 1 to 15 of 15
Coding Thread, Locker assignment program - Java, c# or php in Coding and Web Development; I have been tasked with writing a program for the tracking and assignment of lockers to pupils. I have it ...
  1. #1

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,095
    Thank Post
    511
    Thanked 2,309 Times in 1,785 Posts
    Blog Entries
    24
    Rep Power
    803

    Locker assignment program - Java, c# or php

    I have been tasked with writing a program for the tracking and assignment of lockers to pupils. I have it designed in terms of database structure and objects but I am yet to decide on the tools to use to make it.

    So, the choices I have experience are:

    Java, C# or PHP.

    PHP would be ok as I code using it quite often, but it more often than not ends up with me using bad coding habits and me ending up with spagetti code, also I'm not keen on doing it with PHP as it will require a lot more work in terms of actual coding.
    C# looks good due to it being very easy to code with, but it isn't cross platform compatible, and I would like to make it 'future proof' and with the way Windows is going, it isn't too big a stretch to imagine windows not being the front end of the future.
    Java looks good due to the ability to use servlets or to use an applet. The problem with this is that I haven't programmed in Java for about 2 years. And even then, I didn't do a great deal of servlet programming or applet programming, so it would require a bit of reading to re-learn.


    So, what do people think?

  2. #2

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,037
    Thank Post
    209
    Thanked 425 Times in 306 Posts
    Rep Power
    143

    Re: Locker assignment program - Java or c#

    I code all my systems in PHP simply because they are then webbased and don't require any additional componants to be on the client computer, so they are non dependant on what the client is running. Also linking to a mySQL or MSSQL database with PHP is easy, and it's easy to write simple authentication into the system to keep people out that shouldn't be using it.

    If I were doing it, I'd definitley opt for PHP.

    Mike.

  3. #3


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    338

    Re: Locker assignment program - Java or c#

    could you use some code from an opensource room booking software or similar and adapt it? It might make the php route more attractive because there are lots of projects that you could add a module for. Whats your current webserver technology?

  4. #4

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,095
    Thank Post
    511
    Thanked 2,309 Times in 1,785 Posts
    Blog Entries
    24
    Rep Power
    803

    Re: Locker assignment program - Java or c#

    Quote Originally Posted by CyberNerd
    could you use some code from an opensource room booking software or similar and adapt it? It might make the php route more attractive because there are lots of projects that you could add a module for. Whats your current webserver technology?
    That part of the program is actually very easy to create. The difficult bit is the automatic assignment of lockers in bulk.

    We currently run a few web servers with LAMP and with IIS.

    Our school website runs Joomla but the intranet doesn't at the moment (although this may change in the near future).

  5. #5


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    338

    Re: Locker assignment program - Java, c# or php

    Our school website runs Joomla but the intranet doesn't at the moment (although this may change in the near future).
    I would try and integrate as much as possible into the school website, so php sounds the best bet for your current infrastructure. Maybe look through some of the Joomla modules for inspiration

  6. #6
    torledo's Avatar
    Join Date
    Oct 2007
    Posts
    2,928
    Thank Post
    168
    Thanked 155 Times in 126 Posts
    Rep Power
    47

    Re: Locker assignment program - Java, c# or php

    Quote Originally Posted by localzuk
    I have been tasked with writing a program for the tracking and assignment of lockers to pupils. I have it designed in terms of database structure and objects but I am yet to decide on the tools to use to make it.

    So, the choices I have experience are:

    Java, C# or PHP.

    PHP would be ok as I code using it quite often, but it more often than not ends up with me using bad coding habits and me ending up with spagetti code, also I'm not keen on doing it with PHP as it will require a lot more work in terms of actual coding.
    C# looks good due to it being very easy to code with, but it isn't cross platform compatible, and I would like to make it 'future proof' and with the way Windows is going, it isn't too big a stretch to imagine windows not being the front end of the future.
    Java looks good due to the ability to use servlets or to use an applet. The problem with this is that I haven't programmed in Java for about 2 years. And even then, I didn't do a great deal of servlet programming or applet programming, so it would require a bit of reading to re-learn.


    So, what do people think?
    I would avoid any kind of Java app (JSP or applet) unless you are very comfortable in using it......Java is overkill for a small, straightforward application like this.

    C# can be cross-platform if you use the mono framework...alternatively how about an ASP.NET web app to overcome the cross platform issues.
    Would remove many potential headaches when it comes to distributing you're app.

    If you want a slightly out-of-the-box solution how about RoR. Or one of the python-based frameworks as an alternative to using PHP.

  7. #7

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,095
    Thank Post
    511
    Thanked 2,309 Times in 1,785 Posts
    Blog Entries
    24
    Rep Power
    803

    Re: Locker assignment program - Java, c# or php

    Quote Originally Posted by torledo
    I would avoid any kind of Java app (JSP or applet) unless you are very comfortable in using it......Java is overkill for a small, straightforward application like this.
    I'd be comfortable doing it, I would just have to do a bit of revision to get myself back up to scratch.

    C# can be cross-platform if you use the mono framework...alternatively how about an ASP.NET web app to overcome the cross platform issues. Would remove many potential headaches when it comes to distributing you're app.
    I hate ASP.net with a vengance. I just can't get on with it in the slightest.

    If you want a slightly out-of-the-box solution how about RoR. Or one of the python-based frameworks as an alternative to using PHP.
    So instead of a slight bit of relearning, I would have to learn an entire new language? I can see the value of doing so, especially in RoR but I just don't think I'd have the time to do that - as you say, it is a relatively small application.

    I am now leaning towards doing it in PHP due to the possibility of integrating it into Joomla, so I am going to go and do a bit of reading about the Joomla 1.5 API and see how stable it is (seems as it is still RC). The only problem I see with this is that in a few years time, Joomla 2 will be on its way in, therefore needing an update to the module.

  8. #8

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,374
    Thank Post
    625
    Thanked 951 Times in 653 Posts
    Blog Entries
    2
    Rep Power
    318

    Re: Locker assignment program - Java, c# or php

    I would go with PHP, and use an open-source MVC framework such as Code Igniter which has loads of handy utility classes and an Active Record DB library.

    Personally I wouldn't tie anything like this in with the main website (especially if it's a CMS) incase that changes in the future; and also because the data concerned are quite separate. But you could use something like XML-RPC

  9. #9

    Join Date
    Sep 2007
    Location
    United Kingdom
    Posts
    5
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Locker assignment program - Java, c# or php

    Quote Originally Posted by localzuk
    C# looks good due to it being very easy to code with, but it isn't cross platform compatible
    Take it you haven't heard of Mono. It supports Linux, Mac OS X, Sun Solaris, BSD and Microsoft Windows.

  10. #10
    torledo's Avatar
    Join Date
    Oct 2007
    Posts
    2,928
    Thank Post
    168
    Thanked 155 Times in 126 Posts
    Rep Power
    47

    Re: Locker assignment program - Java, c# or php

    Quote Originally Posted by webman
    I would go with PHP, and use an open-source MVC framework such as Code Igniter which has loads of handy utility classes and an Active Record DB library.

    Personally I wouldn't tie anything like this in with the main website (especially if it's a CMS) incase that changes in the future; and also because the data concerned are quite separate. But you could use something like XML-RPC
    I personally think Symfony is the best of the PHP-based MVC frameworks.
    Very intutitive.

  11. #11

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,374
    Thank Post
    625
    Thanked 951 Times in 653 Posts
    Blog Entries
    2
    Rep Power
    318

    Re: Locker assignment program - Java, c# or php

    PEAR and command-line installers and generators? Not for me thanks

  12. #12

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,095
    Thank Post
    511
    Thanked 2,309 Times in 1,785 Posts
    Blog Entries
    24
    Rep Power
    803

    Re: Locker assignment program - Java, c# or php

    Quote Originally Posted by arran
    Quote Originally Posted by localzuk
    C# looks good due to it being very easy to code with, but it isn't cross platform compatible
    Take it you haven't heard of Mono. It supports Linux, Mac OS X, Sun Solaris, BSD and Microsoft Windows.
    I have heard of, and used, Mono but it lacks a great number of features of the newer versions of .Net. Also, last I checked, making a cross-platform GUI application could be a faff, due to the libraries which handle that aspect being incomplete.

  13. #13

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,374
    Thank Post
    625
    Thanked 951 Times in 653 Posts
    Blog Entries
    2
    Rep Power
    318

    Re: Locker assignment program - Java, c# or php

    One of the other benefits of web-based apps is that all clients already have the requirements to run it - a browser. No DLLs or runtimes required.

  14. #14

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,037
    Thank Post
    209
    Thanked 425 Times in 306 Posts
    Rep Power
    143

    Re: Locker assignment program - Java, c# or php

    Quote Originally Posted by webman
    One of the other benefits of web-based apps is that all clients already have the requirements to run it - a browser. No DLLs or runtimes required.
    That's precisely the reason why unless there's a really good reason not to, I develop everything I do in PHP (or ASP ocassionally) with bits of JAVA code for more advanced features on the pages. With a bit of time spent, pratically any type of application can be web-based these days, which makes it a whole lt easier if you make changes to it or change peoples workstations, no re-deployment to worry about!

    For non-web based applications I tend to use VB.NET as it's very easy to learn and surprisingly flexible, and best of all it's free! Only problem I found out recently is for some reason you can't run a .NET application from a network share.

    Mike.

  15. #15
    torledo's Avatar
    Join Date
    Oct 2007
    Posts
    2,928
    Thank Post
    168
    Thanked 155 Times in 126 Posts
    Rep Power
    47

    Re: Locker assignment program - Java, c# or php

    Quote Originally Posted by webman
    One of the other benefits of web-based apps is that all clients already have the requirements to run it - a browser. No DLLs or runtimes required.
    The ubiquity of the web browser is why so many enteprise applications are now almost entirely web based. Some ERP systems make use of enteprise Portals in order present data from the various enteprise applications and databases to the web client. If you like web-enabling the application without the need for a fat client. Enterprise Java had a head in all this start with the use of applets

    But now with little tricks such as AJAX you can have some aspects of the traditional desktop gui functionality in the browser without going down the applet or activex route, and for true rich client apps you've got things like Flex. For small apps a web-app has very few notieable downsides

    The tradeoff is always going to be performance of the app, but the performance gap is narrowing all the time.

SHARE:
+ Post New Thread

Similar Threads

  1. USB Mem sticks letter assignment - Win XP
    By Paid_Peanuts in forum Windows
    Replies: 11
    Last Post: 14th November 2008, 09:18 AM
  2. Java Deployment
    By steelrazor in forum How do you do....it?
    Replies: 8
    Last Post: 20th February 2008, 07:30 PM
  3. Replies: 2
    Last Post: 21st August 2007, 01:16 PM
  4. Java Problems
    By Ste_Harve in forum Windows
    Replies: 2
    Last Post: 23rd March 2007, 01:22 PM
  5. Java released under the GPL
    By CyberNerd in forum IT News
    Replies: 1
    Last Post: 13th November 2006, 09:50 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •