Relative Content

Tag Archive for theory

Array Multiplication and Division

I came across a question that (eventually) landed me wondering about array arithmetic. I’m thinking specifically in Ruby, but I think the concepts are language independent.

Array Multiplication and Division

I came across a question that (eventually) landed me wondering about array arithmetic. I’m thinking specifically in Ruby, but I think the concepts are language independent.

Equivalence partitioning understanding A<5 and B<5

I do not understand the following example. It says that a function X will be executed if either of A and B variables will be lower than 5. The go on and explains that there are three valid equivalence classes for inputs:

Equivalence partitioning understanding A<5 and B<5

I do not understand the following example. It says that a function X will be executed if either of A and B variables will be lower than 5. The go on and explains that there are three valid equivalence classes for inputs:

Concatenating strings given a BNF grammar

<Definition> ::= <Name> <LeftPar> <param> <RightPar> <Name> ::= <Letter><LetterTail> <LetterTail> ::= <Letter><LetterTail> | ‘’ A question that confused when doing the derivation is the following. Lets say after matching f++u++n we match the last char ‘c’ with LetterTail and then match c with letter. When we peek now, it is ‘(‘ but how come we […]

Why not expose a primary key

In my education I have been told that it is a flawed idea to expose actual primary keys (not only DB keys, but all primary accessors) to the user.