<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: D. Guhl</title>
    <description>The latest articles on DEV Community by D. Guhl (@dguhl).</description>
    <link>https://dev.to/dguhl</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F37276%2Ff52db897-c5de-4b1a-970a-378f27fbdf3e.png</url>
      <title>DEV Community: D. Guhl</title>
      <link>https://dev.to/dguhl</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dguhl"/>
    <language>en</language>
    <item>
      <title>Nothing is wrong about a framework - except what you might think it is</title>
      <dc:creator>D. Guhl</dc:creator>
      <pubDate>Wed, 25 Oct 2017 21:04:03 +0000</pubDate>
      <link>https://dev.to/dguhl/nothing-is-wrong-about-a-framework---except-what-you-think-it-is-mp</link>
      <guid>https://dev.to/dguhl/nothing-is-wrong-about-a-framework---except-what-you-think-it-is-mp</guid>
      <description>&lt;p&gt;&lt;em&gt;The utility of frameworks polarizes communities. Not only there are many of them, they also solve more problems than the developer actually has. But maybe it's the concept of a framework which has been understood the wrong way all along.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;In web development, a popular or widely used language and the upcoming notice of its flaws confluence together to emerge a period of time where enthusiastic developers will kick-off a framework to solve common problems in a common way. JavaScript had such an era, PHP had such an era, as well as Java, Ruby and Python. &lt;/p&gt;

&lt;p&gt;The latter three evolved a single framework (Spring, Rails and Django respectively) to not only be the single known jack-of-all-trades programming solution in the language they're written in, but also defined our present reception of what a framework is for most of us: a toolset to collect common and otherwise repetitively self-coded solutions to problems of the programmer, so they can keep their actual application logic essential and neat.&lt;/p&gt;

&lt;p&gt;Many mechanisms of deploying and structuring an application, for example as a set of components working together, only being held together by a &lt;em&gt;framework&lt;/em&gt;, were not supported in languages by technologies we know today: dependency managers to load third-party modules as components into our application, or even the possibility of modularizing your application at all.&lt;/p&gt;

&lt;p&gt;For this reason, earlier versions of frameworks which shipped for early versions of their language had to circumvent the lack of such features, and one result is that these frameworks came along as toolboxes to solve all kind of problems a developer commonly has in every project they face: database connections, HTTP request handling or console output, to name a few.&lt;/p&gt;

&lt;p&gt;This turned the nature of early frameworks into a prejudice of what today's frameworks mostly are not anymore. Modern frameworks like PHP's &lt;em&gt;Symfony&lt;/em&gt; (or smaller footprinted &lt;em&gt;Silex&lt;/em&gt;), or &lt;em&gt;VueJS&lt;/em&gt; for JavaScript, are essentially a collection of components and what delivers them as the framework we all know is the &lt;em&gt;standard issue&lt;/em&gt; of a &lt;em&gt;component collection&lt;/em&gt;. If you chose a good framework, it uses a well-designed dependency management system, with that we always should select the parts we need. &lt;/p&gt;

&lt;p&gt;The components of &lt;em&gt;Symfony&lt;/em&gt;, for example, are also widely successful in other projects and frameworks: the ORM data component of that project evolved into the &lt;em&gt;Doctrine&lt;/em&gt; project, the templating component into the &lt;em&gt;Twig&lt;/em&gt; project, the &lt;em&gt;Symfony Console&lt;/em&gt; component is the most popular module for console output in the PHP ecosystem - and even used by the &lt;em&gt;Symfony&lt;/em&gt; successor in popularity: &lt;em&gt;Laravel&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;So when PHP's inventor, Rasmus Lerdorf, &lt;a href="https://youtu.be/fYTKm2oUzAg" rel="noopener noreferrer"&gt;expresses his scepticism about frameworks&lt;/a&gt;, he refers to a kind of framework which literally belongs to the last decade: a monolithic boilerplate with a pre-executing stack as wide as a server rack on which you just append your code onto. And since the current decade is also almost over, you clearly see how long this false understanding of frameworks kept in the heads of developers. &lt;/p&gt;

&lt;p&gt;The modern framework is modularized and structured in components. The few concepts which a framework brings to all its depending applications are merely concepts which you would have and implement in your application anyway: configuration and autoload mechanisms (which can be part of the dependency manager now) or even patterns like Dependency Injection or Model-View-Controller, achieved in a way which can be shared as common knowledge between every developer familiar with that particular framework or - if your community came beyond a framework-popping era - a particular language standard like the &lt;a href="http://www.php-fig.org/" rel="noopener noreferrer"&gt;PHP Framework Interaction Group&lt;/a&gt; presents in their widely recognized and followed PSR's.&lt;/p&gt;

&lt;p&gt;Eventually, the framework of the present is doing what a framework always has been a concept for: it frames selected components to the solution. Just because there might be a component for every problem, it doesn't mean they all have to be in your selection: despite a framework offers the tools, it doesn't mean you use them all in every project. The toolbox the framework used to be by circumstance turned into a tool shop by the circumstance of an improving language, maintained by the respective framework community, and visited by you, the developer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; &lt;em&gt;Frameworks never supposed to be a swiss army knife, but a platform provider to make your frame containing selected modules work. The required modularization for this is a recently introduced feature to most of the languages popular frameworks base upon.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>frameworks</category>
      <category>php</category>
      <category>components</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
