Professionelle Webentwicklung und Frickelbuden

Als erfahrener Websoftware­­entwickler werde ich immer wieder mit mitunter seltsamen Anforderungen und Anfragen konfrontiert. Oft ergibt sich hier bei einem Sondierungs­gespräch die Frage, was ich denn mit “Professioneller Webentwicklung” meine. Hier dazu eine Erklärung:

Professionelle Webentwicklung und Frickelbuden weiterlesen

React JS

Within the last decade React has become the de-facto standard technology for Web UIs, along with the concept of “Virtual DOM”. Now with the patents problem removed and React – just like jQuery – becoming a first-class citizen in WordPress with the release of WordPress 5.0 there is yet another solid reason to become familiar with this toolkit as it probably is here to stay for quite a while and remain one of the Big-Wig Toolkits for Web Application Development.

Here are some links to get you started if you haven’t already:

PHP Snippet: Slugify a string

This one has some extra stuff for German characters in it. Probably not needed because it’s covered by iconv, but whatever:

function slugify($str)
{
       $returnMe = strtotime(trim(@iconv('UTF-8', 'ASCII//TRANSLIT', $str)));

       foreach ([
              " " => "_",
              "/" => "-",
              "" => "",
              "." => "-",
              "ü" => "ue",
              "ö" => "oe",
              "ä" => "ae",
              "ß" => "ss",
              "&" => "+",
              '"' => "_"
       ] as $search => $replace)
       {
              $returnMe = str_replace($search, $replace, $returnMe);
       }

       return $returnMe;
    }

PHP Snippet: Check if code is running on a production environment

function isLive($liveTld = ".de")
{
       $homeUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']
       === 'on' ? "https" : "http")."://$_SERVER[HTTP_HOST]";

$returnMe = false;
if ( (!(strpos($homeUrl, ".local") !== false)) && (!(strpos($homeUrl, ".intra") !== false)) && (!(strpos($homeUrl, "stage") !== false)) && (!(strpos($homeUrl, "staging") !== false)) && (strpos($homeUrl, $liveTld) !== false) ) { $returnMe = true; }
return $returnMe; }

The WordPress Gutenberg Editor

The new Gutenberg Editor, due for the WordPress release 5.0, will hugely up the game for content editing and control over content layout, visuals and constrolled visual design options. Look forward to it.

Here are some links: