Also exists as Tower Defense
Also exists as Tower Defense
It certainly also does not help that various CSS frameworks out there do exactly that…
Bootstrap (as of v5) being one of them. div class="d-flex gap-2 my-3 align-items-center flex-nowrap justify-content-between
I was annoyed at this at first, but I’ve since noticed that I write hardly any CSS any more, because most rules really are “just add some space, vertically align, be red”.
After a while you realize the pig likes it.
That’s what makes them an engineer: Piling argument upon counterargument to understand the topic, the arguments, their shortcomings and another person’s understanding of the topic vs arguing to be right.
Seems like North America has always had a thing for conservatism.
The author should be killed for indentation alone.
Describing the what also helps when you dabble in a new technology or little-used technology. It helps to explain to yourself what you’re doing and it helps in onboarding. “Hey, newbie, there’s a function in XYZ module that’s extensively documented. Look there for guidance.”
Does sqlite create a file for every page in the table or what?
Forgive my ignorance. SQLite is a database software. Why would McAffee create lots of database files?
[Edit:] I’m not asking why a program needs to store data. I’m asking why that necessitates many files. One database file (or one per table) should be enough, right?
Imagine you’re the chef at a restaurant and the guest tells you they want the fluffiest pancace possible, positioned vertically on the plate. In fact, they want three of them, stacked on each others’ rims. And vegan with extra eggs.
And when you finally serve that aneurysm of a dish, they tell you that in their dialect, ‘pancake’ actually means ‘lasagna’.
I do this constantly. undefined
: not retrieved yet. null
: Error when retrieving. Makes it easy to reason about what the current state of the data is without the need for additional status flags.
It’s neither JSON’s nor JavaScript’s fault that you don’t want to make a simple function call to properly deserialize the data.
json doesn’t have ints, it has Numbers, which are ieee754 floats.
No. numbers in JSON have arbitrary precision. The standard only specifies that implementations may impose restrictions on the allowed values.
This specification allows implementations to set limits on the range and precision of numbers accepted. Since software that implements IEEE 754 binary64 (double precision) numbers [IEEE754] is generally available and widely used, good interoperability can be achieved by implementations that expect no more precision or range than these provide, in the sense that implementations will approximate JSON numbers within the expected precision. A JSON number such as 1E400 or 3.141592653589793238462643383279 may indicate potential interoperability problems, since it suggests that the software that created it expects receiving software to have greater capabilities for numeric magnitude and precision than is widely available.
You seem to have missed the important phrase “in source code”
I read that, but I thought it was a useless qualifier, because everything is source code. You probably meant “in a literal”.
What makes you think so?
const bigJSON = '{"gross_gdp": 12345678901234567890}';
JSON.parse(bigJSON, (key, value, context) => {
if (key === "gross_gdp") {
// Ignore the value because it has already lost precision
return BigInt(context.source);
}
return value;
});
> {gross_gdp: 12345678901234567890n}
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse
This man has interacted with SAP.
PHP and Node definitely do.
Node doesn’t.
> parseInt('077')
77
- If the input string, with leading whitespace and possible +/- signs removed, begins with 0x or 0X (a zero, followed by lowercase or uppercase X), radix is assumed to be 16 and the rest of the string is parsed as a hexadecimal number.
- If the input string begins with any other value, the radix is 10 (decimal).
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt
I’ve also never seen any piece of software that would treat a single leading zero as octal
I thought JavaScript did that, but it turns out it doesn’t. I thought Java did that, but it turns out it doesn’t. Python did it until version 2.7: https://docs.python.org/2.7/library/functions.html#int. C still does it: https://en.cppreference.com/w/c/string/byte/strtol
I’m not sure if you’re getting it, so I’ll explain just in case.
In computer science a few conventions have emerged on how numbers should be interpreted, depending on how they start:
0b
, so 0b1001110
0
, so 0116
0x
, so 0x8E
If your zip code starts with 9, it won’t be interpreted as octal. You’re fine.
they also pay 3000$/mo for a moldy apartment
Do you have an example?