Tuesday, December 3, 2019

using statements in C# 8 have a bit more variations

using FileStream f = new FileStream(@"C:\users\jaredpar\using.md");

Per this cheatsheet is legit, and you can just use f and eventually f will dispose. The f lives until the close curly brace around it.

the Subject generic in the TypeScript of RxJS

As suggested here it is an Observable. Just put the next thing onto it with .next as suggested here.

When you somehow highlight a row of code in Visual Studio Code...

Well, for me this happened when I pressed Ctrl-F and opened a little search bar and then the copy in the search was highlighted in the file I was looking at. I got rid of it by closing the search bar.

get to "Manage Connections" in TFS when your TFS in the cloud seems to be offline

I cannot seem to duplicate the error I had to be sure I am typing up the right thing in this blog posting, but what I think I did was go to the Team Explorer pane in Visual Studio 2017, then click the downwards pointing arrow at the right of Home at the left top, and then I either picked it here/there or I picked Settings or something first.

Monday, December 2, 2019

OnPreLoad

In web forms this event runs before Page_Load and has to do with a point in time when ViewState is loaded but not the controls just yet. I had not heard of it before. This has a cheatsheet of lifecycle stuff for web forms.

Sunday, December 1, 2019

sfs stands for shout out for shoutout

If you are advertising this on Instagram you are saying: holla at me and I'll holla back... we can both advertise each other on Instagram and gain followers from each other's followers! (fine.)

second stab at React

Alright guys, React is now the thing for me to learn and I have gone back through the first twenty minutes of this for a second time as a refresher. Beyond what I wrote here, the following is stuff I did not document the first time.

  1. Install the latest Node and also React Developer Tools for Chrome before starting a new app. With regards to this second item, two new tabs will appear in the Google Chrome Developer Tools when you press F12, Components and Profiler, but they will only appear when you are looking at a React application.
  2. I used the three steps here to make a new application and get it underway. I want to say that I learned that in the first step the name of the application cannot just be a period as the YouTube movie suggests and it cannot have an uppercase letter in it. I think both of these things were once viable. They are not viable anymore.
  3. The Virtual DOM in React allows for isolation, so that when a form posts to a "Post Component" only the component changes and not the whole of the page.
  4. The context API allows for the use of "app-level state" without Redux.
  5. Class Post extends React.Component is an example of the declaration for a component. I am pretty sure this (well, something very much like it) exists elsewhere on this blog but here it is again.
  6. Ctrl-C will stop the server when run from a command prompt in Windowsland the same as in the Angular space.
  7. render() is a lifecycle method on a component and the only one it has to have.