Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder
    Join Date
    Dec 2002
    Location
    France
    Posts
    522
    Thanks
    0
    Thanked 0 Times in 0 Posts

    comparing Java and Net

    amazing >>> compare

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Old news. I think there may be another thread on it here somewhere.

    Still interesting information and the controversy around it is still broiling.
    Last edited by Roy Sinclair; 10-17-2003 at 10:51 PM.
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Last edited by whammy; 10-18-2003 at 04:30 AM.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Last edited by whammy; 10-18-2003 at 04:33 AM.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #5
    Regular Coder
    Join Date
    Dec 2002
    Location
    France
    Posts
    522
    Thanks
    0
    Thanked 0 Times in 0 Posts

    fun

    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 >>>>
    Last edited by angiras; 10-18-2003 at 04:58 AM.

  • #6
    Regular Coder
    Join Date
    Dec 2002
    Location
    France
    Posts
    522
    Thanks
    0
    Thanked 0 Times in 0 Posts

    textBox

    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
    Last edited by angiras; 10-18-2003 at 05:01 AM.

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Cool. I'm gonna mess around with that.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)


  •  

    Posting Permissions

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