angiras
10-17-2003, 08:29 PM
amazing >>> compare (http://www.gotdotnet.com/team/compare/petshop.aspx)
|
||||
comparing Java and Netangiras 10-17-2003, 08:29 PM amazing >>> compare (http://www.gotdotnet.com/team/compare/petshop.aspx) Roy Sinclair 10-17-2003, 09:47 PM Old news. I think there may be another thread on it here somewhere. Still interesting information and the controversy around it is still broiling. whammy 10-18-2003, 02:59 AM Yeah, in my opinion it's a bastardized copy. What kills me are the little things: 1. The code generated for HTML pages (or the client-side code) isn't XHTML, HTML 4.01, or any kind of compliant - in order to make it so you have to create your own framework (this is after all of the .NET hype regarding XML!) - and you, angiras, have demonstrated that well in VB.Net, at least. 2. I have been helping other developers out that are learning .NET, and I haven't even had time to mess with it that much- so basically I'm helping people that have more familiarity with .NET than I do and getting their code to work! That says something for my logical abilities, but it doesn't say much for .NET. I have noticed that Microsoft still uses VB commenting (replace a double quote with another) in C#, when they should be using a backslash (like any other C-type language). It's little things like that that just tick me off. Microsoft, are you going to create a real language that has C-type syntax, or totally bastardize it by using crappy VB code in C#? Not to mention they made using regular expression matching, replacing, etc. fairly difficult (when it should be easy - look at Java or JavaScript (even classic ASP, as bad as I hate to admit it)!). I still got it to work (in one instance!) but I think the effort required was absolutely silly. I think the learning curve is totally off because they are still thinking up proprietary and somewhat complicated ways to use things like regular expression matching, replacing, etc. that should be simple - although I will master it, I still think it's silly. A co-worker that happens to code exclusively in .NET told me today he could never get C# to remember a pattern match using regular expressions to work at all. I'm going to devote some time to figuring out what's wrong with the Microsoft implementation one of these days, but IMHO it's silly to have to figure that out. whammy 10-18-2003, 03:25 AM LOL, I just realized you are touting some of the advantages of .NET - which is cool considering I'm learning it. I guess it's just great if you know how to hack it to be compliant, and you've already mastered all of the idiosyncracies I've mentioned above. Which from what I've researched, noone really has - yet. ;) angiras 10-18-2003, 03:48 AM it is good that VB <> C# , for myself I really prefer VB NET ; no case sensitive Select case in sted of swich break and also this problem with /\/ ....replacing all the time but all thoses considerations are really personal, only a question of use and taste If you want to give me an exemple of what is wrong with regular expression, and if i can Help Whammy I was also angry and nervous tge firsts months with .NET !! if you start really to build your own framework and use inheritance you will become crazy ! such a fun ! in the moment I am rewritting my textBoxes that they fit exactly my needs I cut in two part it is a bit long next >>>> angiras 10-18-2003, 03:57 AM a VERY simple exemple of textBox returning a string ready for SQL, you just add a property --------------------------------------------------------- Namespace Angiras.FrameWork.UI.WebControls Public Class TextBox : Inherits System.Web.UI.WebControls.TextBox Public Sub New() MyBase.New() MyBase.CssClass = "LargeText" End Sub Public Sub New(ByVal initStyle As String) Me.New() MyBase.CssClass = initStyle End Sub Public Overridable ReadOnly Property TextSql() As String Get If MyBase.Text.Equals("") OrElse IsNothing(MyBase.Text) Then Return "NULL" Else Return MyBase.Text.Replace("'", "''") End If End Get End Property End Class End Namespace ------------------ Overridable means that you inherits this class and do the same for dates or anything then to use it you just add your textBoxes to your page Protected myTbName as new Angiras.FrameWork.UI.WebControls.TextBox and when you get your value for the database "name" = myTbName.TextSql I did one for date the .Text returns the date in the local culture fornat the .TextSql returns the date in universal format YYYY-MM-dd whammy 10-18-2003, 04:44 PM Cool. I'm gonna mess around with that. :D |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum