Daniel V

Angular 2 is terrible

“We used Angular 2 for our frontend. I was not involved in this decision, and I came to work on the frontend relatively late in the project. This post is not meant to be a comprehensive review of the framework, but rather a collection of observations after using it for a little more than two weeks. I don’t claim that using it for two weeks makes me an expert, and welcome any corrections, but for what it’s worth, I consider using Angular 2 one of the biggest mistakes for our project …

Read more at:

https://meebleforp.com/blog/36/angular-2-is-terrible

 

Share this ...Tweet about this on TwitterShare on FacebookEmail this to someoneShare on RedditShare on Google+Share on LinkedInPin on Pinterest

RomVer – Romantic Versioning

Given a version number HUMAN . MAJOR . MINOR,  increment the:

  1. HUMAN version when you make any conceptual change, major rewrite, major documentation changes or any other change which requires additional HUMAN involvement.
  2. MAJOR  version when you make incompatible API changes,
  3. MINOR version when you add functionality in a backwards-compatible manner, or fix with backwards-compatible bug fixes.

Additional labels for pre-release and build metadata are available as extensions to the HUMAN . MAJOR . MINOR format.

Continue reading

Share this ...Tweet about this on TwitterShare on FacebookEmail this to someoneShare on RedditShare on Google+Share on LinkedInPin on Pinterest

Laravel Blade directive for conditional HTML classes

Sometimes you need to add classes to HTML elements conditionally, and when you try to do that you almost always end up with messy syntax. Here’s the example in Blade:

<article class="post post-{{ $post->slug }} @if ($post->featured) post-featured @endif @if ($post->sticky) post-sticky @endif">
    ...
</article>

Or with pure PHP:

<article class="post post-<?php echo $post->slug ?> <?php if ($post->featured): ?>post-featured<?php endif ?> <?php if ($post->sticky): ?>post-sticky<?php endif ?>">
    ...
</article>

And if you split it into multi-line you get even worse, and when you add even more conditional classes you get if mess.

Continue reading

Share this ...Tweet about this on TwitterShare on FacebookEmail this to someoneShare on RedditShare on Google+Share on LinkedInPin on Pinterest

I QUIT: WHAT REALLY GOES ON AT APPLE

I’ve just escaped the Apple institution. I’ve sent in my resignation, and fled down its bright white corridors curated by crass colourful pictures of iPhones past. I handed in my security pass and in return I was able to re-claim my creativity, individuality and free thinking from the secure Apple cloak room.  Finally now, for the first time in two years, I feel light, creative and inspired. I am again an individual with my own creative ideas, perceptions, values and beliefs. It may take me a while, but from what I believe – I’m now able to express such beliefs again. I am no longer part of the collective  iCult machine whose dirty, worn-out, greasy and naive internal mechanisms of bullying, harassment and mind-games push out shiny and polished iPhones every year ….”

Read more at:

http://roadlesstravelled.me/2015/04/06/why-steve-jobs-motivated-me-to-quit-apple/

Share this ...Tweet about this on TwitterShare on FacebookEmail this to someoneShare on RedditShare on Google+Share on LinkedInPin on Pinterest

Laravel Excel Package

Laravel Excel brings the power of PHPOffice’s PHPExcel to Laravel 5 with a touch of the Laravel Magic. It includes features like: importing Excel and CSV to collections, exporting models, array’s and views to Excel, importing batches of files and importing a file by a config file.

Sample:

Excel::create('Laravel Excel', function($excel) {

    $excel->sheet('Excel sheet', function($sheet) {

        $sheet->setOrientation('landscape');

    });

})->export('xls');

 

See more at:

https://github.com/Maatwebsite/Laravel-Excel

Documentation:

http://www.maatwebsite.nl/laravel-excel/docs

To install with Composer:

composer require maatwebsite/excel

 

Share this ...Tweet about this on TwitterShare on FacebookEmail this to someoneShare on RedditShare on Google+Share on LinkedInPin on Pinterest