Live 360 Takeaways

I attended the Live 360 conference last week.  Here are my main takeaways.

A Tour of Visual Studio

Some of this I knew already.  Many of the less important keyboard shortcuts are omitted.
  1. ReSharper.  There is a ton of stuff that Visual Studio does now for refactoring.  Long story short however, R# still does more.  I'm really productive with it.  No reason to throw it out just yet.
    1. I use Resharper key bindings, so some of the shortcut keys he used are different for me!
    2. You can assign key bindings.
  2. Press Esc to get rid of the Splash Screen.
  3. CTRL-Q.  
    1. Search for features.  (Try "bookmark")
    2. Better yet, it shows the keyboard shortcuts.
    3. No more hunting for windows.
  4. Workflow tip.  Try unpinning docked windows to see more code!
  5. There are a myriad of ways to customize VS:
    1. Settings roam with you via a login.
    2. Can export settings.
  6. You can have multiple start up projects: Solution > Properties
  7. SHIT-F10 is context click.
  8. Live Share exists.  So does Teams.
  9. CTRL-SHIFT-V = Clipboard ring.
  10. Intellicode uses machine learning to put a star next to things you may want to do in IntelliSense.
  11. I have Many, Many other shortcuts written down if you want a list.
  12. You can create your own Refactorings.  (A lot of work.  Easy to get slightly wrong)
  13. Testing - run tests in parallel, sort by duration.  Coverlet?
  14. Other stuff.  Some of it is Enterprise only:
    1. Performance Analyzer
    2. Debug -> profiler
    3. Analyzers
    4. Extensions

Programming Smart Contracts in C#

This was about block-chain.  It was complicated and it blew my mind.  This seemed like a product marketing for Neo.  I don't see a space for using block-chain storage.  
(thought: Visual Studio Code usage is soaring, Visual Studio is lagging)

What's New in .NET Core 3.0

  1. Winforms and WPF runs on it!  (Only on Windows.  The design tools are not ported yet)
  2. New single file EXE deployment.  LARGE file.  Takes a while to run first time, but is snappy after that.
  3. gRPC project template.
  4. C# 8.0 has await foreach!  This is actually helpful.  I have been doing Select and then await Task.WhenAll(tasks).
  5. Has Blazor Server Side and Blazor WebAssembly.  They are 2 different things!
    1. The latter is the real deal and is releasing May 2020.
    2. Requires javascript interops right now (wrappers).
    3. Everything is a component.
  6. .NET Core 3.1 is getting LTS Long Term Support.
  7. Soon they will drop the name "Core" which I think will be super confusing.  Oh well!
  8. There are very few reasons to use .NET Framework anymore.

Dev Ops

They were pushing Azure pretty hard.
Azure DevOp Services DOES IT ALL.  vs. Atlassian?

Blazing the Web

  • Blazor WebAssembly (Client side)
  • Requires .NET Core 3.1 Preview
  • Type limitations: int, int64, float, float64.
  • No DOM, no threads, requires JS interop (wrapper), No native JS operations - Geo Location as an example.

Graph API

I keep hearing about this, but have had no interaction with it yet.
One API to rule them all.  
Can use Microsoft.Identity.Client package to get a token (MSAL).  You can also do it manually if you want.
Uses bearer token.
Make request for permission via scopes.
There are many authentication flows.
Use Graph Explorer.  Like Postman.  You can get C# snippets if you use the preview version!
Use Microsoft.graph package to get Fluid API.

Power Automate

Formerly "Flow".  Formerly Logic Apps?
Drag and drop programming.
A lot of canned actions.
Can also call APIs.
Example.

Typescript - Advanced

  1. Transpiled to JS
  2. All JS is valid TS, but that does not mean you should!
  3. You can do a lot of crazy things with classes and interfaces: Unions, Merges, etc.
  4. Language concepts are rapidly being added: For ... of, for ... in, Map, Set, Generators
  5. Most of this stuff was "too" advanced.

Identity Server

  1. Poor guy struggled with the projector for a while - I aborted.
    1. Simple [Authorize]
    2. Role [Authorize(Role="Role")]
    3. Claims
    4. Policy - complex logic
  2. There are tons of Scaffolding options.  Scaffold, then customize. 

Dev && UX

  1. Happy, Ease, Intuitive, Accessibility
  2. Frustration, confusion, disappointment, distraction = UX Debt
  3. UX != Style, Graphic design
  4. Function > Style
  5. Tree test.  This was a cool tool she used to have us find a topic in the navigation and analyze the results.  I can't find the link to it.
  6. A lot of companies say customer satisfaction is their top priority, but they do not measure it!

Web Performance

Amazon and Walmart did an experiment with performance.  They purposely slowed their pages by 100ms.  There was a loss of 1% in sales.  If you need to improve performance in an app, translate the ROI into dollars.  Make sure your marketing department understands the benefits and work with them.
  1. Http
    1. For HTTP 1.1, make fewer requests.  (4 connections max)
    2. For HTTP 2.0, this is an anti-pattern.  (Multiplexing 1 TCP connection)
  2. Send as little as possible
  3. Use Fiddler
  4. Metrics: 
    1. First Byte (server response time)
    2. Speed Index
    3. Time to Interactive
    4. Onload
    5. Fully loaded
  5. Real User Monitoring (RUM) - capturing all user interactions.  W3C Navigation Timing.  W3C Resource Timing.
  6. Steps:
    1. Header Compression = 50% less bandwidth.
    2. IIS Compression - CS, JS, HTML, not images
    3. Content Expiration (cache).  Rename, hash or build custom code to bust cache.
    4. CDN.  Bandwidth vs. Latency (distance).  Latency is king.  Use your own CDN and give fallbacks.
    5. Bundling and Minification.  In HTTP 2.0 we don't need to bundle anymore and don't minify your html.
    6. Images.  Avoid them!  USe CSS3 if you can.  Use SVG if you can.
      1. Use JPEG for photos
      2. Use PNG for all else
      3. Use srcset, <picture> not <img>
      4. Use Client Hints (new)
    7. Use Progressive JPEG - lower res renders first.
    8. Lazy load images below the fold.
    9. Deffered loading.  (Like for ads)
    10. Async JS.  Use Async keyword.  Use deffered if order matters.
    11. Resource hints.  
      1. "Preconnect" gets the HTTP request read ahead of time.
      2. Prerender
    12. Image names are case sensitive.  Use consistent naming make sure you are using the cache.
    13. JS at the top now.
  7. Webpagetest.org => Speed index.  Visible page above the fold.
  8. Google Test My Site.  (See PDF in my email)

Next Breakthrough Dev Platform

Low-code development.  App development is expensive!
Targeting multiple execution environments.
  1. Flutter, Uno, Kony, Power Apps, Zoho, Blazor 

UX in a Day

Random Thoughts

Stuff that came up in conversations
  1. CSLA
  2. gRPC
  3. T4
  4. Flow is now Power Automate
  5. I talked to a dude who may a web form, mobile app, etc. in a month with Power Automate.  Very powerful for less complicated workflows/apps.
  6. I want to learn more about Jasmine and Selenium for client side testing.

Comments

Popular Posts