Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

PHP vs. ASP.net Question

  • 01-07-2007 7:43pm
    #1
    Closed Accounts Posts: 3


    Hi there. I want to start my own website as a hobby. I'm batting around a virtual pet site idea. Most of the virtual pet sites out there use PHP, but I've just heard about this Asp.net and wondered if it was a viable option. It seems everywhere I look people are comparing it with a serious programmer in mind. I only want to get as serious about this as I need to. A significant difference in server cost is also important. Does anyone have any ideas?


Comments

  • Closed Accounts Posts: 17,163 ✭✭✭✭Boston


    ASP.net = Microsoft proprietary ****e
    PHP = open scource.

    You rarely see ASP but you see PHP everywhere. Read into that what you want.


  • Closed Accounts Posts: 3 spottedbluecat


    I suppose I should mention that I have had absolutely no experience with programming except for a few simple html codes. I have heard that asp.net is the "future" of programming, but I don't know if that applies to little old me doing a simple website.


  • Registered Users, Registered Users 2 Posts: 7,314 ✭✭✭Nietzschean


    its easier to just go with php + mysql, set it all up in no bother on your desktop for local testing..... asp is grand, though i've not used it in years myself mostly php as as boston says its everywhere...


  • Registered Users, Registered Users 2 Posts: 4,276 ✭✭✭damnyanks


    So if you are on Windows XP Pro or 2K you just install the .net framework and you're away no problems. You can also use Mono which is the open source project porting .net for other platforms.

    As far as a learning curve goes, it's very simple to get some form of website up and running with asp.net and visual studio / web developer.


  • Registered Users, Registered Users 2 Posts: 40 dob99


    I use PHP myself. Have never used ASP, but it's based on Visual Basic .NET (I think), so if you've no real previous programming experience, ASP is probably easier to pick up.

    The best thing to do would be to find a couple of beginner's tutorials in both and see which one you'd find easier to pick up. Try downloading VB Express (http://msdn.microsoft.com) - it's the free version of VB. It might have some samples and tutorials.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 2,931 ✭✭✭Ginger


    Boston wrote:
    ASP.net = Microsoft proprietary ****e
    PHP = open scource.

    You rarely see ASP but you see PHP everywhere. Read into that what you want.

    While not wanting to get into the whole MS Vs Open Source argument (i am after all a .NET programmer), its not entirely true that you see PHP everywhere and ASP/ASP.NET is not anywhere. A lot ASP.NET apps are written as intranet/extranet style. .NET can be ran on Apache with Mono as a previous poster pointed out. Mono is open source and backed by MS. The .NET framework is fairly open. If you want you can write a compiler for any language to .NET it. There is even COBOL.NET

    As for which is easier to learn that is an apples and oranges question. First I would ask how familiar are you with programming and what styles have you learnt. .NET is all object orientated. .NET is more n-tier structured than PHP but it can messed up to monolith.

    At this stage you can use free tools to write both and deploy both. Its even possible to write .NET without Visual Studio, you just use the command line to compile it. While more time consuming it can be done. You can also do the same for ASP.NET files (http://www.asp101.com/articles/john/codebehindnovs/default.asp)

    The only reason you will see it as the future is the MS marketing engine. They have invested heavily in the .NET framework and so are looking to cash in on that. Take it as an "oh join my team we have the best toys" sort of thing.

    Anyways, there are a massive amount of resources for both out there. Best of luck on it


  • Registered Users, Registered Users 2 Posts: 2,931 ✭✭✭Ginger


    dob99 wrote:
    I use PHP myself. Have never used ASP, but it's based on Visual Basic .NET (I think), so if you've no real previous programming experience, ASP is probably easier to pick up.

    The best thing to do would be to find a couple of beginner's tutorials in both and see which one you'd find easier to pick up. Try downloading VB Express (http://msdn.microsoft.com) - it's the free version of VB. It might have some samples and tutorials.

    Its not based on VB.NET it is based on the langugage you choose to write it in and then compiled to the same code. That is what the framework is there for. You can write it in C#, C++.NET, VB.NET whatever.net it will still be the same at the end of the day. ASP on the other hand was based on either Javascript or VBScript. The main differences between ASP and ASP.NET is that .NET is compiled, ASP was interpretted at runtime.


  • Registered Users, Registered Users 2 Posts: 7,468 ✭✭✭Evil Phil


    I think either language is suitable, its just up to you which way you want to go. It's almost a windows/linux choice really. I don't know a lot about php as I'm a .net developer myself. I do notice that a lot of the negative .Net comments in this thread are simply untrue.

    There's a .Net IDE called sharpcode http://www.icsharpcode.net/OpenSource/SD/ that's open source.


  • Registered Users, Registered Users 2 Posts: 872 ✭✭✭grahamor


    Boston wrote:
    You rarely see ASP but you see PHP everywhere.

    What a stupid and false comment that you rarely see ASP.

    Also, .NET might be Microsoft but i would hardly call it sh***


  • Closed Accounts Posts: 19,777 ✭✭✭✭The Corinthian


    Hi there. I want to start my own website as a hobby. I'm batting around a virtual pet site idea. Most of the virtual pet sites out there use PHP, but I've just heard about this Asp.net and wondered if it was a viable option. It seems everywhere I look people are comparing it with a serious programmer in mind. I only want to get as serious about this as I need to. A significant difference in server cost is also important. Does anyone have any ideas?
    Depends on a number of factors. If you're very much a programming newbie then PHP will be easier to get into. Having said that ASP.net does have the advantage of being a more marketable skill if you're thinking employment in the longer term, precisely because PHP is easier to get into. Hosting costs differ, but not by a hell of a lot, TBH.

    However, given your lack of experience and the simplicity of the application you're looking to build I'd probably edge towards PHP, although you should be aware that as a language it's even more prone to allowing bad coding than VB ever was.
    Boston wrote:
    ASP.net = Microsoft proprietary ****e
    PHP = open scource.
    So what?
    You rarely see ASP but you see PHP everywhere. Read into that what you want.
    Depends upon the application. ASP.Net is more popular with enterprise solutions than with small sites, so you'll see it less often, but it will be used far more often in that sphere than PHP. Independent of the technical pro's and con's his is down to two factors, that large organisations mistrust most open source and that the majority of so-called PHP developers out there are crap.

    So it's horses for courses really, as someone pointed out the choice may simply come down to a choice between Windows and Linux. More likely it comes down to the complexity of such a site and given it's unlikely to be too complex, then the OP is better off with PHP.


  • Advertisement
  • Users Awaiting Email Confirmation Posts: 351 ✭✭ron_darrell


    dob99 wrote:
    I use PHP myself. Have never used ASP, but it's based on Visual Basic .NET (I think), so if you've no real previous programming experience, ASP is probably easier to pick up.

    The best thing to do would be to find a couple of beginner's tutorials in both and see which one you'd find easier to pick up. Try downloading VB Express (http://msdn.microsoft.com) - it's the free version of VB. It might have some samples and tutorials.


    ASP can use any scripting language to generate it's code. ASP.Net does require that you use either c# (based on the C/C++ family of language) or VB.Net (based on Visual Basic). AS to seeing PHP everywhere that is perhaps a bit of a misdirection. ASP and ASP.Net are seen in most of the bigger site (with file extensions of .asp or .aspx, keep an eye out for them).

    As you have never coded before the learning curve for either course is just as steep and job prospects will be just the same at the other side, though debatedly the pay for a .Net programmer is likely to be higher unless the PHP programmer has significant experience running UNIX servers. My own preference would be for ASP.Net if I was in your position.

    Microsoft have, as dob99 mentionned, offered free versions of their various .Net packages that should be more than adaquete for a hobby site. If your experience grows an dyou wish to expand you can then upgrade to the Enterprise editions packs but sufficient experience can be gained from the hobby packs without needing to go down this road.

    Best of luck to you and if you need any help feel free to PM.

    -RD


  • Closed Accounts Posts: 3 spottedbluecat


    Thank you everyone for your help. I've decided to go with php. :D


  • Closed Accounts Posts: 17,163 ✭✭✭✭Boston


    grahamor wrote:
    What a stupid and false comment that you rarely see ASP.

    Sorry, my comment should read, ASP doesn't exist, it fiction, a figment of your imagination. PHP is on every single website in the world. Even Aliens use PHP, it solves all problems. Get a grip. Of course its relative to who you are and what you do, however last figures I looked at (2006) PHP was the most commonly used sever side scripting language, it was used on more sites when all the alternatives combined. So yea, PHP is pretty much everywhere, ASP is pretty much rare.
    Depends upon the application. ASP.Net is more popular with enterprise solutions than with small sites, so you'll see it less often, but it will be used far more often in that sphere than PHP. Independent of the technical pro's and con's his is down to two factors, that large organisations mistrust most open source and that the majority of so-called PHP developers out there are crap.

    Agreed with all of the above, but I would point out that the vast majority of sites arn't built on enterprise solutions. So as a user its only the rare site you see using ASP. As for open source Vs proprietary I fundamentally believe that if you're a decent programmer you'll produce better code with an open source language. That has been my experience, you've clearly more experience and are welcome to disagree. I do however acknowledge that their are a lot of problems with open source and are side stepped in the proprietary world.


  • Registered Users, Registered Users 2 Posts: 4,276 ✭✭✭damnyanks


    Boston wrote:
    As for open source Vs proprietary I fundamentally believe that if you're a decent programmer you'll produce better code with an open source language. That has been my experience, you've clearly more experience and are welcome to disagree. I do however acknowledge that their are a lot of problems with open source and are side stepped in the proprietary world.

    Nit picking of course but...

    How in gods green earth have you made an assumption that a developer will produce a better final result with open source over propietary languages


  • Registered Users, Registered Users 2 Posts: 981 ✭✭✭fasty


    I'm not a web designer but I have some experience with developing CMS systems for smaller websites in PHP. Recently I've done a lot of web front ends using ASP.net and C# and I find it much easier to deal with than PHP/MySQL.

    The convenience of not having to change the bulk of my code has been invaluable when it comes to turning a desktop based application into something that works over the internet.

    I guess that's one advantage using ASP.Net gives.


  • Registered Users, Registered Users 2 Posts: 68,317 ✭✭✭✭seamus


    Boston wrote:
    As for open source Vs proprietary I fundamentally believe that if you're a decent programmer you'll produce better code with an open source language.
    A decent programmer will produce decent code, whatever the language. A golfer isn't a good golfer because of his clubs.


  • Registered Users, Registered Users 2 Posts: 4,276 ✭✭✭damnyanks


    How about Ruby on rails. Been playing around with it recently, its very straight forward.


  • Registered Users, Registered Users 2 Posts: 21,263 ✭✭✭✭Eoin


    Boston wrote:
    Sorry, my comment should read, ASP doesn't exist, it fiction, a figment of your imagination. PHP is on every single website in the world. Even Aliens use PHP, it solves all problems. Get a grip. Of course its relative to who you are and what you do, however last figures I looked at (2006) PHP was the most commonly used sever side scripting language, it was used on more sites when all the alternatives combined. So yea, PHP is pretty much everywhere, ASP is pretty much rare.

    Agreed with all of the above, but I would point out that the vast majority of sites arn't built on enterprise solutions. So as a user its only the rare site you see using ASP. As for open source Vs proprietary I fundamentally believe that if you're a decent programmer you'll produce better code with an open source language. That has been my experience, you've clearly more experience and are welcome to disagree. I do however acknowledge that their are a lot of problems with open source and are side stepped in the proprietary world.

    You said ASP.NET is a load of shìte, and you're talking about ASP now. There's a big difference between the two of them.

    While ASP.Net is used on a lot of enterprise solutions, I haven't found it particularly unwieldy for small applications at all.


  • Registered Users, Registered Users 2 Posts: 4,276 ✭✭✭damnyanks


    If you have visual studio and just want to make a personal website you could get away without actually learning to program. It will generate connections to database's, create objects to access the database and display the info. Has membership API so you dont even need to worry so much about log on's and what not.


  • Closed Accounts Posts: 402 ✭✭newestUser


    Boston wrote:
    I fundamentally believe that if you're a decent programmer you'll produce better code with an open source language.

    Bloody fundamentalists. :rolleyes:

    As for the OPs question, I've used a combination of PHP and MySQL to make my own website. Was easy enough to learn, apart from session variables which (briefly) cause me a few problems. Can't comment on ASP.net, but I found PHP easy to learn.


  • Advertisement
  • Closed Accounts Posts: 17,163 ✭✭✭✭Boston


    damnyanks wrote:
    Nit picking of course but...

    How in gods green earth have you made an assumption that a developer will produce a better final result with open source over propietary languages

    Hmm, ok I'm not a PHP monkey, I'm an engineer from a C/C++/Erlang background, I like to know whats going on in the background, how things are actually implimented and have found that I produce better code (less bugs, faster, more effecient, less lines of code ect ect) when I have that knowledge.

    Seamus, I disagree. The more you hide away from the programmer, the less control he has.

    eoin_s: You seem to be disagreeing with me on a point I haven't made. ASP may be the easies t language in the world to pick up and run with, but I wouldn't know becuase I'd never use the mother****er.

    newestUser: A jihad upon you.


  • Registered Users, Registered Users 2 Posts: 5,335 ✭✭✭Cake Fiend


    Boston wrote:
    ASP may be the easies t language in the world to pick up and run with, but I wouldn't know becuase I'd never use the mother****er.

    Well, I'm convinced

    :rolleyes:


  • Closed Accounts Posts: 17,163 ✭✭✭✭Boston


    It wasn't meant as an argument, but rather as a tongue in cheek reference to a classic movie.


  • Registered Users, Registered Users 2 Posts: 4,276 ✭✭✭damnyanks


    Boston wrote:
    Hmm, ok I'm not a PHP monkey, I'm an engineer from a C/C++/Erlang background, I like to know whats going on in the background, how things are actually implimented and have found that I produce better code (less bugs, faster, more effecient, less lines of code ect ect) when I have that knowledge.

    Seamus, I disagree. The more you hide away from the programmer, the less control he has.

    eoin_s: You seem to be disagreeing with me on a point I haven't made. ASP may be the easies t language in the world to pick up and run with, but I wouldn't know becuase I'd never use the mother****er.

    newestUser: A jihad upon you.

    Nothing is hidden from the programmer, its pre-built. They can view the implementation code of the common datastructures and extend them you wish to do so.

    Sorry but it would appear you belief by creating common datastructures again that you'd be a better programmer. Now maybe you have put far more consideration into things like collision detection, scalability, speed and testing for something such as hashtable then teams of people at microsoft, sun and so on.

    Knowing how something is implemented will not make you more efficient or write better code. You can only talk to frameworks / api's the same way as everyone else.


  • Closed Accounts Posts: 17,163 ✭✭✭✭Boston


    damnyanks wrote:
    Nothing is hidden from the programmer, its pre-built. They can view the implementation code of the common datastructures and extend them you wish to do so.

    Sorry but it would appear you belief by creating common datastructures again that you'd be a better programmer. Now maybe you have put far more consideration into things like collision detection, scalability, speed and testing for something such as hashtable then teams of people at microsoft, sun and so on.

    Knowing how something is implemented will not make you more efficient or write better code. You can only talk to frameworks / api's the same way as everyone else.

    Since you're reading so much into my post, are you saying that The likes of sun amd microsoft write perfect code,bug free, 100% scalable and 100% suitable to every possible situation? There are advantages to know how things work and not just blindly using a languages API. Understanding this is the difference between being an actual engineer and just anotehr code monkey, banging in fuction calls which do "something or other".


  • Closed Accounts Posts: 4,943 ✭✭✭Mutant_Fruit


    Boston wrote:
    Since you're reading so much into my post, are you saying that The likes of sun amd microsoft write perfect code,bug free, 100% scalable and 100% suitable to every possible situation? There are advantages to know how things work and not just blindly using a languages API. Understanding this is the difference between being an actual engineer and just anotehr code monkey, banging in fuction calls which do "something or other".
    Are you saying that you can write bug-free 100% scalable and 100% suitable to every possible situation replacements? I'd think it far more likely the Microsoft/Sun/whoever would be able to do so simply because they have bigger teams and more heads usually means better ideas.

    A linked list is a linked list in any language. Whether the language is "open source" or not doesn't make one bit of difference to the programmer using said list. What is worth noting is that not all linked lists are equal, some have O(1) prepend and O(n) append, others don't. However whether the language is open or not doesn't affect my ability to read the documentation on that class to find out these things.

    So basically, it does not make one bit of difference whether the language is open or not, all that matters is the code monkeys ability to program and ability to read documentation. Maybe in your particular case you read the sourcecode for every method you go to use to find out what's fast and whats not, fair enough. But the general architect is quite happy reading the man page.


  • Registered Users, Registered Users 2 Posts: 2,934 ✭✭✭egan007


    IF you never want your applications to work properly in anything other than Internet explorer then use ASP
    otherwise use PHP.


  • Registered Users, Registered Users 2 Posts: 2,931 ✭✭✭Ginger


    egan007 wrote:
    IF you never want your applications to work properly in anything other than Internet explorer then use ASP
    otherwise use PHP.

    Oh come on do you even understand what you just wrote... This is the worst argument yet...

    Both languages are serverside not client-side languages. They are processed on the server and send the results to the browser. So depending on how the coder who wrote the script designed the resulting HTML that is out then that is how the browser will interpret it.


  • Closed Accounts Posts: 4,943 ✭✭✭Mutant_Fruit


    egan007 wrote:
    IF you never want your applications to work properly in anything other than Internet explorer then use ASP
    otherwise use PHP.
    If you want to debate the pro's and con's of ASP, start a separate topic for it. As it is, this is about ASP.NET not ASP. It's a completely different beast.


  • Advertisement
  • Closed Accounts Posts: 19,777 ✭✭✭✭The Corinthian


    egan007 wrote:
    IF you never want your applications to work properly in anything other than Internet explorer then use ASP
    otherwise use PHP.
    Hang your head in shame boy.


  • Registered Users, Registered Users 2 Posts: 1,636 ✭✭✭henbane


    OP, you've unintentionally opened a can of worms. Use whichever tool fits your project.
    Boston wrote:
    It wasn't meant as an argument, but rather as a tongue in cheek reference to a classic movie.
    Classic? You need your head checked


  • Closed Accounts Posts: 17,163 ✭✭✭✭Boston


    Are you saying that you can write bug-free 100% scalable and 100% suitable to every possible situation replacements? I'd think it far more likely the Microsoft/Sun/whoever would be able to do so simply because they have bigger teams and more heads usually means better ideas.

    I don't have to thats the point. I can write better code then the general solutions provided by microsoft and Sun, in specific situations. You seem to be entirely missing the point, and one wonders if you have a programming background. I don't have to write better code then sun and microsoft 100% of the time, just once will do to prove the point.

    The more detailed and complex a solutions you require, the more original code you'll have to write. Know exactly how some function does memory management could be the difference between writing your own and using something provided.

    henbane: Quentin Tarrantino is a legend.


  • Registered Users, Registered Users 2 Posts: 2,931 ✭✭✭Ginger


    Boston wrote:
    One wonders if you have a programming background.

    This is going to be funny...


  • Registered Users, Registered Users 2 Posts: 7,468 ✭✭✭Evil Phil


    As heated as this discussion is going to get there is no need for getting personal.

    In the meantime I'm getting some popcorn.


  • Registered Users, Registered Users 2 Posts: 4,276 ✭✭✭damnyanks


    Boston wrote:
    I don't have to thats the point. I can write better code then the general solutions provided by microsoft and Sun, in specific situations. You seem to be entirely missing the point, and one wonders if you have a programming background. I don't have to write better code then sun and microsoft 100% of the time, just once will do to prove the point.

    The more detailed and complex a solutions you require, the more original code you'll have to write. Know exactly how some function does memory management could be the difference between writing your own and using something provided.

    henbane: Quentin Tarrantino is a legend.


    And why can't you do that with a microsoft or sun stuff? You do know you can create your own classes , right ? You can also call the GC when you want to.

    Place I worked remade the GC for java so that it was more efficient for real time processing making it faster then something like c++ (which they used to use for these systems)


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 14,149 ✭✭✭✭Lemming


    Boston wrote:
    henbane: Quentin Tarrantino is a legend.

    I find it supremely ironic that Boston has chosen to quote a mediocre director who rarely comes up with original work and simply plagarises a pile of other films and mix and matches them. "Original work" is the key phrase in there.

    But I digress ...

    OP, try both technologies. Use whatever you feel most comfortable with. I'm a .NET programmer by trade, even did a spell inside Microsoft, although PHP was my first foray into web programming many moons ago - including server maintenance.

    Without using a large brush to tar entire communities, the .Net framework is very well documented, PHP not so much so. Which tends to shoot the Closed vs. Open-source debate in the foot. This isn't a black or white argument, and to portray it as such is incredibly dishonest (like certain posters are doing).

    To Boston, if the OP is not terribly au fait with programming, would you *honestly* suggest that they go trawling through code (if documentation is crap) to figure how a particular function works? For every one person who might be able to handle it, how many wouldn't and would just abandon programming as being "too hard and confusing"?


  • Closed Accounts Posts: 461 ✭✭markf909


    Place I worked remade the GC for java so that it was more efficient for real time processing making it faster then something like c++ (which they used to use for these systems)

    Totally OT, but that sounds very interesting. There is a lack of published material vis-a-vis Java versus C++ performance.
    Intuitively, one assumes that C++ has to be faster but i'd love to see a definitive study conducted.


  • Closed Accounts Posts: 4,943 ✭✭✭Mutant_Fruit


    Boston wrote:
    I can write better code then the general solutions provided by microsoft and Sun, in specific situations. You seem to be entirely missing the point, and one wonders if you have a programming background. I don't have to write better code then sun and microsoft 100% of the time, just once will do to prove the point.
    Ah, ya got me there. I'm just a poor electronic engineer who's just finished his third year of college. So obviously i haven't a clue what i'm on about. I suppose my only meager claim to fame is that I've written arguably the most efficient (memory and cpu) bittorrent client in a managed language.

    Funnily enough, it was in an open source language, C#. Do i think that by writing it in an "open" language i wrote better code than if i had coded in a "closed" language? God no! I would have written it all exactly the same no matter what language i choose.

    I did find that the built-in bitarray class was far too slow for my needs. So i rewrote my own bitarray which gave me the flexibility i needed. I'd have rewritten it no matter what language it was coded in, open or otherwise. It was slow, it didn't give me access to things i needed access to, so i wrote my own.

    [code]The more detailed and complex a solutions you require, the more original code you'll have to write. Know exactly how some function does memory management could be the difference between writing your own and using something provided.[/QUOTE]
    To be honest, i strive to make things less complex. Works out easier that way. I try to not reinvent the wheel unless i absolutely have to. Rewriting a List class just to gain 5% extra performance in appending doesn't appeal to me.

    Basically, trying to claim that people using "open" languages write better code than people using "closed" languages is pure rubbish. That's no reason to recommend a language. Trying to say ASP (or ASP.NET) is crap because it's closed and PHP is good because it's open is idiotic.

    EDIT: IF you want a fairly unreliable benchmarking source between languages, check this out: http://shootout.alioth.debian.org/ . I say unreliable as some of the benchmarks are unfair to certain languages in how the benchmark is implemented. So it's a rough guide to performance, but can be fairly inaccurate at times.


  • Closed Accounts Posts: 17,163 ✭✭✭✭Boston


    damnyanks wrote:
    And why can't you do that with a microsoft or sun stuff? You do know you can create your own classes , right ? You can also call the GC when you want to.

    Ok, Open source Library of code is good Mkay. If you can see why, I can't convince you. Maybe you've never found benifit in that, I have.

    Lemming: LoL too true. I knew someone would byte. You've a fair point, and I'll it's basically why I know the likes of java and some exclusive windows scripting languages. Sometimes you don't need to know, but thats very different from saying you never need to know.
    Ah, ya got me there. I'm just a poor electronic engineer who's just finished his third year of college. So obviously i haven't a clue what i'm on about. I suppose my only meager claim to fame is that I've written arguably the most efficient (memory and cpu) bittorrent client in a managed language.

    Funnily enough, it was in an open source language, C#. Do i think that by writing it in an "open" language i wrote better code than if i had coded in a "closed" language? God no! I would have written it all exactly the same no matter what language i choose.

    So things would have been exactly the same if you had written it in hideously bloated and efficient Java, where you have no control over memory management? "Me fail programming, that's impossible".
    It was slow, it didn't give me access to things i needed access to, so i wrote my own.

    Ok, yes, but because it was open source you could see where it was slow and what you had to chance to make it better in your specific case. Thats the smart thing to do. To do other wise is just pure stupidity on your part, no wonder you failed to see benefits.

    I've implemented the same projects in both Java and Erlang, My experience has been that I produce far better code with Open source Libraries then the closed Source APIs of Sun and Microsoft. However I produce code far faster with APIs. Thats the entire point, that's where the likes of Java fit into the programming world, it's quick, easy, and largely "good enough", but never claim its better, unless you want all the other engineers laughing at you.

    And finally, Electronic engineer, I laugh at you. I'm a Computer and Electronic engineer, I know the general level of understanding pure Elec engineers students have of programming, it isn't much. I've never met one that could write a multi read single write driver any way, or a MESI cache manager


  • Closed Accounts Posts: 4,943 ✭✭✭Mutant_Fruit


    Boston wrote:
    So things would have been exactly the same if you had written it in hideously bloated and efficient Java, where you have no control over memory management?
    Erm, i did mention that i coded in a managed language, didn't i? A managed language by definition is one where all memory is managed for me. So yes, it would've been the same if i wrote it in horrible bloaty java. I wouldn't have changed my coding style or use of objects one bit. It just so happened that i chose to code in horrible bloaty C# with it's horrible bloaty garbage collection to implement my horrible bloaty code.
    Ok, yes, but because it was open source you could see where it was slow and what you had to chance to make it better in your specific case. Thats the smart thing to do. To do other wise is just pure stupidity on your part, no wonder you failed to see benefits.
    No, see the thing is i knew it was slow from *profiling* the code. Not by looking at a bunch of letters in a text file. When 20-30% of my time is spent iterating through a 6000 item bit-array you know it's time to optimise. Unfortunately to optimise i needed direct access to the internal int[]. As access to the array is not given to me through the built-in class, i rolled my own. I could do all this without seeing one bit of source code for the built-in bit array class. With direct access to that array i could increase performance by up to 30x for my particular corner case.

    In another application which didn't make such heavy use of the BitArray class, would i bother rolling my own? No! Why? Because it'd be a complete waste of time. Would i reuse my new faster implementation in another application? No. Why? Because the changes i've made complicate the use of the BitArray class and the benefits for other applications wouldn't justify the extra complication.
    Electronic engineer, I laugh at you. I'm a Computer and Electronic engineer, I know the general level of understanding pure Elec engineers students have of programming, it isn't much. I've never met one that could write a multi read single write driver any way, or a MESI cache manager
    Hi, I'm Alan. I'm an electronic engineer. It's nice to meet you.

    If you want to compare e-penises (e-penii?), we'll take that off-thread.

    EDIT: Actually, might as well say it... I was offered an internship at Novell to work on Mono for the summer. It's a pure coding job. I wonder what might have made them offer that to me, obviously it must have been my stunning ineptitude at coding.

    EPENIS++;


  • Advertisement
  • Closed Accounts Posts: 17,163 ✭✭✭✭Boston


    Erm, i did mention that i coded in a managed language, didn't i? A managed language by definition is one where all memory is managed for me. So yes, it would've been the same if i wrote it in horrible bloaty java. I wouldn't have changed my coding style or use of objects one bit. It just so happened that i chose to code in horrible bloaty C# with it's horrible bloaty garbage collection to implement my horrible bloaty code.


    No, see the thing is i knew it was slow from *profiling* the code. Not by looking at a bunch of letters in a text file. When 20-30% of my time is spent iterating through a 6000 item bit-array you know it's time to optimise. Unfortunately to optimise i needed direct access to the internal int[]. As access to the array is not given to me through the built-in class, i rolled my own. I could do all this without seeing one bit of source code for the built-in bit array class. With direct access to that array i could increase performance by up to 30x for my particular corner case.

    In another application which didn't make such heavy use of the BitArray class, would i bother rolling my own? No! Why? Because it'd be a complete waste of time. Would i reuse my new faster implementation in another application? No. Why? Because the changes i've made complicate the use of the BitArray class and the benefits for other applications wouldn't justify the extra complication.


    Hi, I'm Alan. I'm an electronic engineer. It's nice to meet you.

    If you want to compare e-penises (e-penii?), we'll take that off-thread.

    EDIT: Actually, might as well say it... I was offered an internship at Novell to work on Mono for the summer. It's a pure coding job. I wonder what might have made them offer that to me, obviously it must have been my stunning ineptitude at coding.

    EPENIS++;

    I have a Degree and I know how to do direct memory management.
    EPENIS*(1/0)

    You realise I'm trolling at this stage. I can list five people who have posted on this thread and have far more experience then me.


  • Registered Users, Registered Users 2 Posts: 14,761 ✭✭✭✭Winters


    I did a bit of ASP a good few years back, and although it did the job I much prefer PHP. I think one of the fantastic things that makes PHP an easy language to learn is php.net, it really is a bible for coding and has examples and helpful user tips for every possibly function there is.

    When I was doing ASP there was not the same community support that you see with PHP/Open Source App's.

    I have yet to look into ASP.net as it is suppose to be a large improvement over ASP.


  • Registered Users, Registered Users 2 Posts: 2,931 ✭✭✭Ginger


    ASP.NET shares really only the name with ASP .. its a completely different animal.. Whereas ASP was inline .NET moves it into codebehind files and a lot of the stuff that was problematic in ASP is a piece of cake in .NET and you can do it in a couple of languages..

    The ASPFreeForAll lists were great, I found a huge community around ASP (back in 97) and that helped me loads.. Still plenty of resources out there as well.

    Horses for courses at the end of the day .. (catchphrase city today!)


Advertisement