Re: how to learn developing?
There is is tutorial that also explain a bit how to set up the environment (Note: last updates is 1 year old, so current SDK might have changed a bit)
http://hardcodes.de/SailfishOS/Devel...SailfishOS.pdf |
Re: how to learn developing?
I think there are several programming video tutorials also for SailfishOS.
I did one aswell almost two years ago: https://www.youtube.com/watch?v=z3hMGNwObx8 (Maybe I just need to update this video someday) The basics are still the same I guess. But the best is to practice and experiment with the Sailfish SDK and the demo applications there. There is also a nice GUI in the emulator showing all the great UI elements and how you basically use them in SailfishOS. What helps is reading code that other wrote (not like a book, just pick up the things you are interested in like "how did he/she did that ?"). Before writing your own application from the "scratch" you could also try to write little patches for existing applications to add your favorite feature or something like that. I would also suggest you in writing and uploading this patches as suggestion to merge to the official code. Most of the times the developers are friendly to code submissions and will either directly integrate the code or give suggestions on how to improve the code for it to integrate. |
Re: how to learn developing?
thank you all, i took a look at sailfish and qt5 sdk but i think i need something more basic
|
Re: how to learn developing?
Quote:
You could certainly grab a couple of "intro to programming" books and work your way through them. :) But the best way to get a quick start, in my opinion, is to try out a few little examples in a language that doesn't require much effort to set up and get started. I kind of like the idea of starting with "Javascript", because every web browser supports it, and you can see the results of your code instantly. And it does have variables, data types, functions, and most everything else you'll find standard in modern languages. I haven't tried it myself, but there's a website called CodeAcademy that seems to offer an excellent introduction to languages like Javascript. There are lots of other Javascript resources on the net, and you can certainly just try out your own code by writing it to a text file and opening it into pretty much any web browser... Anyway, just an idea. :) |
Re: how to learn developing?
when you start from zero, you shouldn't start with a specific language .
learn what are conditions, loops, arrays, objects, functions etc. in general when you have an abstract understanding of all those basic elements, it's not so hard to transfer it to the language you need. edit: leave ot the objects for some time, concentrate on the basics |
Re: how to learn developing?
Quote:
If you've got a computer sitting in front of you, I see no reason not to use it every step of the way. For each concept taught to a student, have that student put it to practice immediately, and see the results; at the very least, that seems a more enjoyable way to learn a subject. :) |
Re: how to learn developing?
for a beginner, fighting with syntax errors for hours can be even more frustrating than understanding concepts ;)
i don't mean, he should do this for months or weeks without coding, but often you loose overview while fiddling in codelines |
Re: how to learn developing?
Start from the basics. I recommend that you start with some scripting language and move after that to C++, Java or C#.
1. Python has clean and nice syntax for beginners (http://www.codecademy.com/en/tracks/python) 2. After that you could learn basics of JavaScript (http://www.codecademy.com/tracks/javascript) 3. Learn C++ (or Java or C# or some other compiled language) Python + Javascript + C++ is a nice combo in many aspects and especially if you're targeting mainly Sailfish OS (In QML you can use Javascript, Qt is C++ and pyotherside is allowed in Harbour). C++ is not easy but it makes you familiar with memory management, pointers, compiler errors and a lot of other stuff which is very important if you really want to understand programming at lower level without all the abstractions. |
Re: how to learn developing?
I love this question because I was at that point a few months ago. The difference was that I had done some coding in my life, even with Qt/C++, and felt brave enough to try on my own although I had forgotten anything meanwhile. ;)
Not knowing where you come from and what you've already done, my advice to someone without much coding experience would be:
All in all, I think it's right to describe the whole journey as trial and error. While there is good documentation about most everything, for some reason it almost always only covers what you already know. ;) It hardly ever contains the answer why your code doesn't behave the way you expect it. |
Re: how to learn developing?
+1 to Copernicus. Compare every other programming book starting with a lot of theory with K&R, where the very first chapter starts with how to write a "Hello, world" program.
You need the theory and, most importantly, the mindset to begin developing software. But you can pick up most of them by example. |
All times are GMT. The time now is 21:05. |
vBulletin® Version 3.8.8