Better Python Integration in Windows: Shebangs and Version Selectors

I’ve written several times on efforts to make Python better on Windows. I also have an outstanding request to the Windows 10 team to get Python built directly into Windows 10 (please upvote it!). In this post, I’ll show you some very simple techniques to put Python on Windows relatively on par with Python on OS X and Linux.

On OS X and Linux, we can use a special kind of comment at the top of our script called a shebang.

#!/usr/bin/env python3
# normal python code here...

Continue reading

python vs. swift

Comparison of Python and Apple’s Swift Programming Language Syntax

python vs. swiftAs a Python and C# developer, I have been intrigued ever since Apple announced the Swift programming language to cheering crowds at WWDC 2014.

This post will explore the syntax of Python 3 vs Swift. I was inspired by Chris Pietschmann’s post Basic Comparison of C# and Apple Swift Programming Language Syntax for C# and Swift. So here is the Python version.

Continue reading

Reblogged: New webcasts from DevelopMentor: MongoDB, iOS, and Bootstrap

Reblogged from DevelopMentor.

We are excited to announce three upcoming webcasts at DevelopMentor in November:

     webcast-mark-smith-iOS-and-dotnet-Xamarin webcast-michael-kennedy-bootstrap-beautiful-websites

Register for these now:

Getting started with MongoDB and NoSQL in .NET and C#
y Pierre Nallet

The world of data offers new choices and MongoDB is the most popular alternative to SQL databases today. In this one hour webinar, we’ll look at the reasons developers turn to NoSql databases and what makes MongoDB special. Then we’ll look at how to manipulate MongoDB data from C# efficiently and safely by leveraging Linq.

 Building data-driven applications for iOS in C#
by Mark Smith

Creating a dynamic UI for data display and navigation takes time – in this 1 hour webinar, we’ll look at using C# and Xamarin.iOS to pull data from the web and display it in a quick, easy fashion in table views using the cool services of DialogViewController.  With this technique, you can quickly build data-driven applications to display almost any form of data and be positioned to port that code to other platforms like Windows Phone and Android easily.

Building beautiful websites with Bootstrap: A case study
y Michael Kennedy

Bootstrap has literally changed the game when it comes to web design. This is especially true for developers who have traditionally struggled to build beautiful and engaging sites. With Bootstrap, developers can now start from a good design and evolved. This webcast look at how we at DevelopMentor have used bootstrap to completely redesign our website. We’ll take you through a quick introduction to bootstrap and then look at the various ways we have made use of it’s simple and productive design foundation.

Recorded webcasts
We have also published about 50 hours of free webcasts at http://www.develop.com/webcasts. Come check them out!

New online course: Source Control with TFS Version Control

Michael Kennedy:

If you’re interested in TFS, we just released a great new online TFS course from DevelopMentor over at LearningLine. Here are the details.

Originally posted on LearningLine blog - online developer courses:

We’re excited to announce a new online course at LearningLine:

Source Control with TFS Version Control
by John Bowen

This course is a hands-on exploration of Team Foundation Server’s and Visual Studio’s source control system authored by the very talented John Bowen. Here are all the details:

Course Summary

Do you need to get up to speed on Team Foundation version control? Then the Source Control with TFS Version Control course is built for you! This course digs into all the details of using TFS source control. It covers all the basics: checkin, checkout, and changesets. Then you’ll dig into more advanced topics such as branching and merging, leveraging the TFS power tools, getting the most out of workspaces and more. The course also covers important changes introduced in Visual Studio / Team Foundation Server 2012.

Course Objectives

After completing this course, you should be proficient in the following:

  • Become…

View original 82 more words

Tips for optional parameters to ASP.NET MVC action methods

Here’s a quick ASP.NET MVC tip to help you be more productive and write cleaner code. We will see how to leverage C# 4’s optional and default parameters in our action methods for greatly simplifying our code while keeping it fully functional and error free.

Often you want to pass data to your controllers based on URL parameters. This can either be part of the URL itself in the case of route data or it can be part of the query string. In fact, this tip even works for input forms.

Let’s take a basic method which shows some census data, potentially filtered and sorted if that information is passed along, otherwise we’ll just show everything with a default sort.

value-types Continue reading