Project

--Originally published at Alan TC201

The last version of my project is finished, my parther and I made some video games in Java. Dafne did a puzzle, I did a pong.

The pong was made following diferent totorials and I borrow some of the most dificult code, in this case the dificulty, and the puyisics of the ball.

The resourses I use to made this pong was very elaborate, but the principal was the youtube channel Jaryt Bustard. Watching this video was the perfect way to started program my project, and in the end mine looked very similar.

http://codereview.stackexchange.com/questions/27197/pong-game-in-java

http://staticvoidgames.com/tutorials/swing/swingPong

You could say that my ping was a variation between my knowlage and all this different pages. It was difficult to understand how the pyhisics of the ball was going to be but with all the information I found I knew that I had to use the angles of the ball and throw it back in its reverse angle.

The best part of this project was the libertie, I could do what I wanted and I did this game because my father used to play it when he was a child and now he could remember those time with this game.

Here I am going to left the blog of my parther that did the puzzle.


Project

Course Review

--Originally published at Alan TC201

Another semester has gone by and is time to do our last projects, exams and more, but first I’m going to do a review about the Object orientated programming course.

Course Review

This class was very interactive and different from other, you have a lot of freedom but at the same time you have to use that freedom wisely, you can’t go around doing nothing in this course.

Course Review

You need to do all the work, investigate for yourself and learn for yourself, because that’s the way of learning nowdays, you have the internet with all the information you need. So the Ken is there to help you and guide you in tings you are not understanding, the wsq’s and the masteries are there to practice your abilities the project is there to show your abilities, and your blog, github, Lynda.com and twitter is there to teach you to be connected and find information. All in the course is extremely put together to work.

Course Review

And then you have extras, for example sometimes we receive from Ken some information about history of programming, this things had nothing to do with the course but where very interesting, we used different programs like python or java like if they have been there forever, but no, those things also had its history, and that was the grate about kens class this semester, you could have everything as long as you were responsible, but you also received more, like extras.

Course Review

So in conclusion, this class is very good, but only if you adapt to it.


Course Review

WSQ13 – James Gosling

--Originally published at Alan TC201

In this video of the Triangulation Podcast the men invited is James Gosling one of the inventors of Java. His passion in the computers came in a very yong age, when his father show him an old computer and James got fascinating with the device. He started to get information about that, and then in school he discover programing he started to work in satelital programing and he used to skip school a lot of times, but their teachers where happy that in such a yong age we could be gaining money in something very new in those days.

WSQ13 – James Gosling

He worked in IBM, their first projects was software, the idea of JAVA came from a small group that saw how everything was changing hardware to software, they saw that they run with problems that people that were not preper to program did.

WSQ13 – James Gosling

This podcast was more difficult to understand than the past one. It was mor tectician, but the core, the story of Java was very interesting, the highs, the lows, the conflicts with google, oracle and everythins,

WSQ13 – James Gosling

You can see how everything happend and what is know teaching kids to learn java, in this case Minecraft.

WSQ13 – James Gosling

 

 

 


WSQ13 – James Gosling

WSQ 12 – Ward Cunningham

--Originally published at Alan TC201

I used to herd podcast about video games in the past, but right know I’m to busy for that kind of luxuries. I’m going to be sincere, I was hoping to get bored with this video, Ward Cunningham, the creator of te Wiki! the goddamn Wiki!

WSQ 12 – Ward Cunningham
It is very incredible how a man so simple could have contributed in such a big way in computer programming, in the internet and in sharing information in general. Yes the Wiki was the main topic, but in the podcast they also talk about how were the school days of Ward, how he started to get interested in this big and noise devices that where the first computers.

WSQ 12 – Ward Cunningham

Then the conversation turn to small talk the Object oriented program, that is exactly that purely object oriented.

WSQ 12 – Ward Cunningham

Then the more important part was the creation and life of the wiki, how it was created, why it was created, its influence to the distribution of online information, menciona Wikipedia and how is the biggest representation of this type of data, etc.

WSQ 12 – Ward Cunningham

PD: Something wird was that the advertisements where actully fun to watch, I don’t know way.


WSQ 12 – Ward Cunningham

Inheritance and polymorphism

--Originally published at Alan TC201

Inheritance is when a ‘class’ derives from an existing ‘class’. So if you have a Person class, then you have a Student class that extends Person,in other words everything that the class person has is in the student person as well.

Inheritance and polymorphism

 

Polymorphism deals with how the program decides which methods it should use, depending on what type of thing it has. If you have a Person, which has a read method, and you have a Student which extends Person, which has its own implementation of read, which method gets called is determined for you by the runtime, depending if you have a Person or a Student.

Inheritance and polymorphism

Cuando una subclase extienede de otra pero esa subclase tiene su propio parametro


Inheritance and polymorphism

