|
There are a lot of developers that use C# every day and the purpose of this post is to help them understand what Swift offers at a language level compared to C#. And, before you start the "apples and oranges" arguments, it's worth pointing out that using Xamarin you can develop iOS and OSX apps using C#. "Let's flip the track, bring the old school back. This is how we do it."
|
|
|
|
|
Maybe he's not very familiar with C#:
"
Switch statements are rather similar in both languages except that in Swift case statements don't automatically pass on to the next like in C#. As a result C# requires the use of the break keywords to exit the Switch statement, unless you want to fall through to the next case. While in Swift you must use the "fallthrough" keyword to tell it to pass on through to the next case statement. More information on this can be found in the Swift documentation.
"
It sounds like he means "C" when he says "C#", but I do wish C and C# behaved the way he describes Swift does.
Swift appears to have some features I'd like, but I doubt I'll ever be using Swift.
You'll never get very far if all you do is follow instructions.
|
|
|
|
|
He must have been thinking of C#'s special treatment of the empty case body, which does fall through.
|
|
|
|
|
Oh my... You seem to be correct.
"
The scope of each case can’t be empty. As a result, you must include at least one statement following the colon ( of each case label.
"
That's horrible.
You'll never get very far if all you do is follow instructions.
|
|
|
|
|
He's not really comparing it with C# is he? He's comparing Swift with the parts of C# which are common to all C based languages, no mention of LINQ, Generics, ORM etc etc and their equivalents in Swift
|
|
|
|
|
From the looks of things, this is part 1 of n, so just pure syntax for now.
TTFN - Kent
|
|
|
|
|
Quote: Both languages support the use of Unicode characters as variable names. Basically, you could use Emoticons or other non-ASCII characters as variable names if you want, but who does that anyway?
Offshore teams trying to make it impossible for you to bring development back in house by using symbol names not just in a language you don't understand but in a character set your keyboard can't even type?
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
|
|
|
|
|
In China, a woman's husband and her mother-in-law are overcome by the stench of a cesspit, all because a brand-new phone was feared lost. For the headline alone. Just let it go...
|
|
|
|
|
Would this be considered a "Brown iPhone"?
If first you don't succeed, hide all evidence you ever tried!
|
|
|
|
|
I do know it was cracked.
|
|
|
|
|
Witnesses say it was a sh*tty experience.
If first you don't succeed, hide all evidence you ever tried!
|
|
|
|
|
That's a pretty cr*ppy thing to say!
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
Hey if it looks like poo and it smells like poo chances are it ain't an iPhone and if it is it ain't worth saving.
Moral is; Don't poo and text!
If first you don't succeed, hide all evidence you ever tried!
|
|
|
|
|
Quote: open-pit toilet Wow! I saw such a thing like 40 years ago, but no cell phones then... I believe I can build a modern toilet for less then $320 - not for saving phones but for saving idiots...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
Kornfeld Eliyahu Peter wrote: I believe I can build a modern [makeshift] toilet for less then $320
Isn't that more accurate? Basic septic tanks appear to be more than $700, and if you don't have the infrastructure of a sewage line isn't that about the only alternative? Adding the toilet, digging, and lines takes you closer to $1000 if you work cheap cheap cheap, i.e., something like this[^] (which won't meet any codes.)
|
|
|
|
|
Well, for many people smartphones are much more important than basic useful infrastructure.
If you want to get an idea of infinity, do not look at distant stars in the sky, look down at human stupidity.
|
|
|
|
|
sh*t happens!!!
I'd rather be phishing!
|
|
|
|
|
Meet 0xDBE, a new IDE from JetBrains tailored to suit the specific needs of professional DBAs and developers. All those IntelliJ goodies, now in SQL flavour
|
|
|
|
|
Thanks for the link I believe I'll try it!
If first you don't succeed, hide all evidence you ever tried!
|
|
|
|
|
The first production-ready version of the open source Linux container engine irons out networking and other wrinkles. Containers are the new VMs. Or something like that.
|
|
|
|
|
After the first 3 paragraphs, I still have no idea WTH it is.
After the fourth... I...still don't really.
|
|
|
|
|
That pretty much describes my reaction to every article I've read on Docker. Still, some people seem really keen on it.
TTFN - Kent
|
|
|
|
|
By the 5th paragraph I've got a reasonably clear idea what it's supposed to do and am wondering how it compares to a tool called Vagrant[^] that I used once and which appears to do similar things.
OTOH Mike's reaction more or less sums up my reaction to every article I've read on infoworld; with the exception that most don't get better as you keep reading.
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
|
|
|
|
|
They do seem to be the same, but Vagrant has the advantage of being cross-platform without a VM, unlike Docker, which requires Linux.
What do you get when you cross a joke with a rhetorical question?
|
|
|
|
|
a Docker container allows you to move applications and services seamlessly between host servers.
Given how many "sudo apt-get install [fizbin]" commands I have to issue to install just the basic set of tools I'm using in Ubuntu, I really really really have a hard time believing applications (and their thousands of dependencies) can move "seemlessly" between host servers. Unless part of the magic is to synchronize the servers so that they are essentially mirrors of each other.
Marc
|
|
|
|