area = width * height
then a = w * h
As a simple example but it seems most programmers feel some sense of accomplishment the using the least number of characters and lines possible with no though to readability or maintainability.I'd much rather see
const areaOfRect = rect.width * rect.height;
const areaOfCircle = Math.PI * circle.radius ** 2;
if (areaOfRect > areaOfCircle) { ...
then if (rect.width * rect.height > Math.PI * circle.radius ** 2) {
...Even more controversial I'm not sure I like the new common pattern of destructuring as in
const {first, last, address, phone} = props;
...
...
<div class="name">{first} {last}</div>
<div class="address">{address}</div>
<div class="phone">{phone}</div>
vs <div class="name">{props.first} {props.last}</div>
<div class="address">{props.address}</div>
<div class="phone">{props.phone}</div>
Because the second style provides more info on each line. I know where the various values are coming from where as I don't with the first style.