WSQ10 – College Advice

--Originally published at Alan TC201

I was very impressed of the fact that this blog post has aged very well. It was published in 2005 by Joel Spolsky, and a lot of things he said are still relevant in 2016. The points that interested me the most was about try to learn C, not C++, Java or python. C is the mother language so if you understand C is very probable it will be easier to learn about their sons. Like some people say, if you learn latin in will be a lot easier to learn its derivatives.WSQ10 – College AdviceWSQ10 – College Advice

The second one was the one that said to learn microeconomics. It is very common that you have your work and that everything you do will be about that specific job, that everything else will be fix or ready for you, but no, you need to be prepared to face different situations, one of them seems to be the economic one, maybe you are an awesome programmer but if you do not know how the world works it will be very difficult to get used to it.

WSQ10 – College Advice

The last thing is about de good summer internship, that is easy to say than done, in my country this types of things tend to cost a lot, and in the summer is the time when I save money to bought the books and things I need for the next semester of study. So when the opportunity comes I sure will try it out.

WSQ10 – College Advice


WSQ10 – College Advice

WSQ07 – Babylonian Method in JAVA

--Originally published at Alan TC201

This babylonian method was a little difficult, simply because compared to python, Java has a very weird syntax. I had to use a method of this person that I foun on the internet. (http://www.dreamincode.net/forums/topic/43600-babylonian-algorithm/)

Here is a link to understand Babylonian Method  (https://www.deltacollege.edu/dept/basicmath/Babylonian.htm)

Something new that I use in the s program was the scaner (http://puntocomnoesunlenguaje.blogspot.mx/2012/08/java-scanner.html)

WSQ07 – Babylonian Method in JAVA

BLOG POST NOT FINISH

WSQ07 – Babylonian Method in JAVA


WSQ07 – Babylonian Method in JAVA

Masterie: visibility modifiers in Java

--Originally published at Alan TC201

Masterie: visibility modifiers in Java

“Java provides a number of access modifiers to set access levels for classes, variables, methods and constructors. The four access levels are:

  • Visible to the package. the default. No modifiers are needed.
  • Visible to the class only (private).
  • Visible to the world (public).
  • Visible to the package and all subclasses (protected).

Default Access Modifier – No keyword:

Default access modifier means we do not explicitly declare an access modifier for a class, field, method, etc.

A variable or method declared without any access control modifier is available to any other class in the same package. The fields in an interface are implicitly public static final and the methods in an interface are by default public.”
Info( http://www.tutorialspoint.com/java/java_access_modifiers.htm)

Controlling Access to Members of a Class

Access level modifiers determine whether other classes can use a particular field or invoke a particular method. There are two levels of access control:

  • At the top level—public, or package-private (no explicit modifier).
  • At the member level—public, private, protected, or package-private (no explicit modifier).

A class may be declared with the modifier public, in which case that class is visible to all classes everywhere. If a class has no modifier (the default, also known as package-private), it is visible only within its own package (packages are named groups of related classes — you will learn about them in a later lesson.)

At the member level, you can also use the public modifier or no modifier (package-private) just as with top-level classes, and with the same meaning. For members, there are two additional access modifiers: private and protected. The private modifier specifies that the member can only be accessed in its own class. The protected modifier specifies that the member can only be accessed within its own package (as with package-private) and, in addition, by a subclass of its class in another package.

The following table shows the access to members permitted by each modifier.

Access Levels
Modifier Class Package Subclass World
public Y Y Y Y
protected Y Y Y N
no modifier Y Y N N
private Y N N N

The first data column indicates whether the class itself has access to the member defined by the access level. As you can see, a class always has access to its own members. The second column indicates whether classes in the same package as the class (regardless of their parentage) have access to the member. The third column indicates whether subclasses of the class declared outside this package have access to the member. The fourth column indicates whether all classes have access to the member.

Access levels affect you in two ways. First, when you use classes that come from another source, such as the classes in the Java platform, access levels determine which members of those classes your own classes can use. Second, when you write a class, you need to decide what access level every member variable and every method in your class should have.

Let’s look at a collection of classes and see how access levels affect visibility. The following figure shows the four classes in this example and how they are related.

Masterie: visibility modifiers in Java

Classes and Packages of the Example Used to Illustrate Access Levels

The following table shows where the members of the Alpha class are visible for each of the access modifiers that can be applied to them.

Visibility
Modifier Alpha Beta Alphasub Gamma
public Y Y Y Y
protected Y Y Y N
no modifier Y Y N N
private Y N N N

Info (https://docs.oracle.com/javase/tutorial/java/concepts/)

 

BLOG POST NOT FINISH, THIS IS ONLY THE INFORMATION

Masterie: visibility modifiers in Java

 

 


Masterie: visibility modifiers in Java