Kodi Code Q&A & Career
#1
Hello Kodi,

I have a few questions, interview style.

I am not tech savvy so bare with me please.

Q1. Why was Kodi written in C++?
Why are addons in python?

Q2. Why is Kodi not written in Java or Python?

Q3. Would there be an easier code to make Kodi?

Q4. If someone were to only learn one code language, what would you suggest?

Q5. For a person who is only able to work from home and wants to learn a new career in IT, what career would you suggest? If that person chose a career in programming, what language code do you suggest?


Thank you for answering these questions.

I ask these questions as I love Kodi, recently became disabled and want pursue a career in IT.
I think learning code is exciting but overwhelming by the difficulty and complexity of codes. Maybe code is not right for me?

Thank you for your years of work and dedication to Kodi and volunteer service to the public with your open source software.

Thank you Team Kodi and developers.

-Paul
Reply
#2
(2017-11-15, 23:44)TorontoPaul Wrote: Hello Kodi,

I have a few questions, interview style.

I am not tech savvy so bare with me please.

Q1. Why was Kodi written in C++?
Why are addons in python?

Q2. Why is Kodi not written in Java or Python?

Q3. Would there be an easier code to make Kodi?

Q4. If someone were to only learn one code language, what would you suggest?

Q5. For a person who is only able to work from home and wants to learn a new career in IT, what career would you suggest? If that person chose a career in programming, what language code do you suggest?


Thank you for answering these questions.

I ask these questions as I love Kodi, recently became disabled and want pursue a career in IT.
I think learning code is exciting but overwhelming by the difficulty and complexity of codes. Maybe code is not right for me?

Thank you for your years of work and dedication to Kodi and volunteer service to the public with your open source software.

Thank you Team Kodi and developers.

-Paul

Hello Paul,

now some answers, IMHO Smile

Q1. Why was Kodi written in C++?
Why are addons in python?
* C++ is most versatile and allows most freedom for programmers. Also when compiled, has the fastest execution (except assembler which I think nobody uses nowdays anyway because anything would take ages to program)
* Python is interpreted language (or is compiled on run) and as such offers advantages to be used as "scripting" language of some other project. Also easier syntax than C. With C/C++ much can go wrong, pretty complex syntax, it depends on the programmer to make the code understandable, Python enforces structure of source code.

Q2. Why is Kodi not written in Java or Python?
* Because for bigger projects it is better to use C. Java is a piece of crap. I work at IT company (not as a programmer though, but Network Admin) and a collegue programmer showed me the exactly same app written in Java and in C, and C was like 10x faster. Python is not good for distributing apps, since it is mostly interpreted (can be compiled but I am not sure how big the code would be etc)

Q3. Would there be an easier code to make Kodi?
* does not compute Smile I can't see sense in this one?

Q4. If someone were to only learn one code language, what would you suggest?
* there is NO instant success, and one answer to life, universe and everything. Depends what would you want to do. If you ask as a career, probably Java (even though it is slow is used often) or Javascript.

Q5. For a person who is only able to work from home and wants to learn a new career in IT, what career would you suggest? If that person chose a career in programming, what language code do you suggest?
* Hmm, hard to tell. Call me elitist, but I don't believe one can just decide to be a programmer at like 30. You need to LOVE that and do that since you were a kid. You need to think like a programmer. I have been programming as a kid and did all sorts of things but decided programming isn't for me. It's like asking "should I be a football player?". Well, you can't if you're not TALENTED for football. So it's hard to tell. It is probably feasible, but 99% chance you will be just one below average programmer. There are people who have been programming sice the age of 15 or went to university to learn programming etc - you can't compete with them. But if there's some small market opportunity - why the hell not. Just try and you'll see if it's the right thing for you. Maybe Javascript, it is used in web programming which is in high demand nowdays.

Hope my answers help at least a bit.

Cheers,
Reply
#3
1) speed. python is a scripting language, not suitable for media. also the xdk (original xbox dev-kit) was for c++. when interacting with something as slow as a network, the speed of python is sufficient. since more peeps can spit out python scripts than c++ codes, it's the logical choice.

