VB.NET and C# in same web app project

Ro87

Well-Known Member
Joined
Oct 22, 2009
Messages
133
Reaction score
0
Hi Guys,

I need to find out from the guys that have experience with Visual Studio coding whether a web app can be written using both of these languages.

We have two guys at work, one skilled on VB.NET and one on C#. I was wondering how difficult it would be to get them to work on the same project but code different parts of the app.

They will be the only two guys working on it and it will be a web app with database connectivity.

Thanks
 
It shouldn't be a problem as long as they don't have to work on each other's code.
 
I'm sorry. Please forgive my ignorance in etiquette; but if you don't know the difference it also means you don't know anything about web security and you probably shouldn't be coding in either.

I know this is harsh - and it's not often I respond this way - but you; dear Ro87 seem very "young". Not saying you cannot become brilliant - sure you can. Just please, please be very careful while you learn; because it can cost others dearly if you don't.
 
@any14
Huh?

Although in practice you probably could, I wouldnt from a maintenance point of view. Imagine having one website in two different languages! Just sounds like a maintenance headache. Really, for the one to learn the other language is not a big deal. Tell them to decide on one language and stick with it. Personally I would pick C#, because I loathe and detest basic, but its up to your devs.
 
Thanks a lot for the feedback guys.
I needed to know whether it is common practice and if it is advisable to do so.
We will spend some time and try it with both languages and if it proves too difficult we will use just one of them.

@any14 I am not doing any coding on this project but I think I am quite brilliant already.
 
@any14
Huh?

Although in practice you probably could, I wouldnt from a maintenance point of view. Imagine having one website in two different languages! Just sounds like a maintenance headache. Really, for the one to learn the other language is not a big deal. Tell them to decide on one language and stick with it. Personally I would pick C#, because I loathe and detest basic, but its up to your devs.

You are so right bro. 40 years ago I started with all there was: Assembler.. on the SCAPM (you many need to look it up :). Over the years migrated to Turbo Pascal, then Delphi then K&R c and then finally - in my retirement years - to "the" most faithful of all the languages; Larry Wall's: Perl. cPanel and so many other serious apps are written in it. Oh what a lovely language it is. All the richness of c, bash, sh, awk ... and most notably, none of the crap of PHP :D (Once again, I must apologize for my lack of tact, but PHP is "the hackers" language: a bastardized version of code and HTML, re-compiles of Apache each time a new function are be added, and, most conspicuous of all, the lack of *any* supervision of the 14-year-old's who write the plugins for Wordpress, Joomla, Drupal etc.)

Sorry. Rant over :)
 
@any14 I am not doing any coding on this project but I think I am quite brilliant already.

My 29 year old son with an IQ of 170 and the lead SW developer of a major player (a company everyone here knows of) did too. Sorry friend, but I've been in this game probably longer than you have been alive :D (No disrespect, just do not overestimate yourself).
 
You are so right bro. 40 years ago I started with all there was: Assembler.. on the SCAPM (you many need to look it up :). Over the years migrated to Turbo Pascal, then Delphi then K&R c and then finally - in my retirement years - to "the" most faithful of all the languages; Larry Wall's: Perl. cPanel and so many other serious apps are written in it. Oh what a lovely language it is. All the richness of c, bash, sh, awk ... and most notably, none of the crap of PHP :D (Once again, I must apologize for my lack of tact, but PHP is "the hackers" language: a bastardized version of code and HTML, re-compiles of Apache each time a new function are be added, and, most conspicuous of all, the lack of *any* supervision of the 14-year-old's who write the plugins for Wordpress, Joomla, Drupal etc.)

Sorry. Rant over :)

Well good for you. I find it interesting that you put so much emphasis on the languages, as the language/platform your working with is really just a means to and end. The industry and trade today is so far removed from where it was 10 years ago (let alone 40) that any language you learned before that would not count for much. Coding is the easy part of development.

@Ro87 You can do it, but I would strongly advise against it. Rather get both on C# (it's really not that hard if he is worth his salt). You will be left with a much more maintainable site.
 
This is a strange thread. Maybe I just need sleep.

Yes you can have vb.net and c# in the same solution. I have had this in previous projects where there were some legacy interfaces that were used. Later I just converted everything to c#. It made maintenance easier. If you're starting a new project I wouldn't recommend doing it. Rather get the vb.net guy skilled up on c#. If he is good, it won't take long.

Saying that, I also have this in a current project where I have c# along with c++ because the c++ solution needs to be targeted for ARM processors. Its a very specific need, so I can live with it. :)
 
After more research and after reading you guys' valuable opinions regarding maintenance of the code, we are going to do the whole project in VB.NET.

Collective knowledge of VB is better than C# which should lead to the project being completed better and faster.

Thanks again for your feedback guys.
 
This is a strange thread. Maybe I just need sleep.

Yes you can have vb.net and c# in the same solution. I have had this in previous projects where there were some legacy interfaces that were used. Later I just converted everything to c#. It made maintenance easier. If you're starting a new project I wouldn't recommend doing it. Rather get the vb.net guy skilled up on c#. If he is good, it won't take long.

Saying that, I also have this in a current project where I have c# along with c++ because the c++ solution needs to be targeted for ARM processors. Its a very specific need, so I can live with it. :)

This is the most complete answer in this thread and you didn't even have to take your d&ck out.

Technically, the reason for this is that the .NET languages are all compiled into Common Intermediate Language which is then interpreted by the runtime. This means all their managed lanuages can work nicely together on the bit level.

Obviously you cant mix the languages as each project translates to an assembly.

In the real world you will most likely have a multitude of languages (and technologies) contributing towards making a "project". You could, for example, have the VB guy create DLLs (or services) which do backend type operations and have the C# guy use these in the front end web site.
 
Thanks a lot for the feedback guys.
I needed to know whether it is common practice and if it is advisable to do so.
We will spend some time and try it with both languages and if it proves too difficult we will use just one of them.

@any14 I am not doing any coding on this project but I think I am quite brilliant already.

Not common and not advisable, but doable.

Good luck. Lol.
 
it can be done but in the long run stick to one lang, convert the VB to C# once the proj is fin and
have you C guy do maint :}
 
After more research and after reading you guys' valuable opinions regarding maintenance of the code, we are going to do the whole project in VB.NET.

Collective knowledge of VB is better than C# which should lead to the project being completed better and faster.

Thanks again for your feedback guys.

Sigh .... Nooooooooo! C# facepalm!
 
Top
Sign up to the MyBroadband newsletter
X