##
I can hear JFK rolling in his grave
*July 10, 2013*

*Posted by truthspew in Uncategorized.*

Tags: math, science

add a comment

Tags: math, science

add a comment

Recall his speech on the moon mission:

[http://youtu.be/g25G1M4EXrQ]

And now read this from the Wall Street Journal on how students are initially gung ho for math and science and then shut down because it’s hard. Really? Math is hard? What I’ve noted through the progression is that it’s just more operational symbols that get introduced, first functions, trigonometry, calculus, linear system and the list goes on.

Are we really a nation of mediocrity now? We’d do well to listen to the words of President Kennedy. We choose to go the the Moon…not because it is easy, but because it is hard!”

##
Bacon: 1 slice subtracts 9 minutes of life – false!
*November 26, 2012*

*Posted by truthspew in Uncategorized.*

Tags: bacon, I died in 1873!, math, nutrition

6 comments

Tags: bacon, I died in 1873!, math, nutrition

6 comments

I’m sure you’ve all run across this. So lets do a little math:

Let’s say I have bacon once every two weeks, four slices.

So that’s 26 times a year times 4 = 104 total slices per year.

104 slices times 9 minutes gives us 936 minutes. Or a total of 15.6 hours off my lifespan. Even if I were to eat twice that it’s only 31.2 HOURS!

Let’s take it to the ridiculous though – 4 slices of bacon every day for a year. 365 times 4 = 1,460 slices times 9 minutes is 13,140 minutes or 219 hours, or 9.125 days.

Now consider average lifespan for a human male is 72 or so years. 9 days aren’t going to make any difference.

So in essence it’s all bunk. Just thought you might want to know that and eat as much bacon as you want.

##
What does it take to become a computer programmer
*September 16, 2012*

*Posted by truthspew in Uncategorized.*

Tags: algebra, BASIC, C, COBOL, Learning programming, math, PHP, Programming, Python

add a comment

Tags: algebra, BASIC, C, COBOL, Learning programming, math, PHP, Programming, Python

add a comment

So this thread on Slashdot got me to thinking.

A few years back I was doing program reviews for the State Department of Education. It was an eye opening experience I’ll tell you that. By and large most of the teachers I had interacted with were on the ball, but there were a couple that had I the ability, I would have terminated immediately.

One was a class in which they were learning about the Microsoft Office suite. A laudable goal I suppose. But me being the never happy with the minimum type had a sour taste on this review.

Why? Because on the day we were there the class was working on a payroll spreadsheet. But what really caught my attention was the fact they were using a tax lookup sheet, a physical piece of paper that showed the tax for a given amount.

So I asked the teacher if she had anything planned to use VBA or Visual BASIC for Applications.

The teachers answer was that you needed all sort of math to program a computer and my response was “If you have a semester of Algebra I you can get by.”

In fact I’ll clarify, all you need to do is understand Boolean logic.

There are several constructs in Boolean:

AND

OR

XOR

NOT

Believe it or not, you learned about this in Algebra I. Yes you did, because Boolean math aka Logic is part of it.

I’ll take it one by one. But first know that for an evaluation to be true the conditions particular to the operation need to be met.

In the case of AND, both inputs need to be true in order for the output to be true.

In the case of OR, only one or both of the inputs need to be true for the output to be true.

In the case of XOR (Exclusive OR), only one of the inputs can be true, not both, for the output to be true.

In the case of NOT, the input is inverted. If a true condition is the input the output is false.

As for mathematics themselves, if you know about integer operations such as modulus, absolute value, and a few other tricks you have the skill set to learn a programming language.

All you have to do is learn the syntax of a programming language. The BASIC language is fairly forgiving. But PHP, Python, and a whole slew of languages, even the overly verbose COBOL use plain English in most cases.

Sure, in some there are constructs like:

if(a && b = 1)

Which translates to do something “if both a and b are true”.

Yeah that simple.

A loop:

`for(a=0,a<=10,a++)`

Translated that means execute a loop using variable a as the index. Continue to run the loop while a is less than or equal to 10. The final part that ‘a++’ says to increment a.

Simple.

That’s C style above.

BASIC is even easier.

`if x=y then`

Whatever follows the ‘then’ keyword is executed if the test x=y evaluates as true.

So let’s say x=1 and y=1 – that would evaluate to true because X=Y.

The for loop:

`for i = 1 to 100`

Use variable i as your index variable. Loop through until 100 loops.

Hope that demystifies programming just a little bit for you.