2) same question as 1.

3) ?

4) if you want to learn to code, the first thing you need to understand is that they are called languages for a reason. focus on the *what, how and why*, do not focus on the language you state it in. it's just a language. i would start as low level as you can stomach, i started with assembly (well, truth is i started with basic but i wanted to do more so the c64 forced me to do assembly) but i realize most peeps won't these days. do not go for a high level, high capability abstraction first, then you learn nothing but how to be a code monkey. and for the love of everything shiny do NOT start by studying kodi's code.

5) see above answer.
Reply
#4
Same as above but just to add if your wanting to learn to program you won't be doing IT you will be doing computer science they are very different things.
Reply
#5
Thank you for the answers. The answers were helpful. I am not in comouter science at all but I am tech savvy in general but could not understand how Kodi works.

I would love to learn programming but it seems like it would take many years of time that I dont have to spare. I dont know how anyone learned code at 15 when I never heard of programming.

Over the last year I have been trying to figure out which code to learn but still havent figured it out. Originally, I figured learning java and android would be the best since java is used in everything and android is smartphones and streaming devices are Android boxes, so it made sense that learning Android development would be the right choice but then just realized Kodi is not even written in Java but C++. Then found out addons are written in python.

So I guess learning Android development would be useless to learn for Kodi? Or Android boxes?

I wanted to find out which language to learn if I wanted to work with Kodi. So addons are only written in Python, thats because its shorter code and easier.

Kodi is written in C++ because its a big program with so many features?
But not big in sense of storage size.

I still dont understand where Android and linux comes in the picture of Android boxes and Kodi.

Why and how does Kodi use Android and linux or vice versa??

Is it like linux is the OS with android running on the linux system? Then the android system is where kodi program is run from? Because Android is light and fast enough to run on light hardware and run kodi?

I was thinking of learning C++ and look at Kodis code to understand how it works but you said thats a bad idea? Why is it a bad idea? Too much code?

If I learn to make addons then I only need to learn Python? And no C++?

If I wanted to make a build or a fork of Kodi, I would need to learn C++? Right?

I see places online says you can learn in a month or less but that sounds to good to be true. How long would it take to learn C++? Or Python?

I want to try some type of IT or computer science career to work from home or free lance because I am sorta homebound and unable to work a normal job anymore.
Reply
#6
>> So I guess learning Android development would be useless to learn for Kodi? Or Android boxes?

There is Kodi for Android...

>> I wanted to find out which language to learn if I wanted to work with Kodi. So addons are only written in Python, thats because its shorter code and easier.

And because Python is easily integrated.

>> Kodi is written in C++ because its a big program with so many features?

C is faster. In terms of executing faster.

>> I still dont understand where Android and linux comes in the picture of Android boxes and Kodi.

There is Kodi for Android and Kodi for Linux.

>> Why and how does Kodi use Android and linux or vice versa??

There is Kodi for both OS.

>> Is it like linux is the OS with android running on the linux system?

No. Android is OS, Linux is OS.

>> Then the android system is where kodi program is run from? Because Android is light and fast enough to run on light hardware and run kodi?

Android is NOT light Smile Nor fast.

>> I was thinking of learning C++ and look at Kodis code to understand how it works but you said thats a bad idea? Why is it a bad idea? Too much code?

No, it is simply difficult to learn C++.... Not lear per se, but it is difficult to programm in C/C++/C# etc.

>> If I learn to make addons then I only need to learn Python? And no C++?

Yes.

>> If I wanted to make a build or a fork of Kodi, I would need to learn C++? Right?

No. Making a bulid is in no way connected to programming, any monkey cand do that - that's why there are so much builds. And they all suck Smile

>> I see places online says you can learn in a month or less but that sounds to good to be true. How long would it take to learn C++? Or Python?

You can learn the SYNTAX, which doesn't mean you can actually program. You can lear football rules in 5 minutes, but that doesn't mean you can be a good football player, right? Smile

D.
Reply
#7
would seem to be appropriate.

Image
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi Code Q&A & Career0