<!doctype html>
<html>
  <!--
  Hello, This is Muhammet, I am a product oriented from-scratch
  web-developer. It's my hobby to think about new ideas and
  implement prototypes.

  Some of the things I like: Python (Django/Flask),
  Linux, Emacs, Restful Services, Data Science (R/Python),
  Html, SASS, Javascript (React/Jquery) and Sketch.

  PS. Yes you are reading the source markup of the page you are
  looking at. If you want to learn the details look at the repo
  @ https://github.com/jeffisabelle/my-blog-engine-2
  -->
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- higlight.js styles -->
    <link href="/static/css/highlight/solarized-dark.css" rel="stylesheet"/>
    <!-- fonts -->
    <link href='https://fonts.googleapis.com/css?family=Actor|Advent+Pro:400,300,500,600,700' rel='stylesheet' type='text/css'>
    <!-- font-awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
    <!-- animate.css -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.4.0/animate.min.css">
    <!-- main -->
    <link href="/static/css/main.css" rel="stylesheet"/>
    <title>Muhammet Can :: Less Design, More Posts</title>
  </head>
  <body>
    <div id="left-container">
      <pre><code></code></pre>
    </div>
      
    <div id="profile">
      <div class="container-fluid">
        <div class="row">
          <div class="col-xs-12">

            <div class="avatar">
              <del>my awesome picture</del>
              <img alt="" src="/static/img/thuglife.png"/>
            </div>
            <div class="nav">
              <ul>
                <a href="/">
                  <li>home</li>
                </a>
                <a href="#"> <!-- implement later -->
                  <li>projects</li>
                </a>
                <a href="#"> <!-- implement later -->
                  <li>about</li>
                </a>
              </ul>
            </div>
            <div class="social">
              <a href="https://tr.linkedin.com/in/muhammetcan" target="_blank">
                <i class="fa fa-linkedin-square l"><del>linkedin</del></i>
              </a>
              <a href="https://github.com/jeffisabelle" target="_blank">
                <i class="fa fa-github-square l"><del>github</del></i>
              </a>
              <a href="https://twitter.com/jeffisabelle" target="_blank">
                <i class="fa fa-twitter-square l"><del>twitter</del></i>
              </a>
            </div>
          </div> <!-- /profile -->
        </div> <!-- /col-xs-12 -->
      </div> <!-- /row -->
    </div> <!-- /container -->
  
    <div id="right-container">
      <article class="animated fadeInRight">
        <!-- dont put the source of actual blog here.
        ugly markup makes it hard to follow. -->
      </article>

      <div class="container">
        <div id="disqus_thread"></div>
        <noscript>Please enable JavaScript to view the
          <a href="http://disqus.com/?ref_noscript">
            comments powered by Disqus.</a></noscript>

        <a href="http://disqus.com" class="dsq-brlink">comments
          powered by <span class="logo-disqus">Disqus</span></a>
      </div>
    </div> <!-- /right-container -->
  </body>

  <!-- jquery -->
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.min.js"></script>
  <!-- highlight.js -->
  <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.0.0/highlight.min.js"></script>
  <!-- bootstrap.js -->
  <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha/js/bootstrap.min.js"></script>
  <!-- main.js -->
  <script src="/static/js/main.js"></script>
</html>

Less Design, More Posts

Last day, I redesigned my blog nth time. (where n > 5) It feels so bad that I redesign my blog more than actually writing to my blog. Generally, I do it because it's so much fun, no-one is in front of you, no clients, no boss, no partners. You do it as you wish & you do it for yourself.

What's Changed?

I have changed many things for the blog. In fact, the remaining parts are just the posts. I had several reasons for the change, here are the things that bother me most.

You can find my old blog source code at github. For now, lets look at the details over my concerns stated above.

1 - Hail for the Micro-Frameworks!

I've been working with flask over a year now, I've worked on several projects with flask. It is just awesome. I remember my early days of running django. It was frustrating experience for me a few years ago.

I remember having trouble many of the things. Even getting static files right. Bunch of middlewares I had no idea why they are there for. Weird dilemmas of class based views and function based views. I'm pretty sure it got better today, all in all we shouldn't judge the technology for the experience we had years ago.

The reward was just being able to write python and automated admin interface. Well, I can get that with flask too. Looking at my current flask server, it is 55 lines of total code. the settings file with django alone was 176 lines. Line count doesn't mean a lot. But simplicity is always important when you read back your code after some time.

2 - Some Changes on Server Stack

I used uwsgi over nginx on my old system. My datastore was postgresql. I have changed both. Now it runs with gunicorn, and supervisor controls it. I remember having hard times runnig / controlling uWSGI server. Gunicorn documentation seemed more intuitive. (god, I like that sphinx theme!) Following articles helped me a lot while running my server.

Many people will argue that uWSGI is superior/faster and more customizable. Well, this is not new-york-times. I want the server stack to be as much as transparent to me. Gunicorn is. uWSGI isn't.

3 - Typography

For the front-end, I wanted another design because the older version had an ugly typography and I never love the feeling of writing there. I used typecast this time, and hopefully it is a little bit better (readable) now. I find typography really interesting and one of the most difficult piece of front-end development. I suggest you to check that out if you have problems with typography as I do.

What's Next?

I hope to write more blog posts now. I really force myself to write more. I never like the taste of my writings and I believe writing more could let me write better essays. On the other hand, I delete my old posts and think `how the hell i wrote this bad`. If i keep deleting posts this fast, the blog probably end up with 0-post.

comments powered by Disqus