Note that that hasn’t existed in PHP for years.
Note that that hasn’t existed in PHP for years.
Doesn’t npm have this already? I’ve definitely gotten requests for donations and various political messages when installing dependencies.
import React from 'react';
import ReactDOM from 'react-dom';
ReactDOM.render(
<div>
<h1>My Site</h1>
<p>Welcome to my cool site. 😎</p>
</div>,
document.getElementById('root')
);
Me too. I’ll take my salary now, please.
Edit: Lemmy stripped out my rickroll. :(
I would buy a Zenfone in a heartbeat if they had more than 2 years of support. Apple’s doing 6 years. Microsoft is doing effectively infinite. I don’t get why every Android manufacturer other than Samsung and Google seem so bent on producing mountains of e-waste.
Codidact is a non-profit, open-source alternative run by (mostly former) SE people.
The last character tells you what to type there.
Those are just types. You shouldn’t write types in the names. It’s called Hungarian Notation, but it’s just redundant. If you need to check the type of a variable, hover over it and your IDE should tell you that temperatureThreshold
is type DegreesCelsius
. No need to add extra cruft. There’s also a question of how specific everything needs to be.
It’s also especially problematic if you later refactor things. If you change units, then you have to rename every variable.
Plus, variables shouldn’t really be tied to a specific unit. If you need to display in Fahrenheit, you ideally just pass temperatureThreshold
and it converts types as needed. A Temperature
type that that has degreesF()
and degreesC()
functions is even cleaner. Units should just be private to the type’s struct.
I have my phone number on my personal website—never had any adverse consequences. In fact, the only two calls I’ve gotten have both been at my work number which isn’t on there somehow. One to ask a genuine question and one to give me 30 bucks in appreciation.