Posts: 7392
Threads: 53
Joined: January 15, 2015
Reputation:
88
RE: .NET vs JAVA
March 15, 2015 at 7:06 pm
(This post was last modified: March 15, 2015 at 7:09 pm by I_am_not_mafia.)
(March 15, 2015 at 3:31 am)bennyboy Wrote: The Visual Studio designer is also very good, IMO. I can design a form, pop buttons and other controls on it, and make a program that actually does something useful in just a few minutes.
I definitely agree with that. I hate using GUI designers and always hand code stuff. But the Visual Source GUI designer for C# was actually quite pleasant to use.
Not that I have too much experience, only Java Swing and some Qt. It made me think that maybe I should give the Qt designer a second try.
(March 15, 2015 at 6:57 pm)Marsellus Wallace Wrote: tried Qt once, it was terrible for me, I get that it offers portability and you don't have to deal with the API and all that, but the way of coding and calling methods(using signals and slots) is so unconventional and i'm not used to.
I didn't get on too well with it either. I put that down to the really shit book that I bought which didn't give whole examples without interspersing it with text.
The idea of signals and slots never really gelled with me either.
Posts: 31149
Threads: 204
Joined: July 19, 2011
Reputation:
141
RE: .NET vs JAVA
March 16, 2015 at 12:38 am
(March 15, 2015 at 6:41 pm)bennyboy Wrote: (March 15, 2015 at 10:52 am)IATIA Wrote: C# just makes large memory consuming programs, but it does run quick and it also is multi-platform. This is true. I think it's how the garbage-handling works. But as a programmer, it's nice not to have to allocate your own memory. How many times in C have I sprung a leak because I had a stupid 1-off error in setting up an array or something like that? Hint: it's non-zero.
Meh. Design your shit so it doesn't leak.
Yeah, I admit it can be a pain in the ass in all honesty - but it all has tradeoffs. Last thing I want happening is garbage collection during a timing-critical piece of code. There's no one correct tool. Use the tool that's best for the task.
Posts: 9147
Threads: 83
Joined: May 22, 2013
Reputation:
45
RE: .NET vs JAVA
March 16, 2015 at 7:04 am
(March 16, 2015 at 12:38 am)Cthulhu Dreaming Wrote: (March 15, 2015 at 6:41 pm)bennyboy Wrote: This is true. I think it's how the garbage-handling works. But as a programmer, it's nice not to have to allocate your own memory. How many times in C have I sprung a leak because I had a stupid 1-off error in setting up an array or something like that? Hint: it's non-zero.
Meh. Design your shit so it doesn't leak.
Yeah, I admit it can be a pain in the ass in all honesty - but it all has tradeoffs. Last thing I want happening is garbage collection during a timing-critical piece of code. There's no one correct tool. Use the tool that's best for the task. Yeah. The best response I can give is that any programmer should have a working familiarity with as many of the more popular languages and environments as possible. It's really not that hard to learn the minor syntax differences between C# and Java, and the rest is mainly just googling the different libraries to see what they can do.
Posts: 7677
Threads: 635
Joined: January 19, 2013
Reputation:
30
RE: .NET vs JAVA
March 25, 2015 at 5:25 pm
(This post was last modified: March 25, 2015 at 5:26 pm by WinterHold.)
Marsellus Wallace, actually after finishing a whole project with .net ...my vote goes to Java  it's so much better TBH, lighter, open-source, tutorials everywhere, unlike the closed shut .net, where you can literally get stuck for days looking for a simple answer.
Posts: 9147
Threads: 83
Joined: May 22, 2013
Reputation:
45
RE: .NET vs JAVA
March 25, 2015 at 7:12 pm
(This post was last modified: March 25, 2015 at 7:34 pm by bennyboy.)
(March 25, 2015 at 5:25 pm)AtlasS2 Wrote: Marsellus Wallace, actually after finishing a whole project with .net ...my vote goes to Java it's so much better TBH, lighter, open-source, tutorials everywhere, unlike the closed shut .net, where you can literally get stuck for days looking for a simple answer.
Really?
What did you ever need to know about .NET that wasn't immediately solved by going to the mothership at https://msdn.microsoft.com, by googling, by watching a youtube tutorial, or by posting in a forum? I mean,
https://msdn.microsoft.com/en-us/library...s.71).aspx plus
https://msdn.microsoft.com/en-us/library....110).aspx , no?
I'm curious-- what info was it that you had difficulty getting access to? What kind of project were you trying to do?
Posts: 7677
Threads: 635
Joined: January 19, 2013
Reputation:
30
RE: .NET vs JAVA
March 26, 2015 at 5:37 am
(This post was last modified: March 26, 2015 at 5:38 am by WinterHold.)
(March 25, 2015 at 7:12 pm)bennyboy Wrote: Really?
What did you ever need to know about .NET that wasn't immediately solved by going to the mothership at https://msdn.microsoft.com, by googling, by watching a youtube tutorial, or by posting in a forum? I mean,
https://msdn.microsoft.com/en-us/library...s.71).aspx plus
https://msdn.microsoft.com/en-us/library....110).aspx , no?
I'm curious-- what info was it that you had difficulty getting access to? What kind of project were you trying to do?
I faced a problem in passing a complex dynamic variable to my view that is shaped in the Controller first, I wanted it to be passed as a model though to avoid ViewBag. The tutorials were big, mostly providing one static path to learn the method, leaving no room for creativity.
The second problem, was migrating my database to the domain ; which forced me to ask a question in stackoverflow, which fixed my problem in mere seconds :
http://stackoverflow.com/questions/29247...9#29247959
The problems I had with the official tutorials were the following :
1)They are time consuming
2)Their is a minimum number of sub-articles/tutorials that can give me a decisive, short answer for my problem.
3)I didn't always find what I'm looking for. Usually, other sites had that, not the "mothership".
Unlike working alongside java, where you can find the answer you seek in a short amount of time.
Don't misunderstand me, .NET is tough & powerful. Understanding its concepts is no problem and actually simple. But time is more important, and in that, java wins in my opinion.
Posts: 9147
Threads: 83
Joined: May 22, 2013
Reputation:
45
RE: .NET vs JAVA
March 26, 2015 at 8:12 am
oic you are talking about web development using MVC right? I've been stuck a couple of times in ASP, mostly because I wasn't fully comprehending how the page events were ordered, and how names were generated for Viewstate. I'm curious, though, what is specifically great about Java when it comes to things like migrating a database.
Posts: 7677
Threads: 635
Joined: January 19, 2013
Reputation:
30
RE: .NET vs JAVA
March 28, 2015 at 9:34 am
(This post was last modified: March 28, 2015 at 9:35 am by WinterHold.)
(March 26, 2015 at 8:12 am)bennyboy Wrote: oic you are talking about web development using MVC right? I've been stuck a couple of times in ASP, mostly because I wasn't fully comprehending how the page events were ordered, and how names were generated for Viewstate. I'm curious, though, what is specifically great about Java when it comes to things like migrating a database.
http://www.tutorialspoint.com/jdbc/jdbc-...ecords.htm
implicit insertion is one big difference between Java & ASP. The JDBC allows you in java, to insert tables & rows implicitly ; you can literally build your own agent for database access, easily & with simple syntax.
Say I have a database with 5 tables. Instead of creating a local database, then migrate it to the server, implicitly adding a dynamic peace of code that creates the content of the database once the code runs, is a very big advantage in my personal opinion.
Thus, I won't need other agents like the MS SQL SERVER Studio to act in between, outside the source code.
Or I might be not too informed, about a similar technology in ASP.NET
Posts: 9147
Threads: 83
Joined: May 22, 2013
Reputation:
45
RE: .NET vs JAVA
March 30, 2015 at 4:25 pm
(This post was last modified: March 30, 2015 at 4:29 pm by bennyboy.)
I quickly googled "implicit transaction" and I have to say I don't really understand what it is or why it represents a big advantage. So far as I can tell, the link you just gave just shows how to do a basic SQL transaction. "Implicit insert" seems to be about batching multiple SQL inserts into a single transaction, which you can see at
https://msdn.microsoft.com/en-us/library...ction.aspx
But this stuff about adding a "dynamic peace[sic] of code" doesn't seem to have anything to do with that. I'll resist the urge to say more, but right now it sounds like you are looking at the wrong features of Java in deciding what framework to use. A database is separate logic from your framework: SQL is SQL whether you're in Linux or Windows or Android, programming in C# or PHP.
Maybe I'm not getting what you're saying?
|