{"id":597,"date":"2017-08-29T01:14:27","date_gmt":"2017-08-28T23:14:27","guid":{"rendered":"http:\/\/ekhart.pl\/?p=597"},"modified":"2017-08-29T01:20:07","modified_gmt":"2017-08-28T23:20:07","slug":"can-we-code-better","status":"publish","type":"post","link":"https:\/\/ekhart.pl\/index.php\/2017\/08\/29\/can-we-code-better\/","title":{"rendered":"Can we code better?"},"content":{"rendered":"<div class=\"\" data-block=\"true\" data-editor=\"c7f9i\" data-offset-key=\"3npvv-0-0\">\n<div class=\"public-DraftStyleDefault-block public-DraftStyleDefault-ltr\" data-offset-key=\"3npvv-0-0\"><span data-offset-key=\"3npvv-0-0\"><strong>Is there better way to program?<\/strong> Can we code faster? With fewer errors, less writing? Could we read it <\/span><span class=\"adverb\"><span data-offset-key=\"3npvv-1-0\">easily<\/span><\/span><span data-offset-key=\"3npvv-2-0\"> and understand it without problems?<\/span><\/div>\n<\/div>\n<p><!--more--><\/p>\n<div class=\"\" data-block=\"true\" data-editor=\"c7f9i\" data-offset-key=\"cg7t6-0-0\">\n<div class=\"public-DraftStyleDefault-block public-DraftStyleDefault-ltr\" data-offset-key=\"cg7t6-0-0\">Did you ever wonder is can you do your job <strong>better AND faster<\/strong>? <a href=\"http:\/\/blog.cleancoder.com\/uncle-bob\/2017\/07\/11\/PragmaticFunctionalProgramming.html\">Do you pragmatic<\/a> &#8211; thinking about improving it?<\/div>\n<\/div>\n<div class=\"\" data-block=\"true\" data-editor=\"c7f9i\" data-offset-key=\"a95ru-0-0\">\n<div class=\"public-DraftStyleDefault-block public-DraftStyleDefault-ltr\" data-offset-key=\"a95ru-0-0\"><span data-offset-key=\"a95ru-0-0\">\u00a0<\/span><\/div>\n<\/div>\n<div class=\"\" data-block=\"true\" data-editor=\"c7f9i\" data-offset-key=\"4h77v-0-0\">\n<div class=\"public-DraftStyleDefault-block public-DraftStyleDefault-ltr\" data-offset-key=\"4h77v-0-0\"><span data-offset-key=\"4h77v-0-0\"> Don&#8217;t think programming is <a href=\"http:\/\/www.gamasutra.com\/view\/news\/169296\/Indepth_Functional_programming_in_C.php\">writing code in <\/a><\/span><a href=\"http:\/\/www.gamasutra.com\/view\/news\/169296\/Indepth_Functional_programming_in_C.php\"><span class=\"adverb\"><span data-offset-key=\"4h77v-1-0\">C-family<\/span><\/span><\/a><span data-offset-key=\"4h77v-2-0\">, Object Oriented language. Nothing is set in stone. Also your language.<\/span><\/div>\n<\/div>\n<div class=\"\" data-block=\"true\" data-editor=\"c7f9i\" data-offset-key=\"dnl1h-0-0\">\n<div class=\"public-DraftStyleDefault-block public-DraftStyleDefault-ltr\" data-offset-key=\"dnl1h-0-0\"><span data-offset-key=\"dnl1h-0-0\">\u00a0<\/span><\/div>\n<\/div>\n<div class=\"\" data-block=\"true\" data-editor=\"c7f9i\" data-offset-key=\"76g4u-0-0\">\n<div class=\"public-DraftStyleDefault-block public-DraftStyleDefault-ltr\" data-offset-key=\"76g4u-0-0\"><span data-offset-key=\"76g4u-0-0\"><a href=\"https:\/\/www.youtube.com\/watch?v=8pTEmbeENF4\">Explore<\/a>. Broad your boundaries. Go out from your comfort zone. Learn Clojure.<\/span><\/div>\n<\/div>\n<div class=\"\" data-block=\"true\" data-editor=\"c7f9i\" data-offset-key=\"8ec7t-0-0\">\n<div class=\"public-DraftStyleDefault-block public-DraftStyleDefault-ltr\" data-offset-key=\"8ec7t-0-0\"><span data-offset-key=\"8ec7t-0-0\">\u00a0<\/span><\/div>\n<\/div>\n<div class=\"\" data-block=\"true\" data-editor=\"c7f9i\" data-offset-key=\"7h8ts-0-0\">\n<div class=\"public-DraftStyleDefault-block public-DraftStyleDefault-ltr\" data-offset-key=\"7h8ts-0-0\"><span data-offset-key=\"7h8ts-0-0\">There is an other way. <a href=\"https:\/\/ekhart.pl\/index.php\/category\/functional-programming\/\">Functional programming<\/a>. Where <strong>function can be value<\/strong> (higher order functions). Where functions are <strong>pure without side-effects<\/strong>. Where you avoid error prone mutation with <strong>immutable state<\/strong>.\u00a0<\/span><\/div>\n<div data-offset-key=\"7h8ts-0-0\"><\/div>\n<div class=\"public-DraftStyleDefault-block public-DraftStyleDefault-ltr\" data-offset-key=\"7h8ts-0-0\"><span data-offset-key=\"4gol0-0-0\"><a href=\"https:\/\/www.slideshare.net\/ArturDbkowski\/publikacjifunctional-programming\">What it gives you?<\/a> Safe and <strong>easy concurrency<\/strong>\u00a0(because there is no way to race conditions). <\/span><span class=\"hardreadability\"><span data-offset-key=\"4gol0-1-0\">Even easier <strong>code reuse<\/strong> (because pure functions are smaller, more independent, with zero coupling)<\/span><\/span><span data-offset-key=\"4gol0-2-0\">. <strong>Expressiveness <\/strong>&#8211; you write less and achieve more<\/span><\/div>\n<\/div>\n<div class=\"\" data-block=\"true\" data-editor=\"c7f9i\" data-offset-key=\"1lotp-0-0\">\n<div class=\"public-DraftStyleDefault-block public-DraftStyleDefault-ltr\" data-offset-key=\"1lotp-0-0\"><span data-offset-key=\"1lotp-0-0\">\u00a0<\/span><\/div>\n<\/div>\n<div class=\"\" data-block=\"true\" data-editor=\"c7f9i\" data-offset-key=\"baaob-0-0\">\n<div class=\"public-DraftStyleDefault-block public-DraftStyleDefault-ltr\" data-offset-key=\"baaob-0-0\"><span data-offset-key=\"baaob-0-0\"><a href=\"https:\/\/www.cs.kent.ac.uk\/people\/staff\/dat\/miranda\/whyfp90.pdf\">Modularity is the key<\/a>. Decomposing large problem and glue many small solutions. And <strong>no place for duplication<\/strong>.<\/span><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Is there better way to program? Can we code faster? With fewer errors, less writing? Could we read it easily and understand it without problems?<\/p>\n","protected":false},"author":1,"featured_media":725,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[26],"tags":[29,53,52,51],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/ekhart.pl\/wp-content\/uploads\/2017\/08\/better-way-smaller.jpeg?fit=2300%2C1246&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8oxcO-9D","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/posts\/597"}],"collection":[{"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/comments?post=597"}],"version-history":[{"count":30,"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/posts\/597\/revisions"}],"predecessor-version":[{"id":724,"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/posts\/597\/revisions\/724"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/media\/725"}],"wp:attachment":[{"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/media?parent=597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/categories?post=597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/tags?post=597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}