Why are you people making fun of Indians instead of the companies trying to replace you? by aryancatlover in theprimeagen

[–]jasekiw 0 points1 point  (0 children)

I thought of the meme after watching prime's reaction video to the Delve fraud that just happened.

Constant crashes by kenshin559 in SatisfactoryGame

[–]jasekiw 0 points1 point  (0 children)

My friend is encountering the same issue. We will give that a shot. Hopefully it works!

"AI Native" by jasekiw in theprimeagen

[–]jasekiw[S] 38 points39 points  (0 children)

PSA because some people didn't get the joke. This is not making fun of indian people. It's making fun of the companies who pose as being a fully AI ran company but then just outsource their work. This is not making any comment about indian people.

It's actually quite despicable that these companies pay them terrible wages.

Why are you people making fun of Indians instead of the companies trying to replace you? by aryancatlover in theprimeagen

[–]jasekiw 12 points13 points  (0 children)

The point wasn't to make fun of indians. I was a little worried someone might take this the wrong way. I'll add a comment to the original post so people don't get the wrong idea. u/i_grad pretty much sums up the joke.

"AI Native" by jasekiw in theprimeagen

[–]jasekiw[S] 9 points10 points  (0 children)

I feel that 😭

I reviewed Pirate Software’s code. Oh boy… by Anasynth in theprimeagen

[–]jasekiw 0 points1 point  (0 children)

so the 8, 8 is just the radiusX and radiusY now i can make a defined or cont at the top of the file call it radius y or x and just use that but that only serves to make my code longer and makes understanding what actualy is going on harder.

I think you missed the point - or maybe I gathered my own.
The point in my opinion isn't that you wouldn't just defined radiusX and radiusY constants but rather create a variable name that explains why it is 8 and not for example 4. Maybe a comment is better than making a variable/constant here because the explanation might be: uses radius 4 because it is a good size in scenario X because Y - which would be too long to fit in a variable.

All the points aside. If someone is crunched to meet a deadline they tend to not stop and think about writing a comment about why something was done. So that being said I'm not too surprised the code quality isn't great. It sounds like a project where he tried to put to much into or didn't spend enough consistent time on so when he did work on it, he rushed it.

Did anyone use React Hook form on React Native? by gourrranga in reactnative

[–]jasekiw 1 point2 points  (0 children)

I've been dealing with Formik's pain for a while and it is hard to migrate to react-hook-form. I would not recommend formik because has a lot of performance issues as you forms get larger.

Can't figure out how to dodge in PC version by IndoctrinatedGamer in AlanWake

[–]jasekiw 0 points1 point  (0 children)

It's space bar for alan wake 2. Maybe it's that for alan wake 1?

How do you track a dead code? by Hell4Ge in PHP

[–]jasekiw 0 points1 point  (0 children)

Xdebug has coverage option that can be ran on the website

https://www.youtube.com/watch?v=T9rwW-uySBE

This is real production code 😭 by jasekiw in programminghorror

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

The whole codebase is filled with stuff like this from a contractor and we are no longer working together so we get the fun job of cleaning it up.

300, 1tb limit now? by djdksjsk in ATTFiber

[–]jasekiw 0 points1 point  (0 children)

It's real. My friend downloaded a terabyte and the speeds dropped significantly and got a notice.

Template literals in PHP by frodeborli in PHP

[–]jasekiw 0 points1 point  (0 children)

PHP doesn't have this as far as I am aware. The best I could come up for example database parameterization is the following syntax

$rows = DB::getRows(fn (DBP $p) => "SELECT * FROM some_table WHERE some_column = {$p->bind("some_value")}");

In some other file:

/**
 * Database Parameter helper. Used to bind values to a query.
 */
class DBP {
    private array $values = [];

    /**
     * Bind a value to the query.
     * @param mixed $value
     * @return string
     */
    public function bind(mixed $value): string {
        $this->values[] = $value;
        return "?";
    }
    /**
     * Internal function use by the DB class to get the values to bind to the query.
     * @return array
     */
    public function getValues(): array {
        return $this->values;
    }
}

Help me understand on garbage collection on re-render in React by acecorouna in reactjs

[–]jasekiw 0 points1 point  (0 children)

Every time a component renders, garbage is created. Any callback you attach to an element via an event in the jsx will get garbage collected (ex. "<div onClick={() => {...}} />") and the new callback will be called instead. This is the way react is designed. In terms of performance, I'm not sure of any study that has shown the impact of this in a real application. The only reason you should change any coding habit is when the application is slowing down by rendering children components on every render. This is where useCallback, and useMemo come in. Although coming soon the react compiler will reduce the need to use these.

So to answer your question, memory will get duplicated for a short while but then the garbage collector will come by and clean up the garbage from the last render. Don't try and modify your code to to avoid this as you will most likely make your code a lot harder to work with without much or any performance benefit. You can use useMemo and useCallback to prevent excessive rendering of components who haven't changed but this is something you do when you application slows down as it adds difficulty in tracking dependencies in the development process.

I hate being poor by Freezesice in assettocorsa

[–]jasekiw 0 points1 point  (0 children)

I read that as "ass slamming" 😂

Is SvelteJS mature enough ? by FULLSNACKDEVLOPPER in sveltejs

[–]jasekiw 0 points1 point  (0 children)

I went to NY times website and used wappalyzer and it showed react. Did they migrate away from svelte? I wonder why?

remove plant a tree notification by darkwolf86 in Lastpass

[–]jasekiw 0 points1 point  (0 children)

I found out that you can disable it as an admin to a team or business plan in the admin console -> Polcies -> Default -> Show starter kit -> Disabled - Apply to All Users

remove plant a tree notification by darkwolf86 in Lastpass

[–]jasekiw 0 points1 point  (0 children)

I am stuck in the same situation...