hmmm, Tough question. Let me try my best to answer this. first off i am a computing student and have Logic as a core module... in semester 1 of year 1 we covered set theory. it didnt make much sense to me until i started to do apply this to real life situations...
for example.
lets take a set, What is a set? you may think it can only be numbers and letters at this stage BUT they can be substituted by anything, Suppose there are four objects: {ball, car, doll, gun} and four persons: {John, Mary, Ian, Venus}. Suppose that John owns the ball, Mary owns the doll, and Venus owns the car. Nobody owns the gun and Ian owns nothing. Then the binary relation "is owned by" is given as
R=({ball, car, doll, gun}, {John, Mary, Ian, Venus}, {(ball, John), (doll, Mary), (car, Venus)}).
Thus the first element of R is the set of objects, the second is the set of people, and the last element is a set of ordered pairs of the form (object, owner).
The pair (ball, John), denoted by ballRJohn means that the ball is owned by John.
Now how does this benefit me?
with this understanding from set theory, i can create two database one with the Object and one with the persons and know exactly how my relation tables should look like. When i need to get a perticular output from a program which utilizez these database, i won't have o make any changes to the database i will only need to input the function which i learned from set theory into my coding and only then will i get an accurate output. This is more obviouse when creating a calculator to perform a perticular funtion. Without basic knowledge of set theory, making advance programs will be very diffecult.