Is ASP.NET a good choice for small-medium websites?

Asp.Net is NOT Asp

ASP.NET is suitable for websites of any size. From static one-page sites to millons of pages generating millions of hits every day.

And the best thing is that it is the same basic principles which will scale all the way. And developer productivity scales as well. You can develop ASP.NET, HTML, CSS, JS as one person, or you can divide it up in a multi-role team. Thanks to features such as master pages, user controls, custom controls, 3rd party controls, themes and skinning, built-in localization, interceptable request pipeline etc etc.

Wait, doesn’t it involve ASP though?

No, asp.net shares with asp less than java shares with javascript. Different technologies and asp is dead for some years.

OK, you. Back to the dungeon. Who let you out anyway?

Ah okay. So are .asp or .aspx webpages built using asp or asp.net

And dungeon? More like paradise. PHP works wonders for and with Ruby and Perl, I dont think ill ever need or want ASP or aspx or asp.net :stuck_out_tongue:

Sorry for being ignorant, but those languages work perfectly for me and always have.

Meanwhile, back at the topic at hand …

</thread>

Simpler my… Have you ever tried to manage 100 servers at once? Let me tell you. There is nothing simple about the LAMP stack compared to Microsoft’s stack. Nothing.

And free is meaningless when it takes twice as long to manage. Time is money in my field. The longer it takes the less money there is to be made.

I was only meaning to compare the software, I have no desire to manage 1 server let alone 100.

I assume you’re again talking about maintaining servers?

I did say I was only stating my own preference, I find ASP.NET webforms to be a convoluted pain in the ass. PHP executes top to bottom and is great for simpletons like me.

The viewstate offends me.
The page life cycle offends me.
Abstracting the front-end offends me.
I don’t want to purchase a Microsoft product.

Web Forms are indeed a bit harder to grasp but asp.net Mvc is very simple :slight_smile: ANd just for the record: I coded both in php and asp.net (web forms and mvc) and it’s HORROR for me to touch php anytime it’s needed.

It’s true that you can write high quality code in php but it will take you at least +25% or even +50% more time than with asp.net to accomplish something. I’ve tried the major PHP IDEs and none are a match for VS 2010 (with resharper). On top of that the language itself makes you spend more time if you want to do thing properly.
Compare this


class MyCLass
{
    private $counter;

    function getCounter()
    {
      return $this->counter;
     }
}

to this


class MyClass
{
 public int Counter {get;private set;}
}

You type less with C#, you have Enums :slight_smile: and extension methods and if you’re working on a complex application and use the MVC pattern you’ll have code completion in the View.

Some people have the wrong impression that you only drag and drop in VS or it’s something of a design view in Dreamweaver which generates convoluted code. Proper code completion (fast and presenting only relevant documentation) will help you write code at least twice as fast than a simple code highlighting editor or a slow IDE.

To be fair, I used PHP for several years before my original freebsd server went kaput and was forced to make my workstation into a windows server, and there are some things about PHP that are actually easier than .NET. I’ve never really liked comparing them though as they were conceptually designed with different methodologies in mind, and subsequently do things differently. While true that c# has some nice things like auto-properties and generics, php has nice things too, like eval() and include(). Currently, they both have things like namespacing, reflection, and a vast array of built-in methods for IO, logging, email, and data access. They also both have good facilities for using libraries written in the opposing language. Honestly, I’ve never really understood all the hoopla on which is better than the other. Rather than pick one, learn both. My biggest client used linux machines, so guess what I used most of the time, despite my preference for c# on my personal projects?

I know that most of the readers of this forum are advanced users but as the owner/site manager for a small online store I found that our initial choice of an ASP.Net shopping cart package, while flexible and capability rich for the technically minded, proved overwhelming for me as I was taking time to figure out how to do things rather than what to do. If I’d known ASP.net already it wouldn’t have been a problem. But we recently switched to www.Shopify.com to try to simplify.

Jeff F

Yawn…Typical talking points from a Linsucks user. Keep drinking the Kool-Aid and using your Linsucks flavor-of-the-month. While I use the best IDE and Server on the planet, and you are stuck in the command-line…what is this 1985? I can finish a duplicate project 2x faster then you = more $$$, so continue your zzzzz crusade. LAMP is Lame.

[ot]

I was wondering when you might pop in and say hello.

You can finish it twice as fast? Nice one :tup:

Off now to fight in my zzzzzz crusade.

…Microsoft fanboys are the worst kind of fanboys.[/ot]

This point was worth replying to:

While I use the best IDE and Server on the planet

Visual Studio is best thing Microsoft has ever created, I agree.
I simply haven’t needed an ide for other frameworks/languages because they are simple enough to work without one.

Different people work differently have different needs. I don’t think that .NET is better that PHP or vice-versa. Furthermore, I find that while ASP was very easy to use, .NET is not.

I haven’t used their IDE (in a few years) so I will believe that they have the best IDE there can be.

Every programming language has its strong points and its weak points and .NET is not different to any other language.

Off Topic:

Wait, wait… afer reviewing the thread I just saw this… A Windows hosting that cost LESS than a PHP (I assume Linux) hosting? I’ve never found a company that charged less for hosting under Windows! This is the very first time! :smiley:

It depends on the host, for example I pay 4.95$ for shared windows hosting (because of a -50% promotion :D), but I know hosts who charge the same at normal price. I wouldn’t use them though…

However, windows hosting usually is more expensive (not MUCH but more) than linux. For me it’s worth it though, I can admin windows (I’m talking about VPS here :slight_smile: ) and RDBMS, Mail servers etc much easier and faster than CentOs (I’m not a fan of control panels) and the standard servers and I develop faster with .Net no matter it’s a simple or complex web application. Also, using the latest and greatest version of anything is a breeze as opposed to anything linux.

Time is more than money and I save time with .net and windows.

Now that’s a reasoning that I find perfectly acceptable and understandable. But I guess that it really depends on your expertise and what you feel comfortable with. That’s why I don’t dismiss other languages and other ways of working so quickly.

If I saw any drawback to .NET is that is extremely hard to find information about good coding practices and good examples so people can learn by themselves. There are tons of objects that you can use but most of the time you have to pay for them. Also good information about how to make the most of the resources.

It is relatively easy to find basic stuff but hard to go mid-advanced.

When you talk about PHP, it is much easier. I think that’s also something that you need to take into account. You don’t always have an expert to be able to help you.

ASP.net can be used for any kind of website. you’ll have many features in that and for developer it works great. As far as hosting is concern it works fine.

If I saw any drawback to .NET is that is extremely hard to find information about good coding practices and good examples so people can learn by themselves. There are tons of objects that you can use but most of the time you have to pay for them. Also good information about how to make the most of the resources.

I find it funny to read this, since I learn to write better code after I started to work with .net . And every pattern that works with java works with .net so you can leverage all the information from java.
There are plenty of libraries that have a price but there are so many that are free and open source. I think you are ‘forced’ to pay only for some exotic stuff or if you really don’t want to lose time coding yourself.

When you talk about PHP, it is much easier. I think that’s also something that you need to take into account. You don’t always have an expert to be able to help you.

Php makes so easy to write horrible code and in fact most of php code I’ve seen is a mess. Good code is self-explaining , I say you need more an expert for php to help you navigate the jungle than .net code. I know that plenty of .net code is as well horrible but at least the framework is well documented and VS does a good job at providing you with information.