{"id":38,"date":"2021-08-23T12:18:41","date_gmt":"2021-08-23T12:18:41","guid":{"rendered":"https:\/\/login-safe.com\/?p=38"},"modified":"2021-09-07T01:57:11","modified_gmt":"2021-09-07T01:57:11","slug":"ruby-for-loop-where-can-we-meet-it","status":"publish","type":"post","link":"https:\/\/login-safe.com\/en\/ruby-for-loop-where-can-we-meet-it\/","title":{"rendered":"Ruby for loop, where can we meet it?"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_57_1 counter-hierarchy ez-toc-counter ez-toc-white ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\" role=\"button\"><label for=\"item-69e314e3bf6f9\" ><span class=\"\"><span style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input aria-label=\"Toggle\" type=\"checkbox\"  id=\"item-69e314e3bf6f9\"><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/login-safe.com\/en\/ruby-for-loop-where-can-we-meet-it\/#Ruby_for_loop\" title=\"Ruby for loop\">Ruby for loop<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/login-safe.com\/en\/ruby-for-loop-where-can-we-meet-it\/#How_do_loops_work_in_programming\" title=\"How do loops work in programming?\">How do loops work in programming?<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Ruby_for_loop\"><\/span>Ruby for loop<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-39 alignleft\" src=\"https:\/\/login-safe.com\/wp-content\/uploads\/2021\/09\/zz5-240x300.jpg\" alt=\"\" width=\"240\" height=\"300\" \/>Programming is the future. You cannot disagree with it, because the development of technology is progressing practically overnight, requiring us to become familiar with new programs or programming languages.<\/p>\n<p>Therefore, it is an excellent period to learn, to be able to gain a better understanding of the world around us in the future, but also a better earnings. So when trying to understand a programming language, we will first be faced with the choice of a given language.<\/p>\n<p>There are many of them, but it&#8217;s best to focus on a few basic ones, ie Java, C ++, python and VBA. Regardless of the choice, in each of them we will encounter similar issues that may cause us more or less problems.<\/p>\n<p>A great example of this is ruby \u200b\u200bfor loop, which is an extremely helpful way to do programming.<\/p>\n<h2><\/h2>\n<h2><\/h2>\n<h2><\/h2>\n<h2><span class=\"ez-toc-section\" id=\"How_do_loops_work_in_programming\"><\/span>How do loops work in programming?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-40 alignleft\" src=\"https:\/\/login-safe.com\/wp-content\/uploads\/2021\/09\/zz7-300x200.jpg\" alt=\"\" width=\"300\" height=\"200\" \/><a href=\"https:\/\/prograils.com\/posts\/loops-in-ruby-all-possible-approaches\">Ruby for loop<\/a> is the concept of a loop, i.e. looping a given activity depending on given conditions. In practice, we can come across several varieties called slightly differently depending on the language.<\/p>\n<p>Nevertheless, there is a while loop which allows you to loop until a given result or phenomenon is obtained, for loop which allows you to loop for given assumptions, do loop which works like a while loop but checks that the assumption is met after it is executed, and until loop which executes a loop. until the assumed value is reached, the result is True.<\/p>\n<p>Finally, ruby \u200b\u200bfor loop allows you to significantly reduce the time spent and the code created, by looping a given activity, e.g. for many values, they make our work look much more professional.<\/p>","protected":false},"excerpt":{"rendered":"<p>Ruby for loop Programming is the future. You cannot disagree with it, because the development of technology is progressing practically overnight, requiring us to become familiar with new programs or&hellip; <\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[14,15],"ppma_author":[342],"class_list":["post-38","post","type-post","status-publish","format-standard","hentry","category-programming","tag-ruby","tag-ruby-for-loop"],"aioseo_notices":[],"authors":[{"term_id":342,"user_id":1,"is_guest":0,"slug":"admin","display_name":"admin","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/4fbf54a33d3434ab401433233683639ffd615eae3e68dcd428d2c2d9e220fa24?s=96&d=mm&r=g","user_url":"https:\/\/login-safe.com","last_name":"","first_name":"","description":""}],"_links":{"self":[{"href":"https:\/\/login-safe.com\/en\/wp-json\/wp\/v2\/posts\/38","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/login-safe.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/login-safe.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/login-safe.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/login-safe.com\/en\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":2,"href":"https:\/\/login-safe.com\/en\/wp-json\/wp\/v2\/posts\/38\/revisions"}],"predecessor-version":[{"id":43,"href":"https:\/\/login-safe.com\/en\/wp-json\/wp\/v2\/posts\/38\/revisions\/43"}],"wp:attachment":[{"href":"https:\/\/login-safe.com\/en\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/login-safe.com\/en\/wp-json\/wp\/v2\/categories?post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/login-safe.com\/en\/wp-json\/wp\/v2\/tags?post=38"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/login-safe.com\/en\/wp-json\/wp\/v2\/ppma_author?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}