77 karma · joined Mar 21, 2022 (4y ago) · 84 submissions
comment 5mo ago · link · parent
comment 1y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
The function `fizzbuzz(n)` returns a value based on whether `n` is divisible by 3, 5, both, or neither. Let's break down the function step by step for an input of `n = 3`:
1. Array Initialization:
["Fizz", "Buzz", "FizzBuzz"]
This array has indices 0, 1, and 2 corresponding to "Fizz", "Buzz", and "FizzBuzz" respectively.
2. Condition Checks: - `n % 3 === 0` checks if `n` is divisible by 3.
- For `n = 3`, this is `true` (which equates to `1` when used in arithmetic).
- `n % 5 === 0` checks if `n` is divisible by 5.
- For `n = 3`, this is `false` (which equates to `0`).
3. Index Calculation: (n % 3 === 0) + (n % 5 === 0)
- For `n = 3`, this becomes `1 + 0 = 1`.
4. Array Access: ["Fizz", "Buzz", "FizzBuzz"][1]
- This accesses the element at index `1`, which is `"Buzz"`.
Conclusion:For an input of `3`, the function returns `"Buzz"`.
Answer:
"Buzz"
comment 2y ago · link · parent
Or is it supposed that hating each other, lying to one another, stealing from one another, murdering one another, failing to fulfill contract, covenant, and commitment to one another are things that should be considered good?
comment 2y ago · link · parent
The argument that profit motivation is the origin of shady business practices ignores the existence of those businesses which pursue profit in an ethical manner. The company I work for, for instance, is highly motivated to produce a profit, but the way we go about obtaining that profit is by providing our customers with products that have real value, at fair (and competitive) prices, and by providing consistently excellent customer support. Our customers are *very* satisfied with our products and services, and they show their satisfaction with extreme brand loyalty. The profit we make year over year allows us to increase the quality of life for our employees, and keeps our employees highly motivated towards serving our customers. We pursue the good of our customers alongside our own, and we avoid shady business practices like the plague.
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
- it’s generally smooth and stable from a UI standpoint
- it has mostly sane defaults
- it has great font rendering
- the video and audio subsystems are rock solid
- it has access to every development tool I need daily via homebrew
It seems like there are generally two perspectives:
- “I shouldn’t have to change the way I want to do things”
- “I don’t mind changing to another way of doing things”
The first group I think has a harder time with macOS.
A while back I decided to experiment with only using the default first-party apps for macOS for everything, and it greatly changed the amount of OS customization I did from that point on. I still live in iTerm for most of the day, but I don’t really feel hindered by the OS in any way anymore.
From my experience Windows actively attempts to subvert my clear, authoritative commands, second guesses every admin instruction, interrupts me with focus changes and dialog boxes instead of giving the active window absolute priority (this happens sometimes with macOS, too), and comes with bloat right out of the box. When this developer thinks about a hostile OS, Windows 11 is rhe first thing that comes to mind.
comment 2y ago · link · parent
Nausea didn't get better and seemed to be present when my head was turning but the camera was moving either the opposite way or in the same direction but too fast.
I have some really good memories of spending hours inside of Obduction VR (highly recommended if you liked Myst / Riven / The Witness / etc), but the de-realization was so severe that I ended up abandoning that form of entertainment out of concern for my sanity.