|
Gaming machines trend to be bulky. with lights all over so you know that it's good.
The majors everyday pcs are so light and quiet it's ridiculous, with the internal power supplies often being superseded with lump in the line transformers.
If you're not coding for a game there is little need for the heft today.
|
|
|
|
|
I must agree. My main machine is an i7-6500U with 16MB of RAM. It is quiet, and does everything I need it to do.
Extreme speed is unnecessary - I'm either writing code (in which case it responds at "human" rates), or debugging code (in which case the required response is even slower). If I were a gamer, or writing games, I'd obviously need something more high-powered.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
But what about the lights? Can't forget the lights...
Jeremy Falcon
|
|
|
|
|
|
He also did Chariots Of Fire[^] - an excellent movie, slow and thoughtful - well worth seeing if you missed it.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Thank you Sir
|
|
|
|
|
|
...DI (Dependency Injection) and especally DI Containers.
I'm meanwhile tired of reading and thinking about it, or then most probably I still don't get the point on it.
Basically, the concept of DI, I like it very much. It forces me to think about my design. And yes, it supports me to write (independent) unit tests. So far so good.
But what I hate among others, is a sentence 'program against an interface and not against the implementation' (abstraction vs. implementation). Only the word 'against' is wrong in my understanding, but that is most probably my English...
Sorry, but at the end, when it comes to assemble to so called loose coupled things, it has to work with the implementation and not with the definition of the interface....
I think we always need a real test again, which tests the loose coupled thing against the concrete implementation.
Where the hell I'm wrong?
|
|
|
|
|
0x01AA wrote: 'program against an interface and not against the implementation' (abstraction vs. implementation). Only the word 'against' is wrong in my understanding, but that is most probably my English... The phrasing is awkward, even for an English speaker.
Another way to phrase this would be: "Program according to an interface, rather than based on an implementation".
Does this help?
Software Zen: delete this;
|
|
|
|
|
Thank you so much. yep, it helps a lot.
|
|
|
|
|
"Program against" as in the context of defensive programming. He pretty well says "always use an interface" instead of the actual object (the implementation).
Before "DI" we had parameterized constructors; which is now "DI"; that's why there's confusion. Making up words to fit the model.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
|
Think of "against" as in the context of a ladder leaning against a wall.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
DI is overrated. Programming "to" an interface is fine when you have a real use case to abstract different implementations that you may want to switch between when service A (or controller A) needs to support service implementations S1, S2, and S3. For example, you might have several document store services, one for AWS buckets, one for your own document server, one for storing documents as blobs in a DB and different ones get instantiated on the fly depending on other factors.
That said, one can code an application into interface hell, where everything has an interface and almost nothing needs an interface because there's only ever going to be one concrete implementation of the service.
Happily, in .NET Core for example, the DI engine doesn't require interfaces - you can specify "this service is implemented by its concrete type" rather than always having to say "this service implements this interface."
I have literally chucked out thousands of lines of interface code (I pity the programmer that wrote all that crap -- it wasn't me) because they were glommed onto the "DI must be done with interfaces" not realizing they were making pointless work for themselves because the never ever would have multiple concrete implementations for the interface abstraction.
Know when to use an interface rather than always use an interface. Much like, um...
|
|
|
|
|
Marc Clifton wrote: Know when to use an interface rather than always use an interface. Much like, um...
Having an interface as an abstract class (in C++ - all functions are pure virtual) and deriving the implementation class(es) from it can aid your thinking in that everything that is exposed to the caller must be defined in the base class. I find that it is very useful as an implementation-hiding technique.
My DLLs tend to have the following APIs:
IFoo* CreateFooInterface(<parameters>);
void DestroyFooInterface(IFoo*);
(Calls to the methods of an IFoo object)
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Thank you very much for this
|
|
|
|
|
#Worldle #322 2/6 (100%)
🟩🟩🟩🟨⬜↖️
🟩🟩🟩🟩🟩🎉
https://worldle.teuteuf.fr
Knew it was in Africa
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
Wordle 539 4/6
⬛⬛⬛⬛⬛
⬛🟨⬛🟨⬛
🟨⬛⬛🟨🟨
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 539 6/6
⬜⬜⬜⬜⬜
⬜🟨⬜⬜🟨
⬜⬜🟩🟨⬜
⬜🟩🟩⬜⬜
🟩🟩🟩⬜⬜
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 539 2/6
⬜⬜🟩⬜⬜
🟩🟩🟩🟩🟩
Well, that was unexpected ...
Perhaps I should buy a lottery ticket?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Wordle 539 3/6
🟨⬛⬛🟨⬛
⬛🟩⬛🟩🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
🟨⬜⬜🟨⬜
⬜🟨🟨⬜🟨
🟩🟩🟩🟩🟩
Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Wordle 539 5/6
⬜⬜⬜🟨⬜
⬜🟨🟨⬜⬜
🟨⬜⬜⬜⬜
🟨⬜🟩🟨⬜
🟩🟩🟩🟩🟩
Looked it up.
Only one word popped up with my letters, and I simply didn't see it
|
|
|
|
|
Wordle 539 6/6
⬛⬛⬛⬛⬛
🟨🟨⬛⬛⬛
⬛⬛🟨⬛🟨
⬛⬛🟩🟨⬛
🟨⬛🟩⬛🟨
🟩🟩🟩🟩🟩
I just barely made it! Phew!
Get me coffee and no one gets hurt!
|
|
|
|
|
Wordle 539 3/6
⬜🟩⬜⬜⬜
🟩🟩⬜🟩🟩
🟩🟩🟩🟩🟩
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|