Programming

Algorithm for adding N Natural numbers

Intro­duc­tion In this arti­cle we are going to ana­lyze an algo­rithm to add the num­bers from 1 to 10, that is to say we will cre­ate a func­tion that solves the oper­a­tion 1+2+3+…+10, this func­tion will be pro­grammed in a gener­ic way to cal­cu­late the sum of all the nat­ur­al num­bers from 1 to N, …

Algo­rithm for adding N Nat­ur­al num­bers Read More »

What are Scripts and what are they for? — Example of use in Unity

Intro­duc­tion A Script is a doc­u­ment that con­tains pro­gram­ming instruc­tions in a cer­tain lan­guage, which is the one under­stood by the tool we are using to devel­op any appli­ca­tion that requires pro­gram­ming. Some exam­ples of the use of Scripts For exam­ple, a Script may con­tain a list of instruc­tions for an Arduino to per­form a …

What are Scripts and what are they for? — Exam­ple of use in Uni­ty Read More »

What is an INSTANCE in Programming — Examples in Unity

Intro­duc­tion The word instance in com­put­er sci­ence is used with dif­fer­ent mean­ings, for exam­ple we can talk about the instance of a com­put­er pro­gram to refer to the pro­gram that is being exe­cut­ed. In this arti­cle we are going to see the con­cept of INSTANCE in object ori­ent­ed pro­gram­ming, i.e. the instances that are created …

What is an INSTANCE in Pro­gram­ming — Exam­ples in Uni­ty Read More »

{ What is a LOOP in programming } — Programming theory

The loop is a repet­i­tive con­trol struc­ture that allows us to repeat a sequence of instruc­tions until a con­di­tion is no longer true. In a com­put­er pro­gram, instruc­tions are exe­cut­ed instruc­tion by instruc­tion in a sequen­tial man­ner, this is known as the pro­gram flow. The con­trol struc­tures allow us to alter this exe­cu­tion flow, enabling …

{ What is a LOOP in pro­gram­ming } — Pro­gram­ming the­o­ry Read More »

What is a BOOLEAN? — Programming theory

Def­i­n­i­tion of BOOLEAN A BOOLEAN is a type of prim­i­tive vari­able that is char­ac­ter­ized by being able to be in only two states, "true" or "false". The name of this vari­able is due to the math­e­mati­cian George Boole who cre­at­ed Boolean alge­bra, which is the basis of all dig­i­tal oper­a­tions. Here is a more detailed …

What is a BOOLEAN? — Pro­gram­ming the­o­ry Read More »

{ STRING type variables } — Programming theory

Def­i­n­i­tion of STRING A STRING is a data type used to store text, it is not a prim­i­tive vari­able such as int, bool or float, but a set of prim­i­tive vari­ables of the char­ac­ter type. Here is a more detailed arti­cle about what are vari­ables in pro­gram­ming and the dif­fer­ent types of vari­ables. Syn­tax of …

{ STRING type vari­ables } — Pro­gram­ming the­o­ry Read More »

What is the SYNTAXIS in programming? — Programming theory

Def­i­n­i­tion SYNTAXIS in pro­gram­ming is the set of rules that define the way to write code instruc­tions. Each pro­gram­ming lan­guage has its own syn­tax, that is why it is not con­ve­nient to study pro­gram­ming based pure­ly on writ­ing code, but under­stand­ing the way of think­ing, the basic con­cepts, know­ing the con­trol struc­tures and how to …

What is the SYNTAXIS in pro­gram­ming? — Pro­gram­ming the­o­ry Read More »

What is a FLOAT? Floating Point Variables — Programming Theory

Def­i­n­i­tion of FLOAT The name FLOAT comes from the "float­ing point" numer­i­cal rep­re­sen­ta­tion sys­tem and refers to a type of prim­i­tive vari­able that is char­ac­ter­ized by being a numer­i­cal vari­able that admits a dec­i­mal part, it can be used to rep­re­sent pos­i­tive and neg­a­tive real num­bers with­in a cer­tain range and with a cer­tain pre­ci­sion that …

What is a FLOAT? Float­ing Point Vari­ables — Pro­gram­ming The­o­ry Read More »

Differences between Classes and Objects in Object oriented programming

Intro­duc­tion In this arti­cle we are going to see what are the dif­fer­ences between a class and an object in object-ori­en­t­ed pro­gram­ming (OOP). These are two con­cepts that can help us to solve com­plex prob­lems because they allow us to increase abstrac­tion, that is to say, to look at prob­lems from a broad­er per­spec­tive. It …

Dif­fer­ences between Class­es and Objects in Object ori­ent­ed pro­gram­ming Read More »

What is a REFERENCE in programming

Intro­duc­tion One of the most impor­tant things we have to under­stand in object ori­ent­ed pro­gram­ming is the con­cept of "REFERENCE", know­ing what a ref­er­ence is and how to find it will allow us to manip­u­late any object, access its data and its pub­lic func­tions. In this arti­cle we will see the con­cept of Ref­er­ence in …

What is a REFERENCE in pro­gram­ming Read More »

articulo y video sobre programacion basica c# para unity, como programar una sentencia if

IF Statement — Decision Control Structure

Intro­duc­tion The IF state­ment allows us to make a deci­sion based on whether a con­di­tion is true or false. The sim­ple deci­sion is to per­form an action if the con­di­tion is true and oth­er­wise do noth­ing. The dou­ble deci­sion allows us to per­form a sec­ond action if the con­di­tion is false. In the fol­low­ing video you can …

IF State­ment — Deci­sion Con­trol Struc­ture Read More »

How to call FUNCTIONS defined in another Script. Examples in C# Unity

Intro­duc­tion In this arti­cle we will see how to exe­cute func­tions defined in one script from a sec­ond script. First we look at the gener­ic pro­ce­dure. IMPORTANT Here you have a video about access­ing call­ing func­tions from anoth­er script. All the infor­ma­tion is pre­sent­ed to you as a gener­ic exam­ple, two scripts, "Scrip­tA" and "ScriptB", the func­tion we …

How to call FUNCTIONS defined in anoth­er Script. Exam­ples in C# Uni­ty Read More »

algorithm to determine if a number is even or odd in unity

How to know if a number is EVEN or ODD in programming

Intro­duc­tion In this arti­cle we will see how to tell if an inte­ger is odd or even using pro­gram­ming. We solve the algo­rithm in C# lan­guage for Uni­ty. An even num­ber is a num­ber that is a mul­ti­ple of 2, that is we can express that num­ber as 2 mul­ti­plied by anoth­er num­ber and the whole …

How to know if a num­ber is EVEN or ODD in pro­gram­ming Read More »

Scroll to Top
Secured By miniOrange