background preloader

C# Tutorials (C#)

C# Tutorials (C#)
The C# tutorials provide an overview of the basics of the language and identify important language features. Each tutorial includes one or more sample programs. The tutorials discuss the sample code plus provide additional background information. See Also

tiny code / minimalistic programming / yagni / kiss / dry NuGet Gallery | Home Top 10 Truly Bizarre Programming Languages Technology This is a list of some of the most bizarre programming languages you will ever see. These types of languages are usually called “Esoteric Programming Languages”. An esoteric programming language (sometimes shortened to esolang) is a computer programming language designed either as a test of the boundaries of programming language design, to experiment with weird ideas or simply as a joke, rather than for practical reasons. There is usually no intention of the language being adopted for real-world programming. Such languages are often popular among hackers and hobbyists. Usability is rarely a high priority for such languages; often quite the opposite. Many fascinating and unlikely languages have been developed, and there is a small but active Internet community of people creating, programming in and debating them. A “Hello World” program has traditionally been the first program most people learn in a language that is new to them. Pictured above is “Hello World” in Whitespace.

System.Xml Namespace () The System.Xml namespace provides standards-based support for processing XML. Supported standards Related namespaces The .NET Framework also provides other namespaces for XML-related operations. Processing XML asynchronously Differences from the W3C specs In two cases that involve constraints on model group schema components, the System.Xml namespace differs from the W3C recommendations. Consistency in element declarations: In some cases, when substitution groups are used, the System.Xml implementation does not satisfy the "Schema Component Constraint: Element Declarations Consistent," which is described in the Constraints on Model Group Schema Components section of the W3C spec. For example, the following schema includes elements that have the same name but different types in the same content model, and substitution groups are used. In this schema, type t3 contains a sequence of elements. Unique particle attribution: <e3><e2>1</e2><e2>2</e2></e3> becomes this: Security considerations Reference

How to market your app yourself and take it front page 30 May 2013 Last updated at 20:31 ET By Fiona Graham Technology of business reporter, BBC News Do it yourself: Having a PR firm on retainer can set you back upwards of £3,000 a month - unthinkable for the smallest start-ups. Don't panic. There's a lot you can do for yourself You've had an idea. During those long cold days spent at the allotment, tending your prize turnips, you considered how lonely the life of a turnip fancier can be. If only there was a way to meet like-minded souls, perhaps when you were out and about? And so is born your marvellous app idea. Fast forward several months and having found a root vegetable loving developer and designer at the annual TurnipCon, it's ready to ship. Well, almost. Shameless self-promotion The days when a nifty idea, a few good reviews and a pretty icon for the app store were all you needed to take your app to Angry Birds status are long gone. It's estimated that 56bn smartphone apps will be downloaded in 2013 . Don't panic. The perfect pitch

XML Processing The Extensible Markup Language (XML) is a markup language much like HTML or SGML. This is recommended by the World Wide Web Consortium and available as an open standard. The System.Xml namespace in the .Net Framework contains classes for processing XML documents. Following are some of the commonly used classes in the System.Xml namespace. XML Parser APIs The two most basic and broadly used APIs to XML data are the SAX and DOM interfaces. Simple API for XML (SAX) : Here, you register callbacks for events of interest and then let the parser proceed through the document. SAX obviously can't process information as fast as DOM can when working with large files. SAX is read-only, while DOM allows changes to the XML file. For all our XML code examples, let's use a simple XML file movies.xml as an input: <? Parsing XML with SAX API In SAX model, you use the XmlReader and XmlWriter classes to work with the XML data. Example 1 This example demonstrates reading XML data from the file movies.xml. Example 2

Squirrel - The Programming Language Build a Coded UI Test without a UI Map - InCycle Software So I ran into a customer recently that was getting pretty advanced with Coded UI and they were having trouble maintaining the UI Map technology as part of Visual Studio. One the things that I had noticed is that the UI Map does store lots of information including page names, URL's and many other things that are interesting but not needed. This technology is great for beginners that need to get started with the technology. So as I started thinking about it I was reflecting on some of the technologies that I have used before that included a way to search the DOM or Control Tree if you did not have an items mapped. Being a long time developer and avid Coded UI user I started thinking about how to solve this problem. As I found quickly there are many ways solve this problem including taking the generated code from UI Map and move it around. As I started to think about how to condense the code and quickly .Net Generics came to mind. Hope this helps someone else solve a very common problem.

Code Smart Not Hard - CodedUITests In one of my previous posts, I talked about Setting up a Build Server to run Coded UI Tests. In this post I am going to talk about creating a Coded UI Test and running it from Microsoft Test Manager. This completes the full testing story. Create Test Case First, create the Test Case in Microsoft Test Manager. Next, in MTM, go to the Test Tab and Run the test. Finish going through the test. Switch your hat to the Developer cap. Since we already have the action recording, choose the “Use an existing action recording.” Once you verify the test is passing in Visual Studio, you can associate the automated test back to the test case. Find the Test Case and choose Ok. Also the Automation Status has been changed to Automated. Creating the Test Environment Now that we have the test case automated, we need to configure the test environment before we can run it. Test Server First choose a machine that where the tests will run. First install the Test Controller. 1. 2. 3. Configure the Environment

Using CodedUI testautomation without UIMap files One of the things I hear a lot from developers working on test automation is that they dislike the way CodedUI tests in visual studio work with the UIMap files. I can understand that most developers will assume this is the required way of work, since it is strongly advertised when you create a new codedUI test project. I mean the first dialog they show is if you want to create tests based on existing action recording in MTM or record new actions with the UI test builder. In my opinion this dialog should have one other obvious option, that is Hand code the tests using the provided CodedUI object model. In this post I want to introduce you to the way I like to organize my CodedUI tests so I get a robust and maintainable set of test automation scripts. As an example I will take an ASP.NET MVC web application as the system under test. Page objects The way I like to create my tests is by applying the page object pattern that is commonly used in the UI test automation discipline. Shared Elements

Related: