Powershell and always use explicit

 

Let’s suppose you have a variable $x=”http://msprogrammer.serviciipeweb.ro/

In powershell the following are the same

$x

Write-Host $x

 

I want to make a function that returns a value . Let’s say

Function Add([string] $a, [string]$b)

{

#debug to see arguments

$a

$b

return $a + $b

}

 

If I call this function with

Add 10 17 # the syntax for calling powershell is WITHOUT comma – the comma indicates arry

it shows

10

17

27

However , if I wrote

$x = Add 10 17

it does not wrote

10

17

 

Do you know why ?

 

Answer in the first comment

No Comments

Friday links 121

  1. Martin Fowler on Characteristics of Microservices
  2. Top Trends in Business Intelligence and Analytics for 2015
  3. Top 10 Trends in Business Intelligence in 2015 | Tableau Software
  4. ElasticSearch use – 3S Wiki – Ubisoft Wiki
  5. SMS Sending Using ASP.NET
  6. Putin is trying to save Russia’s economy with one weird trick – The Washington Post
  7. 50 Numbers From 2014 That Reflect On The Times | David Stockman’s Contra Corner
  8. Type Scale – A Visual Calculator
  9. Grunt And Gulp Tasks For Performance Optimization | Yeoman
  10. Performance tooling today
  11. QrCode.Net – Home
  12. 8 Questions Every Candidate Should Ask In A Job Interview – Microsoft MVP Mentor Blog – Site Home – MSDN Blogs
  13. Finding your way in the ASP.NET Forums – Tips and Guidelines | The ASP.NET Forums
  14. C#er : IMage: The Top 5 Mistakes AngularJS Developers Make Part 4: Hacking the DOM
  15. C#er : IMage: The Top 5 Mistakes AngularJS Developers Make Part 1: Relying on $scope

No Comments

Friday links 120

  1. Angular-xeditable :: Edit in place for AngularJS
  2. New handy Visual Studio extensions
  3. The Software Package | WiX Tutorial
  4. Visual Studio & TFS 2013 – List of extensions and tools (Part 2)
  5. File Nesting extension
  6. AutoHistory extension
  7. Microsoft CodeLens Code Health Indicator extension
  8. AWS | edX
  9. Business Owners: What to do Before the End of the Year | Point Blank | Direct Capital
  10. This beer tells you how much to drink to boost your creativity
  11. ​The Ten Commandments Of PC Gaming
  12. What It Really Takes to be a Professional Programmer
  13. YouTube Downloader Using C# .NET – CodeProject
  14. Hosting and Consuming WCF Services

No Comments

Friday links 120

  1. Rename Visual Studio Window Title extension
  2. Silicon Valley’s Culture of Amorality – Water Will Find its Way | LinkedIn
  3. 6 Management Lessons That Everyone Should Know by TICKLD | Cathy Fairytale
  4. Apache Solr vs ElasticSearch – the Feature Smackdown!
  5. calibre – Help
  6. FiltDump (Windows)
  7. Supported data types (Azure Search)
  8. 15 3D printed things to be thankful for this Thanksgiving – TechRepublic- 15
  9. 3D printers print ten houses in 24 hours – YouTube
  10. Step by Step Guide to a Profitable Small Business Blog
  11. C# 6.0 Features
  12. New Features in C# 6 – The C# Team – Site Home – MSDN Blogs
  13. Using NRefactory for analyzing C# code – CodeProject
  14. GifCam | BahraniApps Blog
  15. icsharpcode/NRefactory

No Comments

Friday links 119

  1. This is why OneNote is awesome | Thomas Maurer
  2. Wyliodrin
  3. Zece nevoi umane de care educatia ar trebui sa tina seama – Opinii – HotNews.ro
  4. 7 Ways to Improve Your Relationships With Tough Clients
  5. What I’d Do Differently If I Was Learning To Code Today
  6. Codementor | Instant 1:1 Help from Expert Developers
  7. Clean Coder Blog
  8. Screaming Architecture | 8th Light
  9. Why is Estimating so Hard? | 8th Light
  10. D3.js Data Visualization Fundamentals – Pluralsight Training
No Comments

