Skip to content

Leonid Mamchenkov

Life, universe, and everything else

  • Home
  • Archives
  • About
  • Contact me
  • Email
  • Skype
  • LinkedIn
  • GitHub
  • Facebook
  • Twitter
  • Instagram
  • Flickr
  • YouTube
  • SlideShare
  • RSS Feed

On this day...

  • 2019: Lazydocker – a simple terminal UI for both docker and docker-compose
  • 2015: Aging meats
  • 2015: Inside NGINX: How We Designed for Performance & Scale
  • 2014: Coca-Cola can love
  • 2014: A year without Google Reader
  • 2014: Daily dose of Instagram
  • 2013: Steven Levitt: The freakonomics of McDonalds vs. drugs
  • 2013: Why are software development task estimations regularly off by a factor of 2-3?
  • 2013: WordPress plugin : Auto-Schedule Posts
  • 2013: Child and Sibling Selectors in CSS
  • 2013: Two more minor changes
  • 2013: GitHub adds Releases
  • 2013: Human head transplant, anyone?
  • 2011: Day in brief – 2011-07-03
  • 2010: Day in brief
  • 2010: The saga of a lost connection
  • 2007: Daily tweets
  • 2006: Personal accounting with HomeBank
  • 2006: Daily del.icio.us bookmarks
  • 2005: Growing up

Tag: PHP

WordPress : Getting Ready for Gutenberg

Here are some very exciting news from the WordPress fronts: WordPress 5 will feature the built-in Gutenberg project.  Gutenberg is a complete rebuilt of the WordPress administration and content publishing experience, with much faster and cleaner user interface and a whole array of new features, such as “page builder” functionality.

Here are a couple of links with more information on how to get yourself ready in time:

  • Getting Ready for Gutenberg
  • The New WordPress Editor: What You Need to Know about Gutenberg
Posted on May 4, 2018Author Leonid MamchenkovCategories All, Programming, Sysadmin, Technology, Web work, WordPressTags blogging, CMS, PHP, web development, WordPress internals, WordPress plugins, WordPress themesLeave a comment on WordPress : Getting Ready for Gutenberg

Unit Testing – The Big Picture

“Unit Testing – The Big Picture” is a super useful for those of us who need a refresher or an overview of what software testing is in general, and how unit testing relates to other types of testing in particular.  It covers a bit of history of testing, different approaches, terminology, and more.

Posted on May 4, 2018Author Leonid MamchenkovCategories All, Programming, Technology, Web workTags best practices, history, PHP, quality assurance, testing, web developmentLeave a comment on Unit Testing – The Big Picture

Code quality tools in PHP to check and improve your code

“Code quality tools in PHP to check and improve your code” is a list of both some very well known tools and some new kids on the block.  The article covers the following:

  • PHP-CS-Fixer
    • Documentation
    • Github
  • PHPCS
    • Documentation
    • Github
  • PHPMD
    • Documenation
    • Official website
  • PHPStan
    • Github
  • PHPUnit
    • Documentation
    • Github
  • PHPLoc
    • Github
  • PHPCPD
    • Github
  • PHPMND
    • Documentation
    • Github
  • churn-php
    • Github
  • dePHPend
    • Official website
    • Github
  • PhpCodeFixer
    • Documentation
    • Github
  • PhpMetrics
    • Official website
    • Github
Posted on May 2, 2018Author Leonid MamchenkovCategories All, Programming, Technology, Web workTags best practices, PHP, quality assurance, testing, web development1 Comment on Code quality tools in PHP to check and improve your code

ORM: Active Record vs. Data Mapper

Everybody building a web application with a modern framework, is already probably using an ORM (Object-Relational Mapping).  Most frameworks include one out of the box.  But digging deeper into the subject, ORMs do vary from each other, and some cases, very significantly.

Most variations are coming from two main approaches: Active Record and Data Mapper.  I’ve heard the terms for a long time, but today decided to look into the meaning and the actual difference.

The two approaches seem very similar.  The difference is described in a multitude of articles online.  I particularly liked this one.  In essence, Active Record is a better choice for simpler, CRUD-based applications.  Data Mapper, on the other hand, is better for domain-specific applications, as it provides another level of abstraction between the domain objects and the persistence layer.

Most of my work these days is done with CakePHP framework, which I now thought uses the Active Record pattern.  But it turns out that CakePHP ORM so powerful, because it’s more than just one of those:

The CakePHP ORM borrows ideas and concepts from both ActiveRecord and Datamapper patterns. It aims to create a hybrid implementation that combines aspects of both patterns to create a fast, simple to use ORM.

It looks like I need to do some learning and dig deeper into the subject.  Pointers are welcome.

Posted on April 28, 2018Author Leonid MamchenkovCategories All, Programming, Technology, Web workTags CakePHP, databases, design patterns, PHP, web developmentLeave a comment on ORM: Active Record vs. Data Mapper

PHP Static Analysis

Here are a couple of new tools in addition to previously mentioned PHPStan:

  • Psalm by Vimeo.  The cool thing about this static analyzer is that it supports both PHP 5.6 and PHP 7, unlike PHPStan which requires PHP 7.  (Yeah, I know PHP 5.6 has reached the end of its active support a while back, but there are still quite a few projects around using it.) Additionally, Psalm is easy to control via the XML configuration file,  much like PHPUnit and PHP CodeSniffer.
  • Phan.  This one is a bit trickier to install, as it requires some PHP extensions that I’ve never heard about (like PHP AST).
Posted on April 25, 2018Author Leonid MamchenkovCategories All, Programming, Technology, Web workTags best practices, PHP, quality assurance, web developmentLeave a comment on PHP Static Analysis

Posts pagination

Previous page Page 1 … Page 12 Page 13 Page 14 … Page 62 Next page
Proudly powered by WordPress
This website uses cookies. Purely for technical reasons. Accept Reject Read more
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT
 

Loading Comments...