Skip to content

Instantly share code, notes, and snippets.

View rrcfesc's full-sized avatar
🌌
Quis custodiet ipsos custodes?

Ricardo Jesus Ruiz Cruz rrcfesc

🌌
Quis custodiet ipsos custodes?
View GitHub Profile
The Pros and Cons of Rewriting
A complete rewrite is a very tempting idea. Developers championing a rewrite feel like they will be able to
do all the right things the first time through. They will be able to write unit tests, enforce best practices,
separate concerns according to modern pattern definitions, and use the latest framework or even write their
own framework (since they know best what their own needs are). Because the existing application can serve as
a reference implementation, they feel confident that there will be little or no trial-and-error work in rewriting
the application. The needed behaviors already exist; all the developers need to do is copy them to the new
system. The behaviors that are difficult or impossible to implement in the existing system can be added on
from the start as part of the rewrite.
As tempting as a rewrite sounds, it is fraught with many dangers. Joel Spolsky had this to say regarding the
<?xml version="1.0" encoding="UTF-8"?>
<ruleset>
<arg name="basepath" value="."/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="80"/>
<arg name="cache" value=".phpcs-cache"/>
<arg name="colors"/>
<!-- Ignore warnings, show progress of the run and show sniff names -->
<arg value="nps"/>
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="tests/bootstrap.php"
convertDeprecationsToExceptions="false"
>

En relación a lo de cancelar/archivar voces y figuras retrógradas, creo que lo importante es quien lo juzga, y no juzgar desde el privilegio. Si a ti personalmente no te ha afectado, no eres tú la persona más adecuada para juzgar si está bien o mal circular algo. Es fácil decir que Colón no cuenta... si no eres indígena. Pero si creces con la discriminación y represión brutal por ser indígena, pues tienes la perspectiva que a otros les falta. Es fácil decir que el acoso de Pepe le Pew es cosa menor, si a ti no te han atacado o acosado, o no has vivido que alguien muy cercano a ti haya sufrido violencia de género. Pero te falta la perspectiva para juzgar. Es fácil decir que el machismo brutal del cine de la edad de oro, de "machos" y "hembras" es algo menor, si no has sufrido exclusión y discriminación laboral, salarial, menosprecio y escepticismo profesional por ser mujer: pero te falta perspectiva para juzgar. Es fácil pensar que epitetos homófobos en broma son solo humor de mal gusto, si no has vivido la

@rrcfesc
rrcfesc / ngrok
Created February 7, 2021 09:11
NGROK
$ sudo apt-get update
$ sudo apt-get install unzip wget
$ wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
$ unzip ngrok-stable-linux-amd64.zip
$ sudo mv ./ngrok /usr/bin/ngrok
$ ngrok
@rrcfesc
rrcfesc / Error
Last active April 24, 2020 21:15
1) MedTrainer\Tests\Selenium\Integrations\AscaBundle\CreateAscaCourseTest::testWebinarLink
Facebook\WebDriver\Exception\UnknownServerException: unknown error: Chrome failed to start: exited abnormally.
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=81.0.4044.69 (6813546031a4bc83f717a2ef7cd4ac6ec1199132-refs/branch-heads/4044@{#776}),platform=Linux 5.0.0-1036-azure x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 106 milliseconds
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: '728e2befb3f3', ip: '192.168.240.3', os.name: 'Linux', os.arch: 'amd64', os.version: '5.0.0-1036-azure', java.version: '1.8.0_242'
Driver info: driver.version: unknown
@rrcfesc
rrcfesc / list.md
Created January 1, 2020 19:09
Propositos 2020

1.-

<?php
namespace App\Security;
use GraphQL\Results;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Exception\AuthenticationException;
<?php
declare(strict_types = 1);
namespace App\Tests\Integration;
use Doctrine\ORM\Tools\SchemaValidator;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use function array_walk;
use function implode;
@rrcfesc
rrcfesc / bitbucket-pipelines.yml
Last active August 6, 2021 09:52
BitBucket Pipeline with Selenium Remote WebDriver
# This is a sample build configuration for PHP.
# Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: rrcfesc/dockerfilesmagento2:7.2
pipelines:
branches:
master:
- step: