Entries:
Comments:
Discussions:

Loading user information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading user information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

JohnLudlow

JohnLudlow JohnLudlow

Niner since 2011

  • Developer Productivity in VS 2015 and VS 15

    https://en.wikipedia.org/wiki/Microsoft_Visual_Studio#History

    You skipped v13 because superstition, I think.

  • Windows Command Line Improvements

    @Ryan:The one cmd standard to rule them all? https://xkcd.com/927/

    Just replace the word "standard" with "command line".

    My guide to Windows cmd lines:

    bash: For Linux application support.

    PowerShell / PowerShell ISE: The Command Line(tm)

    cmd : the zombie we all hope will eventually die.

     

     

     

  • Learn Roslyn Now - E05 - Semantic Model and Symbols

    It would be nice to see someone show a (probably multi-part) tutorial for building a meaningful refactoring.

    For example, I would like to see a tutorial on generating an interface or a wrapper class using Roslyn

  • Defrag Tools #148 - Windows Installer - ORCA

    @SeanMc:

    Yes. How you'd do this, and how easy it is, depends on the technology. If the install was created with WiX and is a burn bundle, you can use dark to extract the MSI. Some installs have a command line parameter which extracts the files locally. 

    Most installs are in fact some type of archive with a wrapper, so something like 7z or IZArc can extract the resources, though it can take some investigation to figure out which is the MSI.

    BTW, there is another tool that does the same thing as Orca: http://www.instedit.com/, but has some better capabilities and a more up to date UI. The free version is worth a look (not tried the paid version)

  • Introduction to PowerShell 5

    What version of Windows are you using that you can't install this? I think it's available down to Windows 7.

  • Defrag Tools #147 - Dependency Walker

    I've had to use Dependency Walker quite a lot to diagnose installs.

    It's worth mentioning a few of the gotchas like making sure you match the architecture of Dependency Walker with the architecture of the PE you are analyzing, or that WinSxS typically throws lots of false positives into the list results.

  • Defrag Tools #146 - WinDiff

    I've found the tool in VS 2013 has the tearing problem, so I use KDiff3 (http://kdiff3.sourceforge.net/)

    It also has the capability to do 3-way merging and to copy changes from one side to the other.

  • Welcome/Introduction and Doing Data Science with FsLab

    @erbalrajs: +1

    A demonstration of why F# is impressive loses a lot of its power if the people watching the video can't read the code.

  • Looking Ahead to C# 7 with Mads Torgersen

    @MadsTorgersen:Right! Forgot to raise that (you even mentioned async not supporting out parameters in the video).

    @aarondandy: If we forget backward compatibility for a second, defaulting to non-nullable for ref types is IMHO the right choice (with some sort of modifier like the ? suffix for switching on nullability) when you need it. It'd be nice to get to a point where I don't have to remember to put the ! on everything, because you just know I'll forget. It'd be nice if getting there didn't require a whole new language.

    The way to get there without a whole new language (which has probably been suggested in the discussions) is probably through some type of compile-time option. Mads talked about some sort of warning (which will often be ignored) or Roslyn checker (a la Dustin's C# Essentials). I think a code analysis rule (which can be made to trigger compiler warnings, errors, or just be ignored, on a project-by-project basis) probably gives the right semantics.

     

  • Looking Ahead to C# 7 with Mads Torgersen

    The reason I like tuples is for stuff that might fail.

    Let's suppose that you have a method which connects to a service of some sort, and can either succeed and bring back data, or fail and bring back an error. How can we represent that in C# today? I can think of 3 ways, all bad:

    1. Throw an exception, which is bad because it goes against the idea that exceptions are for exceptional circumstances.
    2. Return a value which indicates the status of the method (a la DateTime.TryParse(string input, out DateTime result)), and use an out parameters, which is bad because out parameters are ugliest monstrosity ever.
    3. Put a status property on the object which is returned (a la WebClient.GetResponse(....)) which is bad because the status of the request becomes conflated with the state of the object.

    Compare any of these with something like (excuse the psuedo-ish code)

     

       (Data d, Status s) GetDataFromService(....)
     
     
    // called like so
       (Data d, Status s) = GetDataFromService(....)
    
       if (s.Ok)
    
       {
    
           ProcessData(d)
    
       }

See more comments…