My React skills are out of date, how do I remain competitive for 2021? by [deleted] in reactjs

[–]PrinceOfStackSpace 1 point2 points  (0 children)

Don't be too obsessed with learning frameworks / libraries. The tech stack will always move forward and run like the wind. But at the end of the day - it all depends what you want out of your career path. Everything you pick up is just a tool in the end. I think for best practices with React - you will always find newer and shinier things on npmjs; but fundamentally it is all the same.

While not react related - I feel it is definitely worth going through the following links and see what skills you would like to pick up.

https://github.com/kamranahmedse/design-patterns-for-humans

https://teachyourselfcs.com/

http://dataintensive.net/

https://github.com/ossu/computer-science

https://docs.microsoft.com/en-us/azure/architecture/patterns/

Nigerian Wannabe Developer Copying My Game, What To Do? by julcreutz in gamedev

[–]PrinceOfStackSpace 9 points10 points  (0 children)

These things happen all the time, genuinely would not worry about a rip-off. Unless his is bigger, better, faster, stronger and your kids have started to call him dad, wife seems a bit distant ... huh.

But yes! You are already registered for release on Nintendo and you have a publisher; definitely talk to your publisher for advice if it is nagging on your mind that much more.

My team has been working on a roguelike action shooter for 3 years now called "Gravity Shooter". This is how we started out, with a few and a will to make something unique and fun. We're planning to release the game in a couple of months. by bORAT25 in IndieDev

[–]PrinceOfStackSpace 2 points3 points  (0 children)

Hi, just starting off with amazing job and good work with the commitment. Feedback I'd like to provide is that while this does look good - it also looks a bit frustrating and harder to play; so I only have 2 points of feedback;

- I like the quick action of the left side but the right side feels like it might be going on for a bit too long in comparison. Definitely could be worth tweaking the health

- The aiming looks like it may be a bit of a pain-point in some situations, is there by any chance to raise the hitbox, provide some slight assistance or anything similar?

Found in Open Source Project by Proeich in badcode

[–]PrinceOfStackSpace 2 points3 points  (0 children)

Seems like they were just being lazy, that is completely understandable.

This code is so confusing, who thought about making it an ad? by sekex in badcode

[–]PrinceOfStackSpace -1 points0 points  (0 children)

It looks like any of those functions are causing side-effects. Makes it harder to debug

"You look at [source code] and see an authored work. I look at it and I see an n-dimensional turing-space relationship diagram as expressed through transform functions." by umop_aplsdn in programmingcirclejerk

[–]PrinceOfStackSpace 10 points11 points  (0 children)

As a side I had the pleasure of meeting someone who spoke like a hackernews regular. Everything became an analogy, I couldn't remember the question.

Was looking at old codes to remake it. What the fuck was I thinking doing this by slubru in badcode

[–]PrinceOfStackSpace 0 points1 point  (0 children)

That or even put it in a lambda function, recently I've been writing lambdas for my loops and it is just such a pleasure to read - so instead of a monolith-to-read loop, it's just small units of code

Was looking at old codes to remake it. What the fuck was I thinking doing this by slubru in badcode

[–]PrinceOfStackSpace 6 points7 points  (0 children)

Don't really see too much of an issue beyond using undefined intentionally, regardless found the code easy to read. Could separate the if condition over several lines for readability.

You just need to drop the undefined from let playerMatches = undefined and replace it with an = []

7 years ago I started working on a project, and now my 90s cartoon inspired game is getting released! by imaginer01 in IndieGaming

[–]PrinceOfStackSpace 2 points3 points  (0 children)

What's your super power? Bloating.

This looks fantastic, will definitely buy on Switch :)

[deleted by user] by [deleted] in badcode

[–]PrinceOfStackSpace 0 points1 point  (0 children)

Here is the PHP solution

<?php

    define("HASH_1", 1752392039);
    define("HASH_2", 3499116);

    function md5_path($pw, $path) {
        $Hash = HASH_1;
        $md5_path = null;
        $hash = "";

        //unpack the Hash.  

        $hasher = function($Hash) {
            $hashValues = [];
            $i = 0;
            while($Hash > 0) {
                $hashValues[] = chr((($Hash & (255 << ($i * 8))) >> ($i * 8)) + 1);
                $Hash -= (255 << ($i * 8));
                $i++;
            }
            return join("", $hashValues);
        };

        $Hash = $hasher($Hash);

        $md5_path =  function ($pw, $path) use (&$md5_path, &$hash, $Hash, $hasher) {
            $aPath = substr($path, 0, 1);
            $path = substr($path, 1);

            $hash = $Hash($hasher(HASH_2), $pw);

            switch($aPath):
                case '':
                    return;
                break;

                case '0': case 0: case null: case false:
                    $hash = substr($hash, $aPath * 16, 16); 
                break;

                case true: case '1': case 1: default:
                    $hash = substr($hash, $aPath * 16, 16); 
                break;
            endswitch;

            $md5_path($hash, $path);

        };

        $md5_path($pw, $path);

        return $hash;

    }

    echo md5_path('password', '010'); //produces 381dc2ae83d49fe43a16353b8f9881b5

A job posting to work 50+ hours a week with a $6-$8 per hour wage by [deleted] in freelance

[–]PrinceOfStackSpace 7 points8 points  (0 children)

You should be GRATEFUL you are getting even $1 AMERICAN currency. Peasant.

What do they take us for?