View Full Version : comparing Java and Net
10-17-2003, 08:29 PM
amazing >>> compare (http://www.gotdotnet.com/team/compare/petshop.aspx)
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.
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#?
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.
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. ;)
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
10-18-2003, 03:57 AM
a VERY simple exemple of textBox returning a string ready for SQL, you just add a property
Public Class TextBox : Inherits System.Web.UI.WebControls.TextBox
Public Sub New()
MyBase.CssClass = "LargeText"
Public Sub New(ByVal initStyle As String)
MyBase.CssClass = initStyle
Public Overridable ReadOnly Property TextSql() As String
If MyBase.Text.Equals("") OrElse IsNothing(MyBase.Text) Then
Return MyBase.Text.Replace("'", "''")
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
10-18-2003, 04:44 PM
Cool. I'm gonna mess around with that. :D
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.