<commit_before><!DOCTYPE html>
<html>
  <head>
    <meta charset='utf-8'>
    <link rel="stylesheet" href="http://cdn.jsdelivr.net/highlight.js/8.9.1/styles/default.min.css">
<script src="http://cdn.jsdelivr.net/highlight.js/8.9.1/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
    <link rel="stylesheet" type="text/css" href="../stylesheets/default.css">
    <link rel="stylesheet" type="text/css" href="../stylesheets/blog.css">
    <title> Arrays vs. Hashes </title>
  </head>

<body>
    <div class="wrapper">
    <header class="header bgc-2 op-8 ov-a">
      <img src="../imgs/logo-oct7.png" alt="logo" class="fl-l img-m op-8 pl-1"/>
      <h1 class="ta-c c-1 va-m fz-xxl"> Blogging from the Bensch </h1>
      </header>
      <section class="col-12 ta-c bgc-3 m-0">
        <p class="m-0 fz-xl"> Explained: Arrays vs. Hashes </p>
          <p class="m-0 fz-lg"> October 21st, 2015   </p>
      </section>
      <nav class="nav cl-b ">
        <ul class="m-a ta-c bgc-3">
            <li> <a href="../index.html" > Home </a> </li>
            <li> <a href="../blog/index.html" > View Blog </a> </li>
            <li> <a href="../projects/index.html" > My Projects </a> </li>
            <li> <a href="https://github.com/bbensch09" > My GitHub </a> </li>
            <li> <a href="../blog/about-me.html" > Contact Me </a> </li>
        </ul>
      </nav>
    <article>
      <div class="blog-section">
        <img src="../imgs/map-enumerable.jpg" class="css-images" align="right" alt="enumerable#map image" />
        <p>
          In this week’s DevBootcamp content, we explored more complex methods in Ruby, solving some fun challenges including how to create dice with infinite sides, how to calculate the mode, and so much more! We also began (without realizing it) to use a certain types of methods called enumerable methods. What exactly is an enumerable method?
        </p>
        <p> An "enumerable" is basically a collection of methods that are packaged together so that they can be mixed in with other methods that belong to a class. Also known as a "mixin", enumerable methods allow Ruby developers to bypass re-writing a bunch of new code when they want to create a new method within a class. Most of the popular and commonly used enumerables make use of the #each method (which is itself an enumerable that enables iteration), and allow you to iterate through a hash or array without having to explicitly call the #each method directly.
        </p><commit_msg>update title & date chal 5.9<commit_after><!DOCTYPE html>
<html>
  <head>
    <meta charset='utf-8'>
    <link rel="stylesheet" href="http://cdn.jsdelivr.net/highlight.js/8.9.1/styles/default.min.css">
<script src="http://cdn.jsdelivr.net/highlight.js/8.9.1/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
    <link rel="stylesheet" type="text/css" href="../stylesheets/default.css">
    <link rel="stylesheet" type="text/css" href="../stylesheets/blog.css">
    <title> Arrays vs. Hashes </title>
  </head>

<body>
    <div class="wrapper">
    <header class="header bgc-2 op-8 ov-a">
      <img src="../imgs/logo-oct7.png" alt="logo" class="fl-l img-m op-8 pl-1"/>
      <h1 class="ta-c c-1 va-m fz-xxl"> Blogging from the Bensch </h1>
      </header>
      <section class="col-12 ta-c bgc-3 m-0">
        <p class="m-0 fz-xl"> What's an Enumerable? How do I use this #Map? </p>
          <p class="m-0 fz-lg"> October 28th, 2015   </p>
      </section>
      <nav class="nav cl-b ">
        <ul class="m-a ta-c bgc-3">
            <li> <a href="../index.html" > Home </a> </li>
            <li> <a href="../blog/index.html" > View Blog </a> </li>
            <li> <a href="../projects/index.html" > My Projects </a> </li>
            <li> <a href="https://github.com/bbensch09" > My GitHub </a> </li>
            <li> <a href="../blog/about-me.html" > Contact Me </a> </li>
        </ul>
      </nav>
    <article>
      <div class="blog-section">
        <img src="../imgs/map-enumerable.jpg" class="css-images" align="right" alt="enumerable#map image" />
        <p>
          In this week’s DevBootcamp content, we explored more complex methods in Ruby, solving some fun challenges including how to create dice with infinite sides, how to calculate the mode, and so much more! We also began (without realizing it) to use a certain types of methods called enumerable methods. What exactly is an enumerable method?
        </p>
        <p> An "enumerable" is basically a collection of methods that are packaged together so that they can be mixed in with other methods that belong to a class. Also known as a "mixin", enumerable methods allow Ruby developers to bypass re-writing a bunch of new code when they want to create a new method within a class. Most of the popular and commonly used enumerables make use of the #each method (which is itself an enumerable that enables iteration), and allow you to iterate through a hash or array without having to explicitly call the #each method directly.
        </p>
{'fraction_non_alphanumeric': 0.14845605700712589, 'fraction_numerical': 0.01227236737925574, 'mean_word_length': 2.8543096872616323, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 119, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2857120', 'n_tokens_mistral': 1632, 'n_tokens_neox': 1570, 'n_words': 570}