Skip to main content

Posts

Beginner Java Exercise: GUI Components

An easy transition into creating more visual programs that we're so accustomed too. The following code contains a few form-type fields. We'll first create the form fields, then add them to the panel and then add the panel to the frame. The code is really simple and extremely easy to follow. Reference the notes for an explanation.

An individual's dream

I'm writing this one exclusively for myself. I enjoy re-reading my views and opinions; I want to see how much they change. I hope this one doesn't. What should be an individual's dream? There are some common responses such as good health and a strong family structure. I'm dedicating this article to money. Why are people so obsessed with it? Why do people that achieve it strive for more? Why do countless celebrities commit suicide when they have everything that we strive for? The key to happiness then is not an endless amount of money. For me, it's simply having enough that you don't have to think about it. Every person will feel differently about how much is enough depending on where they live, what kind of dreams they have, etc. The more you think about what you would like to have, the more you realize that most of those things are pure over-kill and will not bring you any additional joy.  All I strive for is to be able to provide for my family, ma...

My favorite God Arguments

As I was writing my last article, I included so many God arguments that I later decided to remove them and post them in a separate article. Without delay, here are some of my favorite God Arguments. 1. I know God exists. If you disagree, prove otherwise. Oh you say you can't prove God doesn't exist? That's because you know he does! Extraordinary claims require extraordinary evidence. This is the way the real world and science work. When you say God exists, you are making an extraordinary claim; therefore, the burden of proof is on you to back up your claim. A position that God doesn't exist is not a "belief," it's the standard position we all start out with until we're indoctrinated into religious schools of thought. People aren't born believing in Jesus. They start out atheist: lacking belief. There is no counter-claim necessary. Nobody has to prove the tooth fairy doesn't exist either. 2. The vast majority of the world believes in God...

Religion in Schools

I'm going to start off by stating some facts. If you've read my previous blogs, you may think that I'm committing the "Appealing to Authority" fallacy, however, it's simply stats that I believe to be necessary to continue. Just a reminder, APPEAL TO AUTHORITY: (ipse dixit also called ad verecundiam sometimes) attempts to justify an argument by citing a highly admired or well-known (but not necessarily qualified) figure who supports the conclusion being offered. I recently watched a presentation by Neil deGrasse Tyson. He states the following: "Ninety percent of uneducated American are religious. The amount of educated religious people: 60%. These are people with Graduate Degrees.  How many scientists in America are religious? About 40%. A graduate degree in any subject, gets you half-way there. Science is an increment from the overall educated people. Now you go to the Elite Scientist, 7% are religious. Here's my concern, when you're educate...

Beginner Java Exercise: Objects and Classes

I like to define a class as a collection of common items that make-up an object's functionality. You'll also hear definitions like, "a class is the blueprint from which individual objects are created." We'll create a class called TV. The TV class will have regular TV operations such as Turn On, Turn Off, Volume Up, Volume Down, Channel Up, Channel Down, Set Channel and even Set Volume. We'll then instantiate that class from the TestTV class. You may notice that in order to instantiate the TV class, we set the data-type as the class name: TV tv1 = new TV(); "A class is essentially a programmer-defined type." Fun Fact: Arrays in Java are treated as objects. The code should be pretty straightforward. Overview of TV.java: Initialize the channel variable and set it to 1 Initialize the volumeLevel variable and set it to 1 Set the on variable to false so that the TV is in the default off position. turnOn() method to turn the TV on turn...

Ad Hominem

One of my favorite fallacies: the ad hominem attack. "An ad hominem (Latin for 'to the man' or 'to the person'), short for argumentum ad hominem, means responding to arguments by attacking a person's character, rather than to the content of their arguments." Types of ad hominem abusive attack the person instead of the argument ("Only a cold-hearted Scrooge would cut this program!") circumstantial attacking the circumstances of the person ("How can you be against relaxing immigration policies. Your grandparents came over from Italy!") tu quoque ("you, too") AKA "practice what you preach." ("Why should I follow this Java style guide? You write pretty sloppy code yourself!") You'll notice this tactic used by politicians constantly. It diverts the attention from what the person can do and focuses on his or her personal characteristics. And that's why I can't listen to political de...

Pascal's Wager

The following lists a few of my favorite Pascal's Wager arguments. It states that all humans bet their lives that God either exists or doesn't. "Blaise Pascal is a seventeenth-century French philosopher, mathematician and physicist. Pascal formulated the wager within a Christian framework. The wager was set out in section 233 of Pascal's posthumously published Pensées ("Thoughts"). These previously unpublished notes were assembled to form an incomplete treatise on Christian apologetics. The wager uses the following logic: God is, or God is not. Reason cannot decide between the two alternatives. A Game is being played... where heads or tails will turn up. You must wager (it is not optional). Let us weigh the gain and the loss in wagering that God is. Let us estimate these two chances. If you gain, you gain all; if you lose, you lose nothing. Wager, then, without hesitation that He is. (...) There is here an infinity of an infinitely happy life to ga...