Subject: Block Absorption of Carbs (w/out smelly oils)

From: Does Fish-Oil Make You Stink? <[email-masked]>
Date: Tue, 24 Jun 2014 11:08:34 -0700

Supplements Got You Smelling like an Aquarium?

You dont have to "smell Fishy" to spark weight-loss.
Fish oils and the like have people complaining of a lingering odor. 

So, -  for the first time DrOz is presenting the "Carb Blocker" -
- Enjoy: - pasta - bread - pizza  (w/out absorbing the carbs)

View Here: / http://www.sihue.com/docoz/episode/june24.video

It will have you losing 230% More... W/Out the gym.

-DrOz Summer Blog

to modify your message settings - write Current Update Alerts_1644 Doral Drive_Brookings, SD five seven zero zero six_  or visit http://www.sihue.com/3kkd/fjk3.kfkke

Converting decisions into data like this is a really good refactoring technique. It helps in Lots of unobvious ways! You should also remember that this can be used to switch Code as well as data (that last array can be all implementations of an interface and your index statement could also involve calling that method). Also--this allows you to externalize the data (put it in a text file. Also it tends to lead to further refactorings. It's just a great technique to know. If you try really hard to avoid switches (which you should), this is a good replacement.   Bill K Mar 20 at 17:41
1	  	
If you like this, you guys should learn "functional programming"...   nomen Mar 20 at 23:04 
  	  	
@YUNOWORK (and @CodingAnt), this technique is not Java-specific. It works in many languages, including PHP.   RJHunter Mar 21 at 12:57
  	  	
@nomen A functional example would be more like each move being a function that returns their result based on what the other move supplied to them is. This answer has no more similarity to functional programming than nested switch statements do (and if the switches end up compiled into some sort of jump tables, then this answer would just be a more efficient equivalent to the switch-based approach).   JAB Mar 21 at 14:04 
  	  	
@TomFirth84 I'm not sure if someone has explained it but the {{}} is a 2D array, the output simply take in two numbers ie for your first example if one == 2 && two == 0. This goes to the 2D array, takes the 3rd Row (Starts at 0) and 1st Column and returns this value.   Dean Meehan Mar 25 at 11:22
  	  	
+1 and in case of non-fixed values, you can use a Map with Multiple Key   Khaled A Khunaifer Mar 26 at 5:13
  	  	
This answer provides a compact-enough performance-wise solution that is still very readable by the poor sap who has to modify/debug. Also, this solution can easily be "appended" if additional input/output is required in the future. I cannot say the same about the Magic Constant solution (although it is cool).   kingdango Mar 26 at 12:03
  	  	
@JAB: what are you talking about? The procedure factors out the pure computation into a matrix which is applied to the input. Factoring out pure computation is the essence of functional computation. The matrix is a function!   nomen Mar 26 at 16:40 
  	  	
@nomen This is simply a shift from a less efficient computation to a more efficient one, on the same level as precomputing sets of values for trigonometric functions and storing those in tables to be referenced by index in situations where increasing CPU efficiency is higher priority than decreasing memory footprint. If you want to be pedantic, then yes, such a matrix can be considered a mathematical function, but by itself it is no more an application of the functional programming paradigm than waTeim's answer.   JAB Mar 26 at 17:55 
1	  	
@JAB: I'm sorry, but your perspective on functional programming is lacking. You are confusing the implementation with the idea behind it. PURE COMPUTATION is not the same as EFFECTFUL COMPUTATION. Factoring a computation into its pure parts and effectful parts IS THE ESSENCE OF FUNCTIONAL PROGRAMMING. The "pure" parts have the properties of mathematical functions. That is not merely incidental -- it is the goal, because the pure parts are easy to refactor, because of the very laws of mathematical functions. It is not pedantic. It is the goal.   nomen Mar 27 at 1:29
1	  	
@JAB: actually, let's take a step back and look at the conversation as it happened. Somebody suggested factoring the pure computation part out, and did it with a matrix. I suggested that if one likes that solution, one should learn functional programming (with the intention that this is a common technique which can be generalized). So where exactly is that suggestion wrong? Why are you trying to "correct" me?   nomen Mar 27 at 1:39