|
Amazon.com Inc said Thursday it will not move forward with plans to build a headquarters in New York after rising opposition from local politicians. People who read this news item, also read these others
|
|
|
|
|
The whole HQ2 location contest was faked to extract billions of dollars from taxpayers. They already knew where they would be before they started, near two homes owned by Jeff Bezos. A bunch of employees from Seattle contacted real estate agents prior to the announcement of the location choice. This leads to the conclusion that a large portion of the 'new jobs' would actually go to transplants from Seattle, not existing New Yorkers.
|
|
|
|
|
It was a personal promotional stunt that failed, because Bezos was expecting (nay, demanding) to be idolised for it, and maturely decided to take his toys home when he wasn't.
Psychopathy isn't treatable, you know: once a psychopath, always a psychopath.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
A major German party thinks mandatory data-sharing with rivals and the public can rein in Big Tech. Who needs privacy anyway?
|
|
|
|
|
Listen, zdnet, we know that there are nutters in the world! You don't have to tell us about every single one of them!
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Gee thanks, the last thing I want is the unholy amount of data that Google has accumulated on me to be handed to every even less ethical advertiscum company on the planet.
(And yes I know Google doesn't do more than pay lip service to user privacy. That still puts them above 99.99....% of advertiscum.)
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
|
|
|
|
|
February 10, 2019 [^]Quote: It would be oh-so-simple if each parameter or return type could just be nullable or non-nullable. But life gets more complicated than that, with both generics and arrays.
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot
|
|
|
|
|
It took thousands of years to accept the concept of zero, and even longer for the Vatican because of the moral implications of nothingness. But that's no surprise. In contrast, the idea of "nullable" arrived rather quickly after the invention of computers and I databases in particular (I haven't researched it, so I'm just guessing.)
The funny thing is, nullability and "is null" requires state flags separate from the value field. So the Vatican should be happy.
Personally, I think life would be much simpler if there wasn't a concept of "null" -- instead, everything should be an array, if only an array of length 1.
Think about it. A null int would be expressed as an empty array [] whereas an int with a value would be expressed as a single item array [42] . An array much better expresses the concept that "there is nothing to represent this value" or "there is something to represent this value."
Latest Article - Slack-Chatting with you rPi
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
|
|
|
|
|
Marc Clifton wrote: A null int would be expressed as an empty array [] whereas an int with a value would be expressed as a single item array [42]
That's amazing! I just wrote some JavaScript code that allows you to query any list of objects for any property's value and I decided to always return an array : that way you always look for the same thing -- the length of the array. If it's 0 then you have no result-list and it's >= 1 then you know you have at least one.
selectItems(propertyName, arrayOfItems, propertyValue){
var outItems = [];
for (var x = 0; x < arrayOfItems.length; x++){
if (propertyValue === undefined){
outItems.push(arrayOfItems[x]);
}
if (arrayOfItems[x][propertyName] === propertyValue){
outItems.push(arrayOfItems[x]);
}
}
return outItems;
}
You can think of it as :
select propertyName from arrayOfItems where propertyValue = "yourvalue"
This is one place where JavaScript is very cool, because you can reference the propertyName via array brackets.
Of course I wrote other methods that allow you to get an array of values also (instead of an array of the target objects).
Always Return an Array!
Anyways, the cool thing is that I thought it seemed most elegant to always return an array also.
|
|
|
|
|
Very timely, Raddevus, I just figured out today how to make my generic hierarchy utility library more orthogonal by having all methods return an IEnumerable<TNode> ... this allows the consumer to chain both "fetch" and "filter" generic methods in arbitrary order in a given query.
cheers, Bill
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot
|
|
|
|
|
BillWoodruff wrote: figured out today how to make my generic hierarchy utility library more orthogonal by having all methods return an IEnumerable<TNode>
Very cool! We are all thinking on this same idea.
I guess this is an idea whose time has come.
|
|
|
|
|
"I guess this is an idea whose time has come."
It's time came with LISP in 1958, the rest of computing is nearly catching up.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
raddevus wrote: Anyways, the cool thing is that I thought it seemed most elegant to always return an array also.
Indeed!
Latest Article - Slack-Chatting with you rPi
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
|
|
|
|
|
Quote: It took thousands of years to accept the concept of zero, and even longer for the Vatican because of the moral implications of nothingness. Extremely misleading generalities. Marc Clifton wrote: In contrast, the idea of "nullable" arrived rather quickly after the invention of computers and I databases in particular (I haven't researched it, so I'm just guessing.) If you call 1960CE (when Tony Hoare used it in his QuickSort algorithm) "rather quickly after ...," okay.
If you broaden the specific concept of null in computation to include the concept of an empty something-or-other as well as "zero," there's a lot of ancient sources; for example, see the use of double-wedges in Babylonian cuneiform, and sifr in pre-Islamic Arabic which was a translation of the Sanskrit sunyam aka sunyata aka Buddhist anatta, a profoundly metaphysical concept.
For adoption of zero in India: [^].
In the Theravadan Buddhist tradition, originating from Sri Lanka (aka Ceylon) ... sometimes termed hinayana (lesser) as a put-down by those in the mahayana (greater) tradition ... emptiness is considered to be an inherent attribute of "objects." I don't think this means Sir Hoare was Buddhist
Good reading: [^]
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot
modified 14-Feb-19 23:50pm.
|
|
|
|
|
BillWoodruff wrote: Extremely misleading generalities.
I probably should have mentioned that this was based on my weak and faulty memory of reading a few years ago exactly the book that you mentioned at the end of your post.
Latest Article - Slack-Chatting with you rPi
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
|
|
|
|
|
The idea that rarely your formidably agile, ever curious, intellect may shine less than brilliantly, gives hope to this glowworm cultivating his lesser light
Were Boole's algebra ... or Cantor's set theory ... historically unique, or do they reflect (in mathematical formalisms) aspects of cognitive analysis (numeracy, discrimination of like-unlike, rhetorical decomposition and analysis) universal to organized human civilisations ? Do the self-contradictory paradoxes posed by ancient Greek philosophs indicate an awareness analogous to set theory ?
cheers, Bill
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot
|
|
|
|
|
A team of researchers at Avignon University has recently developed a system to automatically detect abuse in online communities. Touch the doll where the troll bothered you
Apologies if I crossed any lines with that one.
|
|
|
|
|
It is a very complicated topic and very thin ice, but it is something that actually happens and certain groups are specially exposed to such "cyber-mobbing" / abuse (specially teenagers). I hope they do it right.
A bit related note:
I have heard in Radio today that FB wants to use an algorithm to detect users with suicidal intentions / dangerous for themselves or others.
The idea itself is really good as well, but I really don't think FB is going to do this due to their altruist soul and because they care about.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
That might work on French users of a French MMORPG, but I don't see how the structure of a discussion can be used to identify fatboys outside of that context.
Someone got fifty messages from a bunch of people, all at once -- and it turns out that that same bunch of fifty people does this often, to other individuals?
They must be evil fatboys!
... Either that, or it happens when it's someone's birthday at the office.
The "real" world of communication isn't quite so restricted as that of a French MMORPG.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Can it recognize posts selling horoscopes and magic on CodeProject?
If not, I'm not impressed. Not one e1ephanting bit
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
public bool DoesCommunityHaveElephantingSunshines()
{
return true;
}
I'm not sure why this needs more research..
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
|
|
|
|
|
A security researcher has discovered a vulnerability in Canonical's snapd package which could be exploited to gain administrator privileges and root access to affected Linux systems. The security issue has been dubbed Dirty_Sock and assigned the code CVE-2019-7304. Linux really does want to be "The New Windows"
|
|
|
|
|
Snap, flatpack, etc. are disasters waiting to happen.
Yet another headlong rush into a "Great New Way of Doing Things" that can only end in tears.
I refer the learned gentlemen to my previous comment on a matter[^] that also applies here.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
I think the answer to your comment there fits even better here
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Android Things, Google's stripped-down version of Android named for its focus on the "Internet of Things" (IoT), is now no longer focused on IoT. New name: "Android Somethings"
|
|
|
|