class Test { constructor( public array: string[], ) {} } const result = new Test(["a", "b"]); console.log(result) result.array = ["test"] console.log(result) - res...
Piracy is when you share it?
Hello, how do I add one element to a multi-dimensional array without using array_push? array_push($md_array["1"], $new_element); I'm asking this because PHP docs state: Note...
As a junior developer, would you mention on your resume that you worked as the only developer on a position? On the negative side It could be seem as a sign that you don't hav...
What is the best way to make it clear what a function parameter does? E.g a function getList(optParameter) and I want to add a parameter that returns a somewhat different list...
A lot of my typescript interfaces on the front-end are modeled after the jsonapi specification, i.e. they have type: , id:, attributes: {} How do I abstract that?
Out of nowhere, all my git repositories stopped working and I get a fatal: unsafe repository (...) is owned by someone else Ubuntu 20.04.3 LTS Any ideas?
On React, how would you update a state variable each time it is called on jsx? Example: <h1>{counter}<h1> —> This would end up being <h1>0<h1> <h1>{counter}<h1> —> This woul...
Is 50~55k yr eur a decent salary for a junior~middle developer in Berlin nowadays? I know this was the average range a few years ago but now it seems to be more like 60k+
I have a helper function in typescript that compares two objects and returns their diff. It's a reduce initialized with an empty acc (diff) How do I type this?
New to Redux (I guess this applies to other state libs). I have a product order page which displays the current order price and some other informations that I need to keep in ...
Typescript Let's say I have a generic type Type<arg1, arg2> { type: arg1; foo: string; bar: arg2; } I want to compose/create a new type from this generic type Type2...
Simple question: I'm trying to concatenate a string with a numeric value. But I need to add 1 to this numeric value. Can I do this at the same time as I concatenate it? e.g. e...
Do you guys think it's necessary to deeply master computer science concepts to be a good JavaScript dev or even web developer in general? I often see people say I should learn...
https://twitter.com/Coding_Career/status/1454293034179317764?s=20
You want to hire or be hired?
is there a clean way to modify Date object instances but without mutations? no third-party libs e.g. setFullyear but it returns a new instance with the changed year
does that mean I can commit in the name of any account?
Is there any "right/recommend way" of declaring functional components in React? e.g const Comp = () => vs function Comp() {}
what are these "shopify" developer jobs I see everywhere? You get paid to build landing pages for dropshipping products?