+ 1

The core of programming..?

Someone asked me to teach programming, but I am a n00b (just finished Java and C# courses). But after completing the courses and reading some books, I realise that at the heart of a programme, it is just an input-output system. Data → Programme → NewData Or in words, a programme takes a data as input and returns a newdata, usually more useful, as output. So, before I teach this, I need the seniors here to confirm. Am I right in this way of thinking? Or is this just for *most* programme but not all?

18th May 2018, 7:46 AM
Jansen Tanu
Jansen Tanu - avatar
7 ответов
+ 1
The programs can also interact with peripherals but this interaction happens through data manipulation so you are in some sense correct
18th May 2018, 8:13 AM
Max
Max - avatar
+ 1
One interesting thing is that you can't generate new data from nothing, everything you do to your data in a program was already in there.
18th May 2018, 9:32 AM
Schindlabua
Schindlabua - avatar
0
So, sometimes the output can be some electrical signal that command the peripherals to do some tasks. Thanks Max.
18th May 2018, 8:28 AM
Jansen Tanu
Jansen Tanu - avatar
0
Yes, that's why informatics are called informatics. Everything a round you - numbers, texts, colors, statistics, the sky - are information in some sense. Informatics is the art of taking information and getting more (or new) information out of them.* Which essentially means taking data, doing something with the data, and getting new data. *This is what fascinates me most about programming, and it is what motivated me the most when I realised it. (Almost) nothing is impossible with programming, you just have to be creative.
18th May 2018, 11:14 AM
Chris
Chris - avatar
0
Schindlabua , what do you mean by the data already in there? If my programme takes string name = "Jansen" and generates string reversed = "nesnaJ", does that mean reversed is already in there?
18th May 2018, 2:11 PM
Jansen Tanu
Jansen Tanu - avatar
0
Jansen Tanu, He probably means the law of conservation of information
18th May 2018, 2:14 PM
Max
Max - avatar
- 1
Yeah but an electrical signal is just data from the view of the program
18th May 2018, 8:29 AM
Max
Max - avatar