Easy commands to generate template error pages that Laravel is using, see below
php artisan vendor:publish –tag=laravel-errors
Twitter : https://twitter.com/DavidRaleche
Newsletter : Subscribe here
Store : https://david.raleche.com/shop
Easy commands to generate template error pages that Laravel is using, see below
php artisan vendor:publish –tag=laravel-errors
This library Themify is so useful ! Please go ahead and use it
below find an example of icons
Find below the php date format to use for the postgres column type timestamptz
$stmt->bindValue("updated_at", date('Y-m-d h:i:s.oU'));
try {
while ((line = in.readLine()) != null) {
...
} // while
...
} // try
Although this might make sense for long functions with deeply nested structures, it serves only to clutter the kind of small and encapsulated functions that we prefer.
/* Added by Rick */
Source code control systems are very good at remembering who added what, when. There is no need to pollute the code with little bylines.
source : https://medium.com/@mosquitolwz/clean-code-quotes-4-comments-2de28ba0a6e2
SOURCE https://gist.github.com/wojteklu/73c6914cc446146b8b533c0988cf8d29
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
Hello developers,
Here is my typical php comment/header for each of my php functions. Very useful and pragmatic. They provide a clear indication what the function is doing, inputs, outputs and exceptions. This is the art of coding ! Clear readibility and full transparency on the intentions of the functions.
I would definitely make this a requirement for programmer team. Additional work but useful. And if it is an API I would use the zircote/swagger-php library to generate on the fly an amazing swagger documentation
/** * Throw Exception If Parameter Is Not Set * * @param object $requestObjectBody * @param int $httpCode * @param string $httpMessage * * @return void * * @throws \Exception $exception * * @author David Raleche <[email protected]> * @since 10-09-2020 * @version 10-09-2020 * @internal <ticket-number> */ public static function throwExceptionIfParameterNotSet($param, int $httpCode, string $httpMessage) { if (is_null($param) or empty($param)) { throw new \Exception( $httpMessage, $httpCode ); } }
CIO/Managers : When having interns in your company the first exercise to give them is to go trhough existing code and add the following blocs of PHP docs. This will help them understand the code and this will improve considerable the readability of the legacy code. By doing so we quickly pinpoint the function to refactor
I usually give them the task to refactor functions being too long. More than 50 lines
By convention, resource names should use exclusively lowercase letters. Similarly, dashes (-) are conventionally used in place of underscores (_).
Example: /users/{id}/pending-orders
instead of /users/{id}/Pending_Orders
Source of information
Using a hyphen in your URLs is recommended by Google, because it makes your website easy to read for humans. As an end result, this means that your site will place better on search engines. Are you looking to learn more about how to improve the SEO of your blog?
Solution is to add the following line below to this file wp-config.php
define( 'WP_MEMORY_LIMIT', '256M' );
The problem 80040421 is not always Unable to allocate any sequence numbers
This time the problem was missing permits to execute the presorting of the requests
The solution is to make sure these permits exists and the problem will go away
Also, If you have already done the configuration in the past know that the configuration file exists in the following folder C:/WINDOWS
The file name is mrtk.ini