S
S
Sergey Titov2015-01-24 11:44:18
PHP
Sergey Titov, 2015-01-24 11:44:18

Where is discrete mathematics needed in web programming?

Hello everyone, my name is Sergey (I don’t know why I said this, to defuse the situation a little :D )
The bottom line is this, I am a first-year student, I study in the specialty "Informatics and Computer Engineering", at the same time I study php and work with phpMyAdmin (i.e. with bd), the teacher subtly hinted that without her subject it would be impossible to work with bd. But, working with phpMyAdmin, I do not see any need for a discrete, that's actually the question: where is it needed there?
It’s just that the subject is more interesting to study when you realize that you will need it, but, alas, I don’t have such an awareness yet.

Answer the question

In order to leave comments, you need to log in

10 answer(s)
Y
Yuri Shikanov, 2015-01-24
@Nuboskill

Obviously, this is work with sets (combinatorics) - their intersection, union, difference, etc. - all this is widely found in the database. Also mathematical logic.
Learn SQL better than phpMyAdmin - there will be more benefit and understanding.

R
raiboon, 2015-01-24
@raiboon

He's lying, you don't need a discrete. Do not under any circumstances teach it. And that is a non-illusory chance to lose the opportunity to become a php coder.

A
Alexander Pomosov, 2015-01-24
@Alpi

I have a book
(Novikov - Discrete Mathematics for Programmers, 3rd ed.)
www.ozon.ru/context/detail/id/3510820
It is very convenient to put it under your arm when you work

O
OnYourLips, 2015-01-24
@OnYourLips

In PHP it is not needed: there are practically no such tasks.
With extremely rare exceptions.

V
Vlad Zhivotnev, 2015-01-24
@inkvizitor68sl

Watch what you write.
In general, any developer needs to know combinatorics. But it has the same relation to discrete mathematics as the search for a discriminant has to higher mathematics - it seems to be higher mathematics, but it is not very higher.
You will need a fully discrete if you are writing serious projects - search engines, data analysis, forecasting something.
In general, I can say that it is better to learn and teach discreet quality. Although every teacher considers his subject the most important, in this case, the aunt is not far from the truth - this is one of the few subjects worth spending time on at the university, because teaching on your own is difficult and time-consuming, and knowledge from the university will never become outdated later in this region. Well, and another discreet is usually given to experienced teachers, because of which to fly out of the university is a piece of cake.
Here are teachers in economics, design, development (NOT development algorithms), information systems, they can swear as much as they like, but they themselves know that they are deep theorists, and with a monstrously outdated knowledge base (which is worth one design training in RedRose - it in world no longer exists).

E
Eugene, 2015-01-24
@Nc_Soft

Not really needed.
(V/o is)

M
mamkaololosha, 2015-01-24
@mamkaololosha

> that without its subject unreal to work with DB
And you ask her to show an example. What is there to ask? She is a teacher and let her be responsible. When you have 10,000 servers, 1,000,000 uniques, and so on, like Facebook, then you will start thinking about query optimization in different topologies and so on.

P
Puma Thailand, 2015-01-24
@opium

In the database, it is almost not needed anywhere.

I
IvanOne, 2015-01-24
@IvanOne

if you take a simple web, that is, blogs, there are all sorts of shops and other crap, now languages ​​\u200b\u200bhave acquired excellent frameworks that have a good ORM, which in turn allows you not to mess around with SQL queries, so understanding is needed, but deep knowledge is not needed. I myself used to study Mysql and the query language a lot, then I started coding in jang and now it’s just writing my queries in a bastard. Another thing is the various CRM, ERP and other delights for business, there it will come in handy without a doubt.

M
Maxim Kudryavtsev, 2015-01-24
@kumaxim

Basic operations on sets: intersection, difference, exclusion, etc. Above they wrote about combinatorics - in principle it is.
Also, listen carefully to the teacher when you wake up SDNF and SKNF, it will greatly help in compiling complex conditions in the code.
As another option - tasks to find the shortest path (Dijkstra's algorithm, the traveling salesman problem). Application - from which of the warehouses it will be faster to deliver the order to the client of the online store.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question