|
Someone told me that in Forth, every token is a symbol of a defined value. So you may define 3.14159 to have the value 3.0. Or to have the symbol 3 have the value 17. I never programmed in Forth, so I never tested out if this is true. If it is ...
In spite of JavaScript, Forth, Python, Java and whathaveyou of late, later and latest binding languages: I still love those languages that are "You know what you get". Compile-time, static, reliable languages!
|
|
|
|
|
What do you achieve that is different from an "override" or something as primitive as providing a subclass implementation of a virtual function?
Once you let the cats loose, you loose control of them. You can't say "Define your own functions by providing implementation of virtual functions, but in no other way!" Once you have opened the cage, they run loose. There is not that much difference between providing an alternate virtual function definition from replacing one real function definition by another one.
|
|
|
|
|
Perhaps because I want to use the name for something else. For example:
// is 'name' a strong lender?
bool strlen( char const* name);
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Maybe not this specific example, but you could use it in testing (similar to monkey patching functions for unit tests in other languages).
I’d never recommend using monkey patching in production code. It is helpful in unit testing though to patch functions outside the unit or to patch database access functions during unit testing. This is, of course, provided you unpatch the function at the end of the test.
Not too sure if PHP has a defer mechanism for unpatching when the function is no longer in scope, but that is one way to test a single unit and have predictable interactions with external code (an external call to the unit fails, returns weird data, returns expected data, etc).
|
|
|
|
|
In answer to the original question, I have needed to do this in TCL, for example redefining exit to check whether the work has been saved and put up a dialog box if not, before calling out to the original function which gets renamed "tcl_exit". Of course, destructors are a better solution to this problem, but not many languages have those
|
|
|
|
|
Reading this article (Introducing Fluent, Windows 10’s modern UI approach | InfoWorld[^]) I came upon this sentence.
article said: One of Fluent’s nicer features is the Reveal tool that illuminates the borders around an object, showing quickly which screen elements allow interaction, lighting up as you mouse over or tab into an active field
That sentence seems completely out of place because it says "as you mouse over or tab" but those functions are completely gone when a person is using a pad/phone (touch device).
But, Fluent Design has been driven by the fact that Microsoft is running toward pad/phone (touch devices) even though Microsoft doesn't have a phone and barely has a pad device.
Microsoft Wants To Be The Cool Kid Too
It's honestly as if Microsoft is just trying to be like the cool kids even though everyone knows they're not.
Hey, Microsoft, just be Microsoft, ok?
And to further my rant, here's what microsoft says about their new design:
Microsoft docs*: UWP helps by automatically adjusting UI elements so that they're legible and easy to interact with on all devices and screen sizes.
But that really isn't true. Things are too big on a desktop and take up too much space. Everything is targeted toward smaller touch devices.
*Introduction to Universal Windows Platform (UWP) app design (Windows apps) - UWP app developer | Microsoft Docs[^]
** More info on Reveal : Reveal Focus - UWP app developer | Microsoft Docs[^]
|
|
|
|
|
Did you read the first line of the Reveal Focus Doc you have linked at the bottom?
Quote: Reveal Focus is a lighting effect for 10-foot experiences, such as Xbox One and television screens.
Last I used an Xbox or TV screen it seemed quite a bit different than a pad/phone.
|
|
|
|
|
Jason Gleim wrote: Last I used an Xbox or TV screen it seemed quite a bit different than a pad/phone
I know, it's just that it is "sold as" part of this Fluent Design.
Well, I guess Microsoft is up to par on confusing me with which tech is what.
I can't tell one from the other.
|
|
|
|
|
Jason Gleim wrote: Last I used an Xbox or TV screen ...
... was at least 20 years ago. (Nevermind that the XBox probably didn't exist then, I never used one.)
Latest Article - A Concise Overview of Threads
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|
|
Bah! Kids these days... don't know how good they have it. Back in my day....
|
|
|
|
|
Black Friday. It's the only reason I have an Xbox at all. The Xbox S, specifically. While it can't play games at 4K, it does come with a 4K Blu-ray player.
I made the CAD$230 purchase when standalone UHD players were still close to that price. The way I saw it, I bought a UHD player and got a console thrown in as a bonus.
|
|
|
|
|
you can be sure that eventually ms will get the design right, and soon after it up again. w10 itself is just one current example.
Message Signature
(Click to edit ->)
|
|
|
|
|
Lopatir wrote: ms will get the design right, and soon after [mastadon] it up again. w10 itself is just one current example.
Production releases are for testing, of course.
|
|
|
|
|
|
While we are having a rant...
I very much dislike sites that require you to sign-up before you can even read the article! It sounded interesting too, oh well...
|
|
|
|
|
musefan wrote: very much dislike sites that require you to sign-up before you can even read the article!
Oh, yeah, computerworld can be like that.
Here's what I do. Create an account using mailinator.com.
Just type in any name and any <something>@mailinator.com
Then you are signed up. And you can see any email they might send you at <something>@mailinator.com.
It's a public inbox.
|
|
|
|
|
I have heard of this before but never really bothered to look into it. However, you explanation has convinced me to explore it further
I suppose it would be too much to expect the service will automatically respond to any "click here to confirm email" links? That would be awesome.
Although, if it becomes too popular, sites will just block mailinator domains I guess.
EDIT: Looks like that site already blocks mailinator.com
modified 23-Oct-18 9:25am.
|
|
|
|
|
musefan wrote: Looks like that site already blocks mailinator.com
Bummer, too bad they changed it. I must've gotten in under the wire.
|
|
|
|
|
Quote: To continue reading this article register now
Infoworthless is certainly developing an inflated view of its contents value. They're pretty close to the last site whose advertiscum I'd help by giving any information to.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
|
Even with a fake email, you're still creating a permanent tracking cookie for the bastards.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
ing up interfaces is the latest and greatest trend.
Hulu++: (for streaming) sucks so hard it hurts - I'd cut my subscription now if it were not for Mrs WIfe's need for a few shows I've not yet otherwise sourced. It wants to make my TV into a cellphone and shoves "trending" in my face. I don't care what's trending. If I did, I'd find the link and click it. Meanwhile, they no longer seem to keep up-to-date with TV series, which was the reason I selected them to begin with. Huge numbers of subscribers have complained and all they receive are empty platitudes.*
Ubuntu: I loaded 16.04 on my Intel Nuc (it was the Intel Certified version). It, too, seems to be trending more and more into a cell-phone look-and-feel. I'm not using it on an ing cell phone.
Maybe all of this is just some insane race of everyone trying to be like MicroSloth and MicroSloth trying to commit suicide. The age of digital lemmings?
Windows: What could I say that hasn't been said.
* I have a device that still has the older version - this crappy performance and brainless interface is no illusion.
[edit]change "turn PC into laptop to what I meant: TV into cellphone[/edit]
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
modified 23-Oct-18 10:46am.
|
|
|
|
|
W∴ Balboos wrote: Ubuntu: I loaded 16.04 on my Intel Nuc (it was the Intel Certified version). It, too, seems to be trending more and more into a cell-phone look-and-feel. I'm not using it on an [mastadon] ing cell phone.
I don't even like the "modern" cell phone look on my cell phone...
all I want is a phone, messages and a few other apps: whatsapp (free msg via wifi on travel), ridewithgps to keep myself honest and occasionally skype.)
fur sure I don't need a friggin christmas tree.
side comment 1: try lubuntu (minimal ubuntu, still traditional type window mgr)
side comment 2: ridewithgps is like strava without the in-your-face social media shite.
Message Signature
(Click to edit ->)
|
|
|
|
|
My cellphone is a flip-phone. I do not make or accept text's, either. As I explain it, I own my phone and not the other way around.
ridewthgps seems like (when I googled it) a cellfauxn application - not relevant in my current reality.
If/when I reload the system (more like when), I'll possibly just try another flavor of Linux, altogether. Either something very straight and raw or something focused on why I mainly got the NUC (a super flexible adaptable media box), so maybe Mint. Whatever it is, I'll shop more carefully, noting that the images of the interface are telling me more than just how pretty it looks. I already used it (as in VLC) to watch a video that was unaccountably rejected by my patriot media player.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
raddevus wrote: Microsoft Wants To Be The Cool Kid Too
Did you notice, this has been happening for so long. Right after Windows 8, Windows Phone failure.
They were sticking to a very strict "Metro/Modern" UI stuff, without ANY kind of coolness.
Even it took them years to bring a transparent homescreen wallpaper for their phone.
But I guess this is an evolution towards a sensible direction. Even their documentations used to look so dry but now they are putting up some cool pictures, images, drawings .
One example is the new Azure DevOps - What a shower of icons & toons.
Full Reset
|
|
|
|