Code should be as easy to read as a book. If you spend more than 5 seconds trying to understand a function it might be already doing more than it should.
github.com/brunolm/react-how-to is a repository that shows how to do things by example.
Each Pull Request on this repository is a complete guide on how to do something, for example if you want to add
redux to your project you can just check this Pull Request and see some instructions and all changes required.
If you want to setup tests check this Pull Request.
Better than just reading some instructions you get a full example and a working project as a guide.
I found a challenge called “The Bomberman Game” on HackerRank and I found it pretty interesting.
It boils down to something like this:
The Bomberman Game
- Bombs will explode in 3 seconds
- When a bomb explodes it clears its tile and 1 tile up, down, left, right
- Bombs that are about to go off explode at the same time
- There are no chain reactions
- If a bomb explodes next to another that is not about to go off then the nearby bomb is just cleared
- Bomberman plants some bombs (you’re given an input with the map)
- A second passes
- A second passes. Bomberman plants bombs on all empty slots
- A second passes
- Repeat 3 and 4 until N seconds passes
R= number of rows
C= number of cols
S= number of seconds
R C S O.. ...
Return the map after N seconds have passed.
The first thing I though was to solve it with a generator (well, there was no real need to use it, but since it is about a game I thought it would be fun to be able to access any state of the game).
TL;DR; Workflowy is a (free) website where you can take notes and doesn’t matter how big it gets it is still easy to manage. Check it out https://workflowy.com/invite/35df8d82.lnx
Workflowy is a (free) website where you can take notes on lists. It is being really useful for me (and every co-worker) because we can take notes of steps we take to do something then when we need to use it again we can just look at my notes instead of having to figure it all out again.
We can also take notes of commands we run so if we need something crazy again we don’t have to figure it out, it’s already there.
If you want to try it out you can register with this link https://workflowy.com/invite/35df8d82.lnx
Install-Module -Name power-nvm
It has the following commands (for now):
nvm default <Version> # set version as default nvm install <Version> # install version nvm ls [Filter] # list installed versions nvm ls-remote [Filter] # list released versions nvm setdir <Path> # set NODE main dir nvm use <Version> # use NODE version
Blazor is a framework that allows you to code C# for frontend. Github page.
An experimental web UI framework using C#/Razor and HTML, running client-side via WebAssembly
The arrival of WebAssembly creates the possibility of building client-side web applications using languages and runtimes that are more typically used for native app development. Blazor runs .NET code in the browser via a small, portable .NET runtime called DotNetAnywhere (DNA) compiled to WebAssembly.
The programming model will be familiar to anyone who’s worked with Razor (the C#/HTML page format used by ASP.NET MVC and ASP.NET Pages).
Blazor makes your app compact and much faster since it is compiled into code the browser doesn’t have to parse.
It can run on older browsers (ex IE11) because it has polyfills.
The only note here is that it is very early. I mean, it is so early it can’t even be called alpha or anything. It is just an experiment at the moment. (Post written at 2017-08-12)