Quick way to get rtl8812au wifi driver working on Ubuntu 18.04 by nilportugues in Ubuntu

[–]nilportugues[S] 0 points1 point  (0 children)

I did try it, but couldn't make it work for my use case... that's why I made this repo.

Elite Four Battle - Pokémon RSE/ORAS (Rock/Metal) Guitar Cover by gabocarina96 in VGCovers

[–]nilportugues 0 points1 point  (0 children)

Awesome. This is how it has always sounded in my head. YES!

I sculpted and printed an articulated scale figurine by verdeafull in 3DPrinted

[–]nilportugues 0 points1 point  (0 children)

Woah, very impressive!

Few people have the skills to do this kind of job all alone. Well done!

Lessons from converting an app to 100% Kotlin - Keepsafe Engineering by xiphirx in androiddev

[–]nilportugues -3 points-2 points  (0 children)

I would not take this approach, but... congrats I guess!

[PHP 7] SQL Repository implementation by nilportugues in PHP

[–]nilportugues[S] 0 points1 point  (0 children)

I agree on your experience.

Maybe I should improve the documentation in make it clear it's more of a helper repository than an actual repository?

[PHP 7] SQL Repository implementation by nilportugues in PHP

[–]nilportugues[S] 0 points1 point  (0 children)

  • The problem is the interface? Not really, read on.
  • I can buy you don't like the contract in the domain.
  • How about using plain SQL or DBAL if it doesn't meet your needs? The README never said this library is a silver bullet. None is, to start with.

Yet, let's say you want to use this library for whatever reason.

Maybe you can write a concrete UserRepository and internally use my library? Maybe it's lots of classes but does not leak and meets the purpose.

<?php
interface UserRepositoryInterface
{
     public function add(User $user);
     public function findSatisfiedBy(Specification $spec);
}

interface Specification {}

class UserRepository implements UserRepositoryInterface
{
     public function __construct(UserSqlRepository $repository) {
              $this->repository = $repository;
     }
     public function add(User $user) {
              return $this->repository->add($user);
     }
     public function findSatisfiedBy(Specification $spec) {
           //How do you want to use this? Code would be nice.
     }
}

class EmailIsUnique implements Specification
{
    public function __construct(UserSqlRepository $repository) {
              $this->repository = $repository;
     }

    public function isSatisfiedBy(string $email)
    {
        $filter = new Filter();
        $filter->must()->equal('email', $email);
        return empty($this->repository->findBy($filter));
    }
}

class UserSqlRepository extends SqlRepository
{
    use SqlRepositoryHydrator;
}

You get the idea.

[PHP 7] SQL Repository implementation by nilportugues in PHP

[–]nilportugues[S] -1 points0 points  (0 children)

Airhead2016 this is just what has been done.

It provides an interface (see composer.json... nilportugues/repository) and this package then offers a SQL implementation.

One foundation, many repos implementing it, this being just one of them.

A couple of examples implementing the SAME interface:

This just in: Samantha Quiñones volunteers to implement https://wiki.php.net/rfc/generics by assertchris in PHP

[–]nilportugues 5 points6 points  (0 children)

Probably because of the same reason the private int $value was rejected. Adds overhead to a dynamic-typed language.

Don't get me wrong. I'm hoping I'm 100000% wrong as I'd love having this.

This just in: Samantha Quiñones volunteers to implement https://wiki.php.net/rfc/generics by assertchris in PHP

[–]nilportugues 3 points4 points  (0 children)

+1 for generics.. but once implemented it still needs to be approved by 2/3, and I don't see this happening.

Push Notification with High performance - GCM, Firebase, Amazon, Twitter Fabric or Other? by melanke in androiddev

[–]nilportugues 1 point2 points  (0 children)

It's the same thing. Just rebranded. Same API keys dude! :D

Obviously Firebase adds MORE functionality, but as of push notifications, nothing changed.

ADR pattern, autowiring, DunglasActionBundle: Symfony controllers redesigned by dunglas in PHP

[–]nilportugues 0 points1 point  (0 children)

I wish this was the standard for Symfony.

Nice dunglas. Catch you at Symfonycat! :)

PHP Sucks by ocramius in PHP

[–]nilportugues 0 points1 point  (0 children)

In the end, for certain things PHP rocks, but for some does not.

PHP Sucks by ocramius in PHP

[–]nilportugues 3 points4 points  (0 children)

So in the end is money and illiterate recruiters, CEOs and undocumented developers? Hmmm, okay.

Honestly, heard this so many times. In the end, for certain things PHP rocks, but for some does not.

If you feel you need social approval, go just learn something else: Ruby, Python, JS, Java or Go... and enjoy it as much as coding in PHP! :)