|
Well, in the case of null and the C pre-processor, even the original designers have become aware of the flaws.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
"What is wrong with NULL?
The short answer: NULL is a value that is not a value. And that’s a problem"
This statement is very wrong. This is Exactly why people erroneously think nulls are bad or wrong. NULL is the absence of value.
If a string is null, that means it has NO value as apposed to a string that had a value and then was cleared out, which has the value of empty string.
A perfect use case for a null is in determining if data was returned.
This
public List<Customer> GeCustomers([some condition])
{
var results = (from c in dc.Customers
where blah...).ToiList();
return results;
}
is NOT the same as
public List<Customer> GeCustomers([some condition])
{
List<Customer> results = null;
var customers = (from c in dc.Customers
where blah...).ToiList();
if(customers.Count > 0)
{
resuls = customers;
}
return results;
}
If it's not broken, fix it until it is
|
|
|
|
|
I agree; and a group with no members is different from a group that doesn't exist.
|
|
|
|
|
NULL is a wonderful thing also, it all depend on how is implemented in the language.
I have been use Clipper (a compiler for xBase family of languages just like FoxPro).
In Clipper, it is simple: you initialise your variables or they are NULL and throw an error as soon as you try to use them.
I see that with experience, it is a very good habit to not relay on an undocumented behaviour that can change over time or between vendors.
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
New logo drops the serifs in biggest redesign in company history. Surely no more momentous event has ever been documented by these hands
And yes, I'ma gonna call you Shirley.
|
|
|
|
|
The effects of a free upgrade to Windows 10 are starting to trickle in. Available for just over a month, Windows 10 has now captured more than 5 percent market share, according to the latest figures from Net Applications. "If you will not be turned, you will be destroyed! "
|
|
|
|
|
W10's surge in share is even larger in the enthusiast market.
Steam's Hardware Survey[^] (of gamers) shows W10 jumping from 3.3% to 17% over the month (3.5 to 17.8% if only looking at Windows systems). 96% of the W10 users also have DX12 capable GPUs. I'm not surprised since DX12 is a huge win for gaming, even if it's probably going to be a year or so before we have a significant number of titles using it. I do expect it to quickly become ubiquitous though, since unlike DX10/11 (which only added eyecandy for people with top end hardware) DX12's gives its biggest performance boost to gamers with more modest hardware.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging 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
modified 2-Sep-15 10:49am.
|
|
|
|
|
If you felt like Windows 7 and Windows 8 offered you a little too much privacy, rejoice: Microsoft is updating those operating systems with the same telemetry gathering software it deployed on Windows 10. Progress!
|
|
|
|
|
Backstabbers[^]!
Decrease the belief in God, and you increase the numbers of those who wish to play at being God by being “society’s supervisors,” who deny the existence of divine standards, but are very serious about imposing their own standards on society.-Neal A. Maxwell
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
I know I have a WinXP disc around here somewhere...
|
|
|
|
|
This is going to be the year of the Linux Desktop!
|
|
|
|
|
|
Now I know of a couple of updates I'm going to have to make sure aren't installed.
Knowing the path Microsoft has been going lately these updates has probably been flagged as critical for security reasons. Microsoft Financial Security Reasons.
I'm going to build my own OS with privacy and porno. In fact forget the OS.
|
|
|
|
|
Member 11683251 wrote: I'm going to build my own OS with privacy and porno. In fact forget the OS.
Shut up and take my money!
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Auto-update has been disabled after they sent me an update that invalidated the "genuine" mark. That is not adding value, that is adding costs.
For serious work, you use a serious OS.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
XP-SP3 VM in a Linux Desktop with VPN connections?
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.
|
|
|
|
|
Without the XP; it is deprecated, and only used by governments.
They're not that picky in security, it seems
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
First... it was a joke. But...
Coming to thema... XP is the only not being "updated" in privacy.
Under some circumstances it is easier to get around security
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.
|
|
|
|
|
Nelek wrote: First... it was a joke. No, that was Vista
Sorry
Nelek wrote: XP is the only not being "updated" in privacy It may be that all deprecated versions (anything before Win7) is not being "updated".
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Eddy Vluggen wrote: Nelek wrote: First... it was a joke. No, that was Vista
I'll get your coat
Have a nice afternoon (or whatever you have at this hour)
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.
|
|
|
|
|
Microsoft's 'Project Sonar' service, which analyzes millions of potential exploit and malware samples in virtual machines, may be available to users outside the company in the not-too-distant future. It looks like you've got a virus. Would you like help with that?
|
|
|
|
|
RAD Studio 10 Seattle has an updated Visual Control Library designed to mesh with the Windows 10 look-and-feel. Because Delphi would never leave you
|
|
|
|
|
It seems more expensive than Visual Studio, and Delphi's docs suck. Aside from that, it seems like Embarcadero is keeping up with the times. Why are more people not using their stuff.
|
|
|
|
|
Why didn't people use it back the Borland days? Delphi rocked, big time (for Pascal), and their C++ was definitely superior to "that other guy's".
grumble grumble.
TTFN - Kent
|
|
|
|
|
James_Parsons wrote: Why are more people not using their stuff.
James_Parsons wrote: It seems more expensive than Visual Studio Asked and answered.
|
|
|
|