Friday links 118

  1. What’s New in C# 6 – Pluralsight Training
  2. SebbyLive – C# Aspect Oriented Programming: Creating an AOP Compiler with Roslyn
  3. scriptcs/scriptcs-samples
  4. RPX – Rugland Packer for (.Net) eXecutables – Home
  5. Video Usability
  6. User experience: A concept without consensus? Exploring practitioners’ perspectives through an international survey
  7. sawilde/opencover
  8. CodeSmith Tools: CodeSmith 2.6 Freeware
  9. EF6.1 Getting Key Properties for an Entity | RoMiller.com
  10. Reducing Code First Database Chatter | RoMiller.com
  11. ASP.NET MVC: Add HTML5 Microdata to your applications using Metadata Providers | Rui Jarimba
  12. Microdata – Dive Into HTML5
  13. Do you perform Information Architecture or a Data Architecture? – Inside Architecture – Site Home – MSDN Blogs
  14. Overview: Charting Libraries for F#
  15. Programing issues: Azure Batch Service – A job that runs an .exe application (part 2)

No Comments

Video Tutorials 5 minutes

Videos:

5Min Logging

5min Send emails and SMTP4Dev

5Min Memory Profiler ( User Object and/or memory leaks)

5min SFHB

5min – .TT files in Visual Studio

Playlist 5 Minutes .NET

No Comments

Friday links 117

  1. Selenium Downloads
  2. How to Be Efficient: Dan Ariely’s 6 New Secrets to Managing Your Time
  3. clumsy, an utility for simulating broken network for Windows Vista / Windows 7 and above
  4. In 2014, countries are still paying off debt from World War One – Quartz
  5. Explore space with these 14 apps – TechRepublic
  6. UCS Satellite Database | Union of Concerned Scientists
  7. SSW Rules & Standards
  8. 5 ways Windows secretly tracks your activities | News | TechRadar
  9. Time management software – ManicTime
  10. QuickGraph, Graph Data Structures And Algorithms for .NET – Source Code
  11. SQL Server Compact/SQLite Toolbox extension
  12. What’s New In C# 6.0 | Connect(); Microsoft Visual Studio vNext & Azure | Channel 9
  13. Improve Your Code Quality Using Live Code Analyzers | Connect(); Microsoft Visual Studio vNext & Azure | Channel 9
  14. Microsoft

No Comments

Friday links 116

  1. Templated Razor Delegates – You’ve Been Haacked
  2. Why your code is so hard to understand – Aesthetic IO
  3. IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication « Mike Volodarsky’s Blog Mike Volodarsky’s Blog
  4. Firefox Developer Edition — Mozilla
  5. ASP.NET Web API Integration Testing with One Line of Code | Kloud Blog
  6. Better support for paging with Table Storage in Azure Mobile Services .NET backend | Microsoft Azure Blog
  7. i heart intelligence Beat The System With This List Of 40 Free Educational Websites
  8. EF7 – What Does “Code First Only” Really Mean – ADO.NET Blog – Site Home – MSDN Blogs
  9. EF7 – v1 or v7? – ADO.NET Blog – Site Home – MSDN Blogs
  10. EF7 – New Platforms, New Data Stores – ADO.NET Blog – Site Home – MSDN Blogs
  11. Async/Await – Best Practices in Asynchronous Programming
  12. Cutting Edge – Store User Data in ASP.NET Identity
  13. Async Programming – Unit Testing Asynchronous Code
  14. Universal Windows Apps – Reuse Code Assets with Universal Windows Apps

No Comments

MVC planning poker–delete round – part 8

Stefan Petrini make a final test, DeleteRound ( with subcases for Moderator and for non-Moderator deleting a table)

bool DeleteNotModeratorSuccess = true;
            try
            {
                td.Table.DeleteRound(td.Table.Id + "NotModerator".GetHashCode(), "Round2");//Attempting to delete a round without being a Moderator
            }
            catch (PPSecurityExceptionModerator)
            {
                DeleteNotModeratorSuccess = false;
            }
            Assert.IsFalse(DeleteNotModeratorSuccess);

For now the application has 20 tests – all without data persistance ( all is in memory)
It is time to add a saving to database in order to persist data.

No Comments