D
D
dabiankolins12018-12-08 23:39:40
Python
dabiankolins1, 2018-12-08 23:39:40

Benefit in terms of time and memory in real work?

Hello, at the moment I am preparing for the exam in computer science, I am solving 27 (the last task) in it I need to write a program, all the tasks in it are trivial, BUT this is if you do it in the most obvious and simple way, but you can get the maximum for it only if it is profitable in terms of time and memory, the program is really tricky and difficult. Question: in real working programming, the simplicity and clarity of the written code is more important or its benefit in time and memory, does the exam really instill a useful skill?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
Maxim Litvinov, 2018-12-08
@Max-GopheR

In reality, you always have to combine the beauty and density of the code and the resources consumed. Otherwise, it works but is not supported, or it is supported but does not always work))) and to combine, you need to understand both sides well!) Based on this, we can say that you are given useful skills.

A
Alexander, 2018-12-08
@alexr64

Question: in real working programming, the simplicity and clarity of the written code is more important or its benefit in terms of time and memory, does the exam really instill a useful skill?

Now, if your code will be run on a server with 2 processors of 8 cores 3 GHz and 512 GB of RAM, then it is possible in simplicity and clarity.
And if you need to run your code on a microcontroller with 10 MHz / 64kbytes of RAM - here you will remember about the time with memory ...
So, everything is relative and depends on the tasks: for someone, java-script is a fast language, and for someone - then lick each byte.

V
Vasily Melnikov, 2018-12-09
@BacCM

Depends on the area. At the forefront of fashion development, when you need to be first on the market, the priorities are development speed and the ability to quickly adapt and add new features. It is believed that iron is cheaper than people, and it is easier to add a couple of servers than to try to optimize expensively.
In industrial and already established things, they are already starting to look at performance indicators and consumed resources.
As part of the training, it is worth having an understanding and skills in both directions.

V
Vitaly, 2018-12-09
@vt4a2h

Both are important. I'm really not sure that the examiners of the exam understand something about this. But maybe they have some ready-made solutions for educational tasks, with which yours should approximately coincide. So here I agree with you, it can be difficult to fit a program to a template solution.
PS
In fact, the exam does not give you anything and does not instill, you just spend a year of your life so that your school receives high formal indicators. A sort of coaching on the same type of things, which is useless in the long run. Unless you get into a good university.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question