ok so i’ve recently started writing more swift and really starting to like it. there are some things that i really didn’t care for at the announcement at WWDC2014. i was disappointed by the fact that swift lost readability in comparison to objective-c. one of the things i really love about obj-c is that it reads like a story, like
i’m sure there are lots of developers who’d cringe at this method, but to me i like that the practice of method signatures being verbose and passing your arguments in-line with their descriptions, like
.. that coupled with the autocompletion of Xcode, you a very powerful and intuitive set of tools. alright. enough with my whining about obj-c.. i’ve been trying to put some serious hours into learning swift and i’m starting to realize the potential. then with apple open-sourcing it, the possibilities are limitless. the syntax becomes intuitive once you begin to learn how to take advantage of the very extensible nature of the language. it’s very easy to abstract complexities and add behavior to any object including all the built-in types. want to add a function to Int? no prob. with great power comes great responsibility, as you can easily burn yourself if you just do bad things, like trying to write swift the same way you’d write obj-c. you will end up writing far more code unnecessary code and find yourself coded into a corner. once you get used to writing the swift way, things become far easier. you start to write more secure code with far less chances of encountering runtime errors. there are so many powerful options in the language. i’m excited to learn more over next few month. i see it as a serious contender to replace python for scientific applications. i plan to post the smallest little snippets of my learnings here. simple notes on things i want to take note of or may need in future. it could be links snippets or whatever. we’ll see.