Random thought of the day
-
@anonymous234 said in Random thought of the day:
It's now less than a year until Windows 7's EOL!
Or so they say.
-
@kazitor said in Random thought of the day:
That's one fewer character to type! And that's with spaces!
Characters != legibility.
Semantics and intentionality are kind of important in code. And randomBool(0.6) expresses "true 60% of the time" better than
random()<0.6
.
But most importantly, there's no cost to defining these little utility functions in libraries.(Also a lot of libraries return a value between 0 and INT_MAX, so that adds extra characters)
-
Why are Marines fighting in desert?
-
@anonymous234 I would think that, assuming it's not buried amongst a bunch of other variables and grouping symbols, anyone who's used random chances in programming should recognise the effect of r() < p without thinking too hard about it.
-
@kazitor it's still cognitive load. Everyone who ever used C++ should instantly recognize
for (std::vector<int>::iterator i = std::begin(v); i != std::end(v); ++i)
, but it's nice to not have to.
-
@Gąska C++ has become a lot less intimidating since
auto
was introduced.The error messages are still bad (and yes,
clang
is usually better thangcc
for that).
-
@Gąska said in Random thought of the day:
@kazitor it's still cognitive load. Everyone who ever used C++ should instantly recognize
for (std::vector<int>::iterator i = std::begin(v); i != std::end(v); ++i)
, but it's nice to not have to.I've been using C++ for years and only recently have I seen that. And I also don't use it either. I also would not be able to create that syntax without looking it up.
-
@kazitor said in Random thought of the day:
Filed under: Why does it assume CSS for that if I don't specify a language?
Because HLJS hasn't been updated to get rid of the fucking useless languages and add any of the actually useful ones yet. But some day someone will come in here with their nginx configuration issue and we'll be like 'guess what we've fuckin' got'.
-
@Gąska said in Random thought of the day:
@kazitor it's still cognitive load. Everyone who ever used C++ should instantly recognize
for (std::vector<int>::iterator i = std::begin(v); i != std::end(v); ++i)
, but it's nice to not have to.I keep forgetting how stupid languages can be. Not the boilerplate, explicit types are good. But a separate
end
function for comparing structural equality to the iterator?++
operator overloading for iterator continuing? What the fuck is wrong withMoveNext()/Current
orhasNext()/next()
models?
-
@pie_flavor said in Random thought of the day:
What the fuck is wrong with
C++?MoveNext()/Current
orhasNext()/next()
modelsI believe I FTFY
-
@pie_flavor said in Random thought of the day:
@Gąska said in Random thought of the day:
@kazitor it's still cognitive load. Everyone who ever used C++ should instantly recognize
for (std::vector<int>::iterator i = std::begin(v); i != std::end(v); ++i)
, but it's nice to not have to.I keep forgetting how stupid languages can be. Not the boilerplate, explicit types are good.
Let me guess - you're in the "who needs an IDE anyway" camp?
But a separate
end
function for comparing structural equality to the iterator?It makes more sense than you think. Of course the root cause why it makes sense is "other parts of C++ absolutely suck".
++
operator overloading for iterator continuing?It's just a natural consequence of their other braindead decision, to make iterators API-compatible with raw pointers. Although I'm pretty sure if they designed iterators in 2005, they'd instead go with a template free function named
std::advance()
or similar.What the fuck is wrong with
MoveNext()/Current
orhasNext()/next()
models?Well, there's a lot wrong with these models, though C++ solves none of their problems.
-
@Gąska said in Random thought of the day:
Let me guess - you're in the "who needs an IDE anyway" camp?
In C++, yes. It's their only strong point left; they gain nothing by moving away from it since other parts of the language can't be unfucked the same way. There are two mutually exclusive fields with their own benefits, and one side is astronomically better to take but it's literally impossible for them to reach it and so there's no reason to move away from the current one to be without the benefits of either.
-
It's interesting that no keyboard design has beaten a simple rectangle. People have come out with all kind of ergonomic shapes and bizarre designs, but none of them has managed to catch on.
Edit:
-
@anonymous234 said in Random thought of the day:
How does that work? It looks like the DeLorean of keyboards…
-
@dkf I think it's modular, and that's it's "storage" form. So you'd move modules around if you only needed, say, WASD/1-5 (shooters) or the whole thing, or that specialized game pad (on the right). In use, they'd lie flat.
But I may be wrong.
-
@anonymous234 Hmm. How expensive is the middle one?
-
@dkf Decent design, though. Vertical wrists are good for delaying things with medical names.
-
@Benjamin-Hall The presence of mirrors does suggest it's intended to be used while the keys are not in line of sight. Mirrors show the function keys to help you hit them; the rest are probably by touch.
-
It really is a vertical keyboard with the two halves standing up from the middle board. The big idea is that you lift your arms up to type without angling your wrists (too much). You can see that the spacebar on the right part has a bulge towards the user, this is so that you can reach it with your thumb.
The little things you see sticking out on the right and top-left are actually mirrors to see what you are doing with some of the keys far away from the homerow indicators (you know, the F and J keys with their little raised dimple or bar) on the Fn key row.
Take a look at this review.
-
@pie_flavor said in Random thought of the day:
@anonymous234 Hmm. How expensive is the middle one?
This one?
It costs an arm and a leg because the manufacturer went out of business and you have to buy it from price gougers on eBay.
There have been some attempts to 3D print DIY models, but not idea what the status on that is.
EDIT 2: The most recent version of the original manufacturer's site I can find on archive.org appears to be from september 8, 2013. That page listed it new as $995.
-
@JBert I immediately detect a problem with that keyboard, in that (at least in myself, and probably in a sizable amount of people) it'd be impossible to hit the "down" direction on the pinky fingers without also doing so with the ring fingers, as the tendons for those two fingers are much more interlinked than the rest of the hand and they tend to move together.
-
@e4tmyl33t Hard to tell how much of a problem it would be.
Apparently they still required some force to actually press a key, but instead of springs it uses magnets. This means you need to push until the magnet loses contact with a bit of metal, so if push comes to shove you could have been able to tune the magnet or metal to require more force.
Brilliant design really, but their starting price and import duties to the EU always held me back.
-
@JBert ok, that's a then.
-
@JBert Ah.
I miss the King's Assembly.
-
@e4tmyl33t said in Random thought of the day:
it'd be impossible to hit the "down" direction on the pinky fingers without also doing so with the ring fingers
The other way around sounds worse, frankly. Ring fingers have much less mobility.
-
I wonder how difficult it would be to operate some sort of pedal-powered refrigerator. Could it be effective?
-
@kazitor I have wondered how much gyms could offset their electricity bills by applying electric generators in the right places.
-
@Zecc Depends on what you want to power:
-
@JBert That's been posted before. TL;DW: He can power it through a single toasting cycle — just barely; he's pretty wiped out by the end of it.
Thermodynamics says refrigerators are less efficient than (ideal; I'm sure you could make a very inefficient toaster if you wanted to) toasters.
-
@HardwareGeek said in Random thought of the day:
Thermodynamics says refrigerators are less efficient than (ideal; I'm sure you could make a very inefficient toaster if you wanted to) toasters.
On the other hand, a fridge cools by a couple dozen degrees rather than a couple hundred.
-
@kazitor But it cools a much bigger volume. And more importantly, it has to run all day every day.
-
@anonymous234 I was thinking: you have some warmish drinks etc. Can you compress the refrigerant yourself enough to cool them to something tolerable?
-
@kazitor said in Random thought of the day:
@anonymous234 I was thinking: you have some warmish drinks etc. Can you compress the refrigerant yourself enough to cool them to something tolerable?
I have an easier solution: put the drink outside for half an hour
-
@e4tmyl33t said in Random thought of the day:
it'd be impossible to hit the "down" direction on the pinky fingers without also doing so with the ring fingers, as the tendons for those two fingers are much more interlinked than the rest of the hand and they tend to move together.
Strangely, I can move my pinky finger on my right hand just fine without moving any other fingers, but on my left hand, my ring finger tries to move around, too. I think it's more of a nerve/brain interconnection thing than tendons or muscles.
As a guitar player, I rather wish I could do that with my left hand, instead.
-
@mott555 I'm the opposite. My left pinky has more independent motion, though I have to consciously keep my ring finger from curling when I curl the pinky. With my right, I can't curl the pinky independently at all.
-
"It's all downhill from here" has an entirely different meaning when you're biking.
-
@mott555 said in Random thought of the day:
I think it's more of a nerve/brain interconnection thing than tendons or muscles.
Yes. One of my martial arts teachers (also a retired physical therapist) says that becoming physically proficient at something is more about training neural pathways not to fire. His analogy is a baby or a toddler learning to walk. They are total spazzes at first. I can say that I've experienced that a lot and thinking that way definitely helps me learn new things, too.
-
@anonymous234 said in Random thought of the day:
"It's all downhill from here" has an entirely different meaning when you're biking.
Incidentally, the Polish phrase "z górki" (literally "downhill") means that the rest of the way will be very easy.
-
@anonymous234 said in Random thought of the day:
"It's all downhill from here" has an entirely different meaning when you're biking.
It still works though -- what is easy brings you to a lower place, and fast.
-
@boomzilla
Practice allows you to overcome instinctive but wrong reactions. Think trying to walk across a balance beam where not liking at your feet is key.
-
@anonymous234 said in Random thought of the day:
"It's all downhill from here" has an entirely different meaning when you're biking.
Hell yeah! But it often looks easier and less straining then it actually is. If you don't clinch your butt you aren't going downhill fast enough. This also reveals the true usage of spandex cycle pants.
-
@Luhmann said in Random thought of the day:
@boomzilla
Practice allows you to overcome instinctive but wrong reactions. Think trying to walk across a balance beam where not liking at your feet is key.I've been balancing wrong all this time!!!
-
If USA didn't detonate nuclear bombs in 1945 during WW2, they would probably be used in some later conflict, presumably between USA and USSR - and it wouldn't end nicely for anyone, involved or otherwise.
-
We need to glass Australia
This thought occurs to me frequently. I'm beginning to wonder if maybe I am racist.
-
-
-
@DogsB said in Random thought of the day:
I'm going to glass where ever you're from too to be safe.
I'm on the far side on the planet. Those tweets are from the same thread as @DogsB posted. I just brought them here for more attention.
-
This is a thought of yesterday during yet another intense lightning storm, but I only just remembered it:
Some sort of combination UPS/PSU (UPSU). The problems that immediately come to mind are
- probably too big to fit in a normal case
- wouldn't power your monitors
And honestly, as I think about it I'm not entirely sure what problem I'm trying to solve.
-
-
@kazitor No, it's a great idea. UPSs receive high voltage AC, they have to convert it into low voltage DC because that's what batteries store, then it gets reconverted into high voltage AC to go into the PSU, where... guess what.
It's a load of nonsense.