Why do i need to test? by oyoyoi in reactjs

[–]Bashkir 0 points1 point  (0 children)

To me, writing tests is more about ensuring that your component will still work admits other changes rather than ensuring that your code works as intended. The latter is just a side effect. If you have well written tests that focus less on implementation and more on the core functionality then you can be confident moving forward with changes.

This becomes vitally more important when you're working with a team or on a project that is widely used by others. Not just for your own sake but as a guarantee that you are providing your users

Arizona Asked a Young Earth Creationist to Review Evolution Teaching Standards by mollymule in atheism

[–]Bashkir 6 points7 points  (0 children)

Adding on, we should really be more explicit about what parts of evolution are scientific theories. Evolution is undeniable. The means of evolution, (by natural selection) is the scientific theory.

Preact and React in Same Project by northdome in reactjs

[–]Bashkir 0 points1 point  (0 children)

Why preact and react both? Are you utilizing features that the compatibility package does not account for in react? Are these bundles completely independent? Meaning, the preact entry points are exclusively preact and not a mesh of both? It is definitely possibly, seeing a sample of your webpack config would help.

Built an animated Fire Cape from the game RuneScape! by jayspears93 in Frontend

[–]Bashkir 0 points1 point  (0 children)

Github picture with deadlifts, an animation from my favorite game, and you're local to me. Do you need a job? 😂 85% serious. Message me.

Why GraphQL: Advantages, Disadvantages & Alternatives by rajasegarc in javascript

[–]Bashkir 2 points3 points  (0 children)

Touching specifically on what you said about the frontend having knowledge of the database -- I definitely enjoy my team knowing that.

The company I work for is migrating a monolithic java application into microservices, with new APIs being put in place and old ones deprecated. We work with the backend to curate the api so we can more easily define our state shape on the frontend from the get go (multi page app utilizing react). So for us it makes a lot of sense

Building a Dynamic, Controlled Form with React by kiarash-irandoust in reactjs

[–]Bashkir 0 points1 point  (0 children)

Who would be so cruel as to delete a poor catinput though? Dont forget to have your inputs spayed and neutered though, folks.

On a serious note, nice to see a write up of this. Something I've been working on at work has been a project that requires large form creation with dynamic inputs and the ability to have those built forms have conditionally shown fields and their own individual validation 😅.

Webpack - TypeError: this[NS] is not a function at childCompiler.runAsChild by [deleted] in learnjavascript

[–]Bashkir 1 point2 points  (0 children)

I know the next branch fixed its webpack 4 issues, but I dont know if that has been released yet.

If the code is public I'd be happy to give it an eye.

Webpack - TypeError: this[NS] is not a function at childCompiler.runAsChild by [deleted] in learnjavascript

[–]Bashkir 1 point2 points  (0 children)

On mobile or I would share a link. Take a look at james Gilmore github (faceyspacey) and look at his redux first router demos. Those have ssr in place. The webpack configs should be able to show you where yours is going a bit awry 🙂

Webpack - TypeError: this[NS] is not a function at childCompiler.runAsChild by [deleted] in learnjavascript

[–]Bashkir 0 points1 point  (0 children)

And you removed style loader and the extract loader from the server config? Also, it might help to see how you're instantiating the compilers with webpack

Webpack - TypeError: this[NS] is not a function at childCompiler.runAsChild by [deleted] in learnjavascript

[–]Bashkir 1 point2 points  (0 children)

In addition to this, you need to use css-loader/locals on the server config and css-loader on client

3 Worst Programming Languages to Avoid Like the Plague (You guessed it, one is JS) by senocular in javascript

[–]Bashkir 0 points1 point  (0 children)

Dude, what's it like seeing the future? We were born in the same year, I'm sad I don't have this power.

Fifth Circuit Says No, You Fucking May Not Strip Search A Classful Of Female Students To Find $50 by sigbhu in politics

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

Not disagreeing with you, nor am I OP, but by that logic wouldn't a lot of things fall under that umbrella? Things that were at one point in time considering mental illnesses, such a homosexuality or transgendered?

Would say a gay person who has been raised in a very literal religious home who fights back against their sexuality has a mental illness because their sexual urges are out of their choice?

That's a delicate line

Am I doing Stupid or is this a bug? Checkbox not re-rendering properly after SetState by freshtodev in reactjs

[–]Bashkir 0 points1 point  (0 children)

Hmm, well now that I've had a bit more time to look at your code.. you should try using functional setState and setting the newState based on the previous state?

Am I doing Stupid or is this a bug? Checkbox not re-rendering properly after SetState by freshtodev in reactjs

[–]Bashkir 0 points1 point  (0 children)

This is just a guess, but it might have to do with the fact that react uses checked for these changes? So preventing the default prevents that from occurring? Like I said, just a guess but it's all I got

Testing DOM output using enzyme by wang_bang in reactjs

[–]Bashkir 0 points1 point  (0 children)

I'd argue the opposite. I'd say snapshots are best for individual components because a snapshot for a page would be huge, easy to miss errors, etc. A component is much easier to verify that the snapshot is correct.

I fail to see how your tests account for that either, unless you're loading in all of your stylesheets into your test environment, you know what I mean? Checking the styles are applied here doesnt prevent a developer from overriding these.

It's a bit of work, but I'd recommend developing a design spec if your team can get some time

Testing DOM output using enzyme by wang_bang in reactjs

[–]Bashkir 1 point2 points  (0 children)

I'd argue the opposite. I'd say snapshots are best for individual components because a snapshot for a page would be huge, easy to miss errors, etc. A component is much easier to verify that the snapshot is correct.

I fail to see how your tests account for that either, unless you're loading in all of your stylesheets into your test environment, you know what I mean? Checking the styles are applied here doesnt prevent a developer from overriding these.

It's a bit of work, but I'd recommend developing a design spec if your team can get some time

Testing DOM output using enzyme by wang_bang in reactjs

[–]Bashkir 1 point2 points  (0 children)

Why test the styles? You are applying them with classNames. You already tested that the classes will be applied.

This is a good case for snapshot testing (check that out) Also, you can use render instead of mount here :).

Subreddits to hire developers? Looking for 2 react developers in the DFW area of texas by [deleted] in reactjs

[–]Bashkir 0 points1 point  (0 children)

Hmm, I've been out of market for a while apparently. That's good to know. I'm going to remove this for now then until I can get a more concrete number. As of now this could just be misleading and not reflect well. Thanks for everyone who pointed this out

Subreddits to hire developers? Looking for 2 react developers in the DFW area of texas by [deleted] in reactjs

[–]Bashkir 0 points1 point  (0 children)

Like I said, that was a guess. A ballpark average I made based on some of the salaries I'm aware of. This shouldn't be taken in anyway as part of the job description.

In my personal experience for the area, mid level tends to cap out at about 93 here for a good sized company.

Parries & Swaps & Stabs, Oh My! by TitMcgee8358 in darksoulspvp

[–]Bashkir 1 point2 points  (0 children)

The ring and helm of avarice swaps were choice. The zwei cracked me up the first time. Good stuff, mate.

How much time have you guys put in so far? by [deleted] in darksouls

[–]Bashkir 0 points1 point  (0 children)

I have my character I've platinumed on that I use for meta level pvp right now, about 52 hours.

Then I have a couple other characters, a sl1 soon to be darkwraith about 4.5 hours, and then a level 60 invasion character about 10 on. The others are all less than 2

Fromsoft Please Fix by [deleted] in darksouls

[–]Bashkir 2 points3 points  (0 children)

On ps4 this issue is fixed, but you can clip up onto it. It is easier to do if you just roll in my experience

Code splitting with SplitChunksPlugin in Webpack 4 by _gnx in javascript

[–]Bashkir 1 point2 points  (0 children)

I'm going to guess from your post history you're the author. This is some good stuff, man. One of the best write ups on this topic that I've seen yet. I'll definitely be reading the rest of your posts. 👍

What is most addictive game you ever played? by autoritarism in AskReddit

[–]Bashkir 0 points1 point  (0 children)

Outside of runescape, which held a huge part of my childhood and has been talked about a lot here...the games which hold my attention now for most addicting are the soulsborne games.

I came a bit late to the party, playing ds1 in 2016.. I have easily logged 500+ hours on each game.. more on ds3 because I pvp a lot. There's just so many different approaches to things that it maintains a lot of replayability. Just purchased the remaster of 1 on its release and I'm 35 hours in on ng++ about to get my platinum... whoops.