Wednesday, July 29, 2015

Java functional programming rant: Online Tutorials taking the easy way out

I'm trying to figure out how to replace this bit of Java code:

for(String str: list){
    if(someCondition(str)){
       list2.add(doSomeThing(str));
    }
    else{
        list2.add(doSomethingElse(str));
    }
}
with an equivalent using Java 8's functional programming techniques (lambda expressions, etc.).

Spent a couple of hours searching for online tutorials, but they all seem to take the easy way out when they show how to migrate from "old Java" to "new Java" - the examples they offer include if statement without else, if statement just checking for null, etc. Fortunately, this entry on StackExchange may have what I'm looking for:


Replacing if-else from for loops with streams

Sunday, July 26, 2015

Parallettes One, Level B, Phase 1: Week 8 Report

Progress on Workout 1 Exercises


Plank Push-Ups - 6 reps

Plank Jump to Dip - My best is still around 10 reps/set, but once I pushed the reps on the pushups, I had to cut a bit on this one.

Battle Rams - About 8 reps/set with Version 2.

Tuck Hold - I'm more in the 5-7 sec. range now.  Still need to improve stability.

Mt. Climber Holds -  Around the 9-10 rep range


Progress on Workout 2 Exercises


Tuck Swing to Top Plank - Still not keeping close track of the reps.  Somewhere in the 8-10 range.

One Leg Shoulder Stand Hold - 5-7 sec. hold range per leg.

Tuck Swings - Same as last week

Assisted Inverted Presses -  6 reps.

Dive Bombers Standard - 9 reps.

Sunday, July 19, 2015

Parallettes One, Level B, Phase 1: Week 7 Report

I've been slacking off in posting updates on my progress in this program because it's been slow.  It's not the fault of the program nor its designers at GMB, though.  I never had great pressing strength or core strength to begin with.

Progress on Workout 1 Exercises


Plank Push-Ups - 4 reps

Plank Jump to Dip - Improved to about 10 reps/set.

Battle Rams - I am now doing version 2 of this exercise, in which every rep ends with a pushup.  I got to 12 reps in Version 1 and was doing them easily.

Tuck Hold - I'm more in the 5-7 sec. range now.  Still need to improve stability.

Mt. Climber Holds -  Slight improvement into the 9-10 rep range.

Progress on Workout 2 Exercises


Tuck Swing to Top Plank - I haven't been keeping track of the reps - just paying more more attention to the quality of movement, which is quite subjective.  What I'm looking for is a tight tuck on one end of the swing, and a smoothly controlled transition to top plank position.  This all takes core strength and some shoulder strength.  

One Leg Shoulder Stand Hold - 5-7 sec. hold range per leg.

Tuck Swings - As with Tuck Swing to Top Plank, I'm looking for improved control rather than raw reps.  I can do 12 reps, but they're not always in good form.  It's coming along gradually.

Assisted Inverted Presses - Improved to 6 reps.

Dive Bombers Standard - Improved to 9 reps.

Sunday, July 12, 2015

Unusual exercises for improving hamstring flexibility

Here's an article from Z-Health recommending exercises for the back of the neck - to improve hamstring flexibility.  Worth a look I think...

http://zhealtheducation.com/episode-108-improve-hamstring-flexibility/

Another hamstring flexibility routine, this time from Functional Patterns:
http://www.functionalpatterns.com/tight-hamstrings-stretching-routine-for-posterior-chain/