MrValdez's Blog

How I teach Python's Anonymous functions

Posted on March 1, 2018

A lot of people switching to Python tells me that they don't understand lambda or anonymous functions. For the purpose of teaching programming beginners this, I make sure that they first understand the following fundamentals:

  • data types
  • lists
  • list.sort()
  • functions

The fundamentals of anonymous functions

Data types

While its basic, I need to check that my students have at least a basic knowledge on this. This is what I cover before the first hour of class is over.

Lists data type

Whether the students know of data type from previous programming languages or not, I'll introduce lists ...

[read more]
Categories: Programming, Python

Python Philippines is a diverse community

Posted on Feb. 21, 2018

Philippines is a country. Metro Manila is a part of the Philippines.

We started Python Philippines in Manila because a lot of tech companies operated here. It also helped that the region is where most of the board of trustees worked, making it easy to host meetups. By PyCon 2016, we've done 3 Python Conferences at Manila.

But the Philippines country is large and diverse with different cultures. We don't want Python Philippines to be primarily known as a Manila group. We want to spread the programming language to other parts of the country.

Different region in the ...

[read more]
Categories: python philippines

Why does Python Philippines have a code of conduct?

Posted on Feb. 20, 2018

One of the great philosophy of Python the programming language is that explicit is better than implicit. As the council leaders trusted by the Python Philippines community, we practice what we preached. We try to be explicit about good behavior between people. So we've adopted a Code of Conduct.

You'd think that this is unnecessary. But we are always surprised on how useful a CoC is. It not only encourages people to be nicer to everyone, but it gives us grounds for kicking toxic people from our groups.

Look at the PyCon Ph 2016's group photo by ...

[read more]
Categories: python philippines

Python Conference Philippines (PyCon) 2018 is almost here

Posted on Feb. 17, 2018

Ever since Python Philippines have been recognized by SEC as a non-profit, volunteer run organization, we've been hosting a yearly conference for Python programmers, aimed at all skill levels. Because of the spirit of volunterism, we have a high bar for the conference as we do not want to let the community down. And it shows.

With the 6th PyCon Philippines almost here, let's look at the topics that have turned up in the previous years:

  • Python programming language
  • Coding communities
  • Basic Python programming
  • Good coding practices
  • Debugging, Deployment, Documentation, and Testing
  • Devops
  • Data analysis
  • Artificial Intelligence
  • Natural ...
[read more]
Categories: python philippines

Why I love playing at the Global Game Jam

Posted on Jan. 23, 2018

The Global Game Jam is held every January, usually at the last weekend of the month. A Game Jam is basically a Hackathon1 where you have roughly 48 hours to make a game. To make things interesting, your game should align with a theme that will be revealed once the event start. There are no prizes to be won except the glory of making a game under a deadline.

At the game jam, you can join as an individual or as a team. Preferably, you make a new team at the event itself. This will help you make new ...

[read more]
Categories: Global Game Jam, Essays

Global Game Jam 2010: Programming

Posted on Jan. 16, 2018

Join me as we look at what went right and what went (hilariously) wrong on the technical side


Like I mentioned in my experience on GGJ2010:

I've always wanted to be a game programmer. I will directly attribute my skills (and blind spots) on coding to my early attempts at making a game engine.

Too bad I've never made an entire game. Its always demos and proof of concepts for my engine. That changed when I joined the Global Game Jam on 2010.

This is the first time I made a non-demo game in python and pygame. Frankly ...

[read more]
Categories: Global Game Jam, Programming

Global Game Jam 2010: Psychic Fighters

Posted on Jan. 16, 2018

Deception-based Fighting Game. Two Psychics slug it out!!

Game description

Psychic Fighters is a two player game of deception. The goal is to outsmart your opponent with feints. The game is played in turns, with one player being an attacker and the other player being the defender.

How to run

  1. To play, first download or clone the game from my Github repo.
  2. Download Python (preferably Python 3.4+). Either put the python executable in your path or include the path when running the shell commands
  3. Change directory to the game. If you downloaded as a zip file, unzip first.
  4. Open ...
[read more]
Categories: Global Game Jam, Games

Global Game Jam 2010: My Experience

Posted on Jan. 16, 2018

I've always wanted to be a game programmer. I will directly attribute my skills (and blind spots) on coding to my early attempts at making a game engine.

Too bad I've never made an entire game. Its always demos and proof of concepts for my engine. That changed when I joined the Global Game Jam on 2010.

Global Game Jam (GGJ)

I was an admin for the Manila Chapter of IGDA (International Game Developers Association) during 2009 - 2011, and we were coming up of ways to promote the local game industry. One of the admins have just heard ...

[read more]
Categories: Global Game Jam

Self improvement

Posted on Jan. 6, 2018

2018 goal

For 2018, I've decided to do more writing. Let's see how long this will last.

Self improvement

I am a big fan of always improving. Its satisfying to me to look back and say, I did not know this before, but now I know; and knowing is half the battle.

Bruce Lee flowchart to self improvement

I relate to this motivational poster and want to do more of this.

In previous years, I used an excuse that I have too many things to do and not enough time. So on 2018, I'll also be experimenting with "a year of less".

As ...

[read more]
Categories: Essays