Tag Archives: CONSTRUCTOR

Eloquent Javascript ch.6 – A Vector Type


The example program that this chapter is built around (the table-building program) is pretty difficult to follow. I got to a point where about 80% of it made sense, but decided to just keep moving. I’m glad I did, because I got the first practice problem right! function Vector(x,y){ this.x = x; this.y = y; […]

https://gmcodeblog.wordpress.com/2015/07/30/eloquent-javascript-ch-6-a-vector-type/

Eloquent Javascript ch.6 – Another Cell


The example problem in ch. 5 is so hard and described so minimally (eloquently, in the author’s mind, I’m sure) that I sought out commentary on the book. I hoped some blogger had described the components of the chapter with more detail than our friend Marvin Haverbeke. Forunately I found Gordon Zhu, over at WatchAndCode.com, […]

https://gmcodeblog.wordpress.com/2015/07/30/eloquent-javascript-ch-6-another-cell/

EJB Dependency injection misunderstandings


When I’m doing interviews, I like to ask the following question (provided that the candidate has real life experience with EJBs): There are two stateless session beans, A and B. A has a dependency on B; at what point can bean A use its injected (@EJB) dependency? This turns out to be a tough question, […]

http://tamasgyorfi.com/2014/11/20/ejb-dependency-injection-misunderstandings/

Working with large integers using PL/SQL – Part I – Addition


Scope I would like to compute 75! with all the digits what could not be done directly with the Oracle standard data types. Oracle objects In order to achieve this, we will use the Oracle objects. Oracle objects are defined with the CREATE TYPE and the CREATE TYPE BODY statements. Internally, we must define how […]

Working with large integers using PL/SQL – Part II – Multiplication


Constructor First of all, the constructor that has the 3 “int_part” as parameters is not very convenient, because you have to enumerate the 3 “int_part” parts starting by the last digits of the large integer. We will add a new constructor method that will take a VARCHAR2 as a parameter. We will define this constructor […]