AuthorDaniel 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

ES6, Environment Variables, Git changes and Folder By Feature in Laravel Basset 1.6

Latest release of Laravel Basset 1.6 brings several very powerful features which will ease your development.

Continue reading

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

85% Faster Gulp Builds with Laravel Basset

That’s it! As promised in status update, the latest 1.5 version of Laravel Basset delivers from 85% to 90% improvement in production/optimized/minified build times for your scripts and styles.

Continue reading

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

Laravel Basset Status Update

A small update on Laravel Basset.

No need to worry, there were only a few updates because there was no major changes.

The original architecture with collection configuration is still the same and all internal dependencies have been updated. So Browserify, reactify, Babel and everything else is the latest version possible.

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

How to setup Basset in Lumen Application?

Basset now supports Lumen applications also. With just a little setup you can run Basset with all the features as with regular Laravel installation.

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

How to publish collection files with Basset?

This article explains how to publish collection files to builds with Basset – better asset management for Laravel. You will need to know how to use Basset first in order to understand the guide below.

Sometimes you will need to copy files from collection folders to public/builds so that they can be used from public folders.

Continue reading

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

© 2017 Legacy Blog