“Code Year” and Programming (in JavaScript)

So it’s 2012 now. And we all have our new year’s resolutions. Work out more, eat healthy, be on Facebook less. It’s all stuff we want to improve on… Or at least say we’re trying to do. But how about trying different endeavors… Like programming? Codecademy has a concept that surely will interest some people. And it’s worth trying, whether you’re a nerd or not.

A friend sent me a link to this new programming course called Code Year. Basically, it’s a one lesson a week course that started earlier this week. It teaches people how to program in JavaScript. And if you’re curious, it’s actually a useful programming language… You’ve probably used it while surfing the web. In any case, you get a lesson plan that teaches you some basics and you follow that up with a little “challenge” or application to what you’ve learned.

I decided to try it out myself since I’ve always wanted to learn JavaScript (but just been too lazy to actually buy a book and read up on it or ask my buddy Benji to borrow one of his books). One of the first things that stood out is that it starts users with a console instead of just an empty area to write a block of code. This allows you to see immediate results from what you’ve coded. It also makes finding errors a breeze. Try finding an error in a block of code as a beginner, to only find out you were simply missing a semicolon.

In any case, the early lesson plans are suited for the beginner. So for those with programming backgrounds, it’ll be somewhat boring and quick to complete. You go through the basics of what a programming language is capable of doing and then proceed to learn the syntax and other capabilities of the language. Afterwards, you get the opportunity to apply what you’ve learned through writing your own first application (and thus facing the arduous task of reading and writing a block of code). However, it’s worthwhile and pretty fun to complete.

Code Year definitely opens up an avenue for many people who haven’t even considered with free programming lessons for the masses. But it also opens up even more than just the ability to program. Farhad Manjoo of Slate.com wrote this in his article of Code Year:

But knowing how to code will improve your life even if you don’t ever program anything useful. I learned the Basic programming language when I was a kid, and then I sharpened my programming skills in high school and college. I am by no means an expert programmer, and I rarely take up coding in my job, but I learned enough to alter the way I approach problems. And that’s the most interesting thing about taking up programming: It teaches you to think algorithmically. When faced with a new challenge—whether at work or around the house—I find myself breaking down the problem into smaller, discrete tasks that can be accomplished by simple, repeatable processes.

I think he is accurate on this. I know when I took programming classes in high school, it made me think more “algorithmically”, that is, looking at a problem logically and attempting to solve it in a specific way. In essence, it helps improve our ability to approach problems that we might encounter, whether around the house to a specific task on the job. It makes us think differently about how we see those problems. I don’t just go about things in a guess-and-check methodology these days. It’s analyze the situation and work through it step by step. It also improves your efficiency as well, which is crucial in a day and age where you can’t be wasteful with your time.

Overall, Code Year definitely provides an opportunity to learn to code and does a good job of it for the person that has never touched programming in his or her life. Code Year won’t make you an expert programmer and get you a job at Google after finishing it by the end of the series (though that would be awesome). But it does allow you to think differently and enables people to learn how to program. For some people, they might find their calling and actually enjoy programming. From there, learn Python, Java, C#. Then you potentially get a job at a huge company like Microsoft or Google. Who knows? Anything’s possible right?

Understanding Tiki-Taka… Barcelona’s Game

Taking a break from studying and figuring out applications needed for my group’s project for class, I started watching some of the highlights from the UCL championship game between FC Barcelona and Manchester United from Saturday afternoon. After watching the game on Saturday, I was kinda disappointed that Man United got beat handily by the team from Spain. Granted, I’m an Arsenal fan and definitely no Man United fan, I figured they would have prepared a bit better for the match when in fact they didn’t. The point of this article though isn’t to criticize Man United’s approach because they had to go about their own way to try to beat Barca.

The point of this article is understanding Barcelona’s approach to the game. What people don’t realize is that this team is, for the most part, the polar opposite of what most teams are these days. Most of their team is quite small. They’re also not the fastest team, nor the most physical team out there either. Yet, they manage to win games with such ease that it’s quite unbelievable. Sure, you can account skill for some of it, but when you watch their game, it doesn’t have the kind of explosive appeal that other teams might have, like say Real Madrid, Arsenal, or Manchester United. They don’t counterattack other teams nor do they regularly take powerful shots outside of the 18 (though Saturday’s game was definitely a change of pace with two goals scored from outside of the box from both Messi and Villa).

In order to understand Barca’s game, you have to understand Tiki-Taka. Tiki-Taka is the game in which you try to promote the short passing game, possession and patience. It’s not about getting goals quickly. It’s about controlling the pace of the game to your own pace. By controlling the possession, you not only enable the opportunities that you get to score goals, but also create few chances for your opponents to score, as well as tire them out from having to chase after you. The emphasis here is on the short passing. Rarely do you see a ball go across the field in the air in an attacking position such that they head the ball in. It’s just to create space and maintain control. Continue reading

What Have We Done

These were the lyrics of a song from Good Friday service last night. Powerful, to say the least.

Oh my soul, oh my Jesus
Judas sold you for thirty, I’d have done it for less
Oh my soul, oh my Savior
Peter denied you three times, I have denied you more

As the nails went in, I was standing right there
As you breathed your last, I shook my head and I cried

Oh my God, what have we done, we have destroyed your Son
Oh my God, what have we done, we have destroyed your Son

Oh my soul, oh my Jesus
Judas sold you for thirty, I’d have done it for less
Oh my soul, oh my Savior
Peter denied you three times, I have denied you more

And the blood ran down, I was standing right there
And the water poured, I shook my head and I cried

Oh my God, what have we done, we have destroyed your Son
Oh my God, what have we done, we have destroyed your Son
Oh my God, what have we done, we have destroyed your Son
Oh my God, what have we done, we have destroyed your Son

As the nails went in, I was standing right there
As you breathed your last, I shook my head and I cried

Oh my God, what have we done, we have destroyed your Son
Oh my God, what have we done, we have destroyed your Son
Oh my God, what have we done, we have destroyed your Son
Oh my God, what have we done, we have destroyed your Son
Oh my God, what have we done, we have destroyed your Son
Oh my God, what have we done, we have destroyed your Son

– Lyrics for “What Have We Done”, The Northern Conspiracy from Mars Hill Church

Arsenal’s Woes

As I was working on my second step for my sociolinguistics paper about UK English, I thought I would take a break and write about something else that’s along the lines of the U.K.: Arsenal. If you’re an Arsenal fan, you probably know the ups and downs that comes with being one. This season was definitely one of the more unusual seasons though in that we actually were in it for all four competitions that we were eligible for: League Cup, FA Cup, Premier League, and UEFA Champions League. Yet in a matter of weeks, it’s pretty promising that we’ll go away without silverware yet again. So what went wrong this season? A few things come to mind: Continue reading

Tourney Report – National Qualifiers

So yeah… I do have a somewhat nerdy part of me. That being I play Magic: the Gathering. Here’s a report of a tournament I did, which was submitted to the Starkington Post (and maybe Star City Games, but probably won’t do it). It was a qualifier to play in U.S. Nationals. But a big part of it is, what would you do if you were in a situation where you’re against your friend in the final round to go to Nationals. Knowing who I was… Would you play it out or would you concede? That was my dilemma.

Continue reading

Text to Regex Generator

So on my blogroll, Jason Kottke posted this link: http://txt2re.com/. What is it? For those of you that don’t know, it’s a text to regular expression generator. What the heck is a regular expression? It’s basically a way to match a certain string (or sub-string) or text. It could be anything from looking for punctuations, certain patterns, words, and so forth. I have to admit, regular expressions (or regex) can be fairly tricky sometimes, but it’s definitely a great tool, especially in the computational field. So what is this generator suppose to do? You type in a string of text, then you proceed to select the text you want to search for with your expression by clicking on the links below those letters or words. At the very end, the generator spits out a piece of code that you can use to help find that string. Continue reading

Racial Comments

This week seemed to be one of those weeks where I managed to see random racial comments get thrown out, either on the internet or in person. Not exactly sure why, but I felt this calling to talk about it briefly. You probably heard Alexandra Wallace’s comments with regards to Asians at UCLA. Not sure what really prompted it (though I’ve heard random rumors here and there), but it seems rather idiotic to do so in such a public forum like YouTube and while at a university where nearly 40% of the student population is Asian. Though, I’m not going to completely deny that everything she said was false, but regardless, I’m pretty sure wasn’t smart. I can understand if she’s was trying to be humorous or be comedic (though awkward to do it), but it doesn’t seem like it was the intent of her rant. I will admit though that death threats by others weren’t really warranted either. To inform and educate would have been far better than to try to run her out and let her maintain that stereotype. Continue reading

Buses

I take the bus over to UW from Bellevue whenever I need to go to campus. It saves me money, gas, and car maintenance in the long run.

Whenever I’m on a bus, there’s feels like this unwritten and unspoken code for where to sit. If at all possible, unless they’re a friend of yours, create as much space between you and everyone on the bus. For example, you’re sitting alone on the bus and someone else comes on. That person can sit anywhere they want… Except for the spots adjacent to you. If a spot opens up on a crowded bus that creates space between you and the person next to you, take it immediately. Basically create space between you and the rest of the riders on the bus.

However, every so often, you get that one person that chooses to sit next to you, even though there’s a ton of other seats that would give the both of you a lot if space. As a result, you’re squeezed up against to the window, subtly holding your nose to not breathe in the the weird smell coming from their jacket. A spot opens up to create some space between you and them, yet they still choose to sit right next to you. You wait… And wait… And wait… Still not moving. Still taking in that smell from them. They finally get off on some stop and you can breathe a sigh of relief.

Today was one of those days… Not awkward at all.

How One Church Handled Westboro’s Protests Against Them

Westboro Baptist Church goes around, protesting, putting up signs like “God hates homosexuals”, “God hates this”, “God hates that”. It’s pretty dumb. Well, this time, they go protesting three churches because of the churches’ belief that God loves everyone, which He does. So how does one church respond? You can read it here. (Thanks again to Josiah)

(Note: While, I might be a Christian, I’m not in support of the message Westboro brings to the world. I could go on a rant about their hateful message, but judging them is pretty much as hypocritical as them judging people for their sexual orientation, beliefs, etc.)