VB.Net and C# are arguably becomming more and more different over time (Will the idea of a '.Net developer' soon die?[^]. In my opinion, each language has their own unique features that allow you to solve problems in different ways programmatically. One language might have a particular feature that will allow you to solve a problem in a more elegant way, or in a way that requires less time. However, I'd argue that for many projects the differences are insignificant. In terms of meeting a user's requirements or coding out an object model from a class diagram, there's nothing VB.Net does that C# can't, and vice-versa. In this case, the decision might have more to do with developer skills and which language the developer(s) is(are) more comfortable with. Michael Hodnick www.kindohm.com
Mike Hodnick
Posts
-
VB vs. C# -
Petrol pricingFossil fuels are so five minutes ago. Michael Hodnick www.kindohm.com
-
UPS Delivery TimeUPS is a 24-hour a day operation, so I wouldn't be suprised if your package actually got "scanned" in the wee-hours of the morning. Thats when their loading operations occur. Michael Hodnick www.kindohm.com
-
Favorite VS.NET text editor colorstext BG: 40 40 40 keywords: 100 205 255 (bold) comments: 140 242 148 strings: 255 98 98 I could go on with CSS selectors, HTML and XML elements/attributes/delimiters, but there's just too much... Michael Hodnick www.kindohm.com
-
Real Jurassic Park on the way?Yeah. I've got some Kleenex brand tissue in my closet and I bought it over a year ago - and it's starting to go bad already. Michael Hodnick www.kindohm.com
-
Reminder: Think before you postWell duh!! (I voted you a 5). :-D Some people are very careless with their internet presence. I don't understand. Michael Hodnick www.kindohm.com
-
WindowsPrincipal in non-AD environmentDoes WindowsPrincipal or WindowsIdentity behave differently depending on whether the code is running in an Active Directory environment or a non-Active Directory environment? e.g. is a WindowsPrincipal always a WindowsPrincipal in any Windows environment? Michael Hodnick www.kindohm.com
-
help with XPath expressionHere is my document:
<data> <meetings> <meeting id="900" title="Meeting Title" date="1/1/2005" location="Main Office"> <attendee personID="100" /> <attendee personID="101" /> </meeting> </meetings> <people> <person id="100" firstname="John" lastname="Doe" /> <person id="101" firstname="Jane" lastname="Smith" /> <person id="102" firstname="Jack" lastname="Williams" /> </people> </data>
I want to be able to display the meeting info, then display a table of meeting attendees. When displaying attendees, I want to match their related person info in a different node in the document. e.g. the desired output for the single meeting above would be: Meeting Title, Main Office, 1/1/2005 John Doe Jane Smith Here is how I'm approaching it:<xsl:template match="/data/meetings/meeting"> <xsl:for-each select="attendee"> <p> <xsl:value-of select="/data/people/person[@id=@personID]/@firstname" /> <xsl:value-of select="/data/people/person[@id=@personID]/@lastname" /> </p> </xsl:for-each> </xsl:template>
The stylesheet loads fine, but there is no output for each person. If I hard-code the @personID value in the query I'm using to get to the specific person, then it works fine. Where am I going wrong? Michael Hodnick www.kindohm.com -
.Net Mailing ListsErm, not really. Mailing lists are so five minutes ago. :-D Seriously, I think things like codeproject.com, MSDN, and Google are your best bets for resources. Michael Hodnick www.kindohm.com
-
If You Harbor Terrorists, You Are a TerroristA terrorist is defined by your point of view. American military are terrorists to the Taliban, correct? So by that rationale America is harboring thousands of terrorists. Of course that's silly if you don't support the Taliban - THEY are the terrorists. Back to my point: from America's political point of view, would assasinating Castro be a terrorist act? Michael Hodnick www.kindohm.com blogs.kindohm.com
-
using xslt params to search for elementsThat did the trick. Thanks for the w3c link and the example. Michael Hodnick www.kindohm.com blogs.kindohm.com
-
using xslt params to search for elementsI've also tried what you are suggesting, but still receive the following error:
'//folder[@id=$folderID]' is an invalid XPath expression. ---> System.Xml.XPath.XPathException: //folder[@id=$folderID] is an invalid key pattern. It either has a variable reference or key function.
Michael Hodnick www.kindohm.com blogs.kindohm.com -
using xslt params to search for elementsI'd like to pass a parameter into an XSLT to search for a specific element within an XML document. My document has this form: I want to be able to pass in a parameter into my XSLT and search for a particular folder - let's say id="4". This is how I've been approaching it: But I get this error: System.Xml.Xsl.XsltException: '/library//folder[@id=$folderID]' is an invalid XPath expression. ---> System.Xml.XPath.XPathException: /library//folder[@id=$folderID] is an invalid key pattern. It either has a variable reference or key function. What might be a better or more correct way to approach this? Michael Hodnick
-
VB6...Would suddenly switching technologies in the middle of app development be a good idea? Perhaps in your case it could fly... I don't know the app, of course, but does it have the infrastructure to support a .Net app? e.g. the client machines need the .Net framework, etc. [EDIT]Ahh... after reading the thread again I think what you were getting at is only being able to open a VB6 project in the .Net IDE - not convert to the app to .Net. So disregard my first paragraph.[/EDIT] Why convert the app to C? If the client is paying for the time to convert the app, did they have a say in that decision? Michael Hodnick www.kindohm.com blogs.kindohm.com
-
system designSounds like you will be able to define the requirements as you please then... I personally have never designed or developed a concert ticket reservation system. I'd start by putting together requirements based on this information:
- What is the audience? Would the system be used by the general public or by ticket reservation staff?
- What technology limitations are there? Can any development platform be used (e.g. Windows, Linux, .Net, Java), or are options limited?
- How will the system handle venues/concert locations?
- What types of seating arrangements will venues have (e.g. general admission, reserved, sections, etc)
- How would reservation transactions work? Would special business rules need to be established (probably)? For example, what happens when two users try to reserve the same seats at a concert? Would the system need to prevent that?
- Will the system include a way to pay for tickets? How will the payment transaction be handled?
- Will the system need to restrict access to certain features or information to certain users?
- How will new events and venues be entered into the system?
- How will ticket prices be established and/or entered?
- Will the system need to be extensible? Will other developers need to use a system API to add custom features later?
- This is just the tip of the iceberg... there are many more questions to ask and answer
The design really depends on the answers to those questions. For a start, create objects and methods that are used to meet requirements. Then, refactor as you go and re-use objects and methods for other requirements. e.g. you may have a Venue class that is used to create, update, or delete venues, but also used to read venue information for a ticket reservation transaction. Michael Hodnick www.kindohm.com blogs.kindohm.com
-
system designDo you have any requirements for this project? The requirements will really drive your design. Not every ticket reservation system in the world works the same, and they all likely have very different designs. Whoever is playing the roles of analyst and designer in your project will be able to answer those questions. Michael Hodnick www.kindohm.com blogs.kindohm.com
-
Second Hand ComputerI've always wanted to try second hand computering. I've never saled before either. Michael Hodnick www.kindohm.com blogs.kindohm.com
-
User control viewstateWhat would happen if the second user control was on a page but the first one was not? You'd have a problem. I'd suggest designing the controls such that they don't depend on the existence of other specific controls on the page. Now in your app, that may not ever happen, but you never know... As a result, you'd need the second control to get the value differently. Some ideas have already been mentioned (e.g. use Session state). Or, the page the control is on could set the value too. Michael Hodnick www.kindohm.com blogs.kindohm.com
-
Assembly & SecurityWhat is the exception that is thrown? If it is not a security exception, it may not be a security issue. Another place to start is to perform a search for your exception type on Google or MSDN. Michael Hodnick www.kindohm.com blogs.kindohm.com
-
Big drop down listsThanks everyone for all of the ideas, suggestions, and links. ------------------------------------------ - Mike "No human being would stack books like that." - Dr. Venkman