I hereby claim:
- I am jakoblorz on github.
- I am jakoblorz (https://keybase.io/jakoblorz) on keybase.
- I have a public key ASDdbhoYAfnA7sPxrVksCvdv7RPZ2j7ofSKnlnYOFV7GbQo
To claim this, I am signing this object:
interface IUserController { | |
handleSetName(name: string): void; | |
} | |
interface IUserControllerState { | |
name: string; | |
} | |
class UserController | |
extends TransformController<IUserControllerState, IUserController> |
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"encoding/hex" | |
"fmt" | |
"io" | |
"os" | |
"os/signal" | |
"runtime" | |
"sync" |
/// <reference types="jest" /> | |
import { Implement } from "./Implement"; | |
test("should inherit methods of base class", () => { | |
const fn = jest.fn(); | |
class Base { | |
implementation() { | |
fn(); |
I used this structure in multiple projects and had a blast using it which is why I want to share it. It automatically propagates state changes to all dependent states and does not require additional state managing packages such as redux or mobx.
It enables architectures where e.g. the navbar is at the same level as all other components while still receiving updates about e.g. current user: If in this example the Index View logs the user in, there will also be a re-render in the navbar as its state has changed. This construction removes the state-silos of each component. Using useState
instead of useReflectedState
still enables the usage of component-specific state.
import React from "react";
import ReactDOM from "react-dom";
import { BrowserRouter as Router, Route } from "react-router-dom";
import Navbar from "./views/Navbar";
import Index from "./views/Index";
So you want to learn Java? There are many guides, tutorial, videos etc. to help you learn it. Most of them do only seem to solve a specific problem, while learning a programming language is a continuous process of problem solving, getting stuck, having code-smell and then cleaning the smell out. Ok, drop the last two points, these points are things you might understand later in your carreer. This checklist will present you tasks / quests you can solve during your learning process. All of the problems you will face here were solved already, most software engineers of today worked with these kinds of problems at some point in their carreer as well.
The most significant skill software developers of today have is the skill to break a problem
[Unit] | |
Description=IRI systemd daemon | |
[Service] | |
Restart=always | |
ExecStart=/usr/bin/java -jar /opt/iri/iri-1.4.1.2.jar -p 14265 | |
[Install] | |
WantedBy=multi-user.target |
/** | |
MIT License | |
Copyright (c) 2017 Jakob Lorz | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |