Skip to content

Instantly share code, notes, and snippets.

View abruzzi's full-sized avatar
⌨️
Writing a React book - React Anti-Patterns

Juntao Qiu abruzzi

⌨️
Writing a React book - React Anti-Patterns
View GitHub Profile
<header>
<nav>
<ul class="nav-list">
<li class="list-item">
<div class="logo">
<span class="highlight">Game</span>Insider
</div>
</li>
<li class="list-item">
<a href="#">News</a>
.container {
max-width: 800px;
margin: 0 auto;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
h1 {
text-transform: capitalize;
color: orangered;
}
.container {
max-width: 800px;
margin: 0 auto;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
h1 {
text-transform: uppercase;
background-color: orangered;
color: white;
}
@abruzzi
abruzzi / html-101.html
Last active August 26, 2022 00:49
3 Web Designs in 3 Weeks - Day 1
<div class="container">
<h1>HTML and CSS are awesome</h1>
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. At eum eius sequi dolor consectetur omnis quia
necessitatibus beatae vero numquam.</p>
</div>
@abruzzi
abruzzi / clean_code.md
Created September 12, 2021 00:22 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

function detailChart(categories) {
var width = 800,
height = 800;
var outerRadius = 300;
var ratingScale = 45;
var references = [];
function shapeChart(categories) {
var width = 200,
height = 200;
var outerRadius = 50;
var ratingScale = 10;
var angle = d3.scaleLinear()
.range([0, 2 * Math.PI]);
license: gpl-3.0
@abruzzi
abruzzi / .block
Created May 21, 2019 23:26 — forked from mbostock/.block
Stacked Radial Area
license: gpl-3.0
@abruzzi
abruzzi / SketchSystems.spec
Created March 23, 2019 11:21
My Awesome Sketch
My Awesome Sketch
First State
some event -> Second State
Second State