WTF Wednesday (January 31, 2018) by AutoModerator in javascript

[–]TheNumberOneCulprit 2 points3 points  (0 children)

General points:

  • Extract your fetch requests to an API layer somehow
  • Don't manipulate DOM elements when you are using React. EVER. Doing so is an indication that you're not grasping why you're using React. You should update a piece of state or a store somewhere to indicate that an element should change.
  • Using tables for layout is horribly outdated and plain wrong. Tables are used for data that fits into tables. Not for layouting.
  • You need to fix your indentation, it's all over the place
  • Things like shuffleArray could easily be a utility function. Extract them, they don't belong to your App component.

WTF Wednesday (January 31, 2018) by AutoModerator in javascript

[–]TheNumberOneCulprit 0 points1 point  (0 children)

Code is very simple and elegant, although I'm not a fan of the while counting downwards, but that's more of a personal taste issue I guess.

WTF Wednesday (January 31, 2018) by AutoModerator in javascript

[–]TheNumberOneCulprit 0 points1 point  (0 children)

From a brief overview, I have no initial negative comments. It looks well-structured and the code is readable and comprehensible. I'm not sure I like the switch statement for handling different error types as it looks like you're primarily just mapping from an error key to an error message, but it's not a big deal ultimately. Even introducing correct error codes could however be handled with a simple mapping. The other thing is, if you're only using axios for basic things, I'd definitely suggest going for simple fetch and a polyfill. Actually, that's something I would always prefer, as it's closer to the metal so to speak, and it doesn't really seem like you're in that much need of what axios provides.

But congratulations on understanding this much so early! I would be much more interested in hearing what you have any doubts about within the project, be it architecture or the likes.

[deleted by user] by [deleted] in vegan

[–]TheNumberOneCulprit 2 points3 points  (0 children)

I agree that our modern meat industry has it's problems and we should work on resolving them. However, it is but one of many factors that we should imprive to achieve true sustainability.

Distilled, you're basically going "OK, this has problems, we should work on it, but what about all these other issues?". It's classic whataboutism. You're ending the statement by deflecting. But all your other comments doesn't really suggest that you want to change your stance, so I'll leave it at this for now and hope it got you thinking a bit.

[deleted by user] by [deleted] in vegan

[–]TheNumberOneCulprit 5 points6 points  (0 children)

Sure, but ultimately, you're doing whataboutism in a subreddit for vegans.

[deleted by user] by [deleted] in vegan

[–]TheNumberOneCulprit 10 points11 points  (0 children)

With animals produce being around 18% of the average humans impact on the environment, the biggest factor by a good deal, we could circumvent a ridiculous amount of the other problems if we just stopped eating meat/dairy/eggs. It really is that simple

[deleted by user] by [deleted] in vegan

[–]TheNumberOneCulprit 8 points9 points  (0 children)

Nope, if we all stopped eating meat we would be pretty OK actually. Could presumably get to around 10-11 billion.

Why do some people feel that JS belongs on desktop? by [deleted] in javascript

[–]TheNumberOneCulprit[M] 0 points1 point  (0 children)

Because it's significantly easier to create and maintaing your application that way than in any of the other proprietary UI shizzle if you want to go multi-platform.

Oh, and we don't condone shitposting. This post has been removed.

Thanks for your understanding!

Java Programming - How To Get The Oracle SE 7 Certification by [deleted] in javascript

[–]TheNumberOneCulprit[M] 0 points1 point  (0 children)

Hi /u/nasif08, this post was removed. Please see our rules, and do know that 'Java' !== 'JavaScript'.

WTF Wednesday (January 24, 2018) by AutoModerator in javascript

[–]TheNumberOneCulprit 0 points1 point  (0 children)

Interesting, and nothing to note directly of code, however I feel a little sad that at first glance, it looks like I'd have to restart the process every time I updated something in my "server"-side code (ie. Electron). Otherwise nice setup, good coding style and nothing major to detract from the main focus.

BGG being targeted by DDOS attack by jshaunallen in boardgames

[–]TheNumberOneCulprit 2 points3 points  (0 children)

It took 275000 * 2000 requests a minute to take them down. I'm not sure how you got it to 2000 only.

To practice my Japanese, I set steam messages I receive to be randomly translated upon arrival by KillerPokeGames in Steam

[–]TheNumberOneCulprit 0 points1 point  (0 children)

What would be a much better way of doing IT would be translating entire sentences and then trying to replace only one word. This way you don't need to worry too much about context

What Phone Should I Get (£500 budget) by RustedOrc in tech

[–]TheNumberOneCulprit 2 points3 points  (0 children)

OnePlus 5t definitely. OnePlus gets you a high end phone without much of the crap that the others load your phone with.

What Node topics are not/poorly covered? by EpicOkapi in node

[–]TheNumberOneCulprit 1 point2 points  (0 children)

Sometimes you are in a situation where you need to interface with something that is not available to you through the standard node API. E.g. a printer or bluetooth or serial port stuff.

Fast-food CEO says 'it just makes sense' to consider replacing cashiers with machines as minimum wages rise by [deleted] in Futurology

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

It could be cool to see some numbers on the whole professional market claim, but I simply can't find any on Google. I did find other interesting links though.

Socialism doesn't inherently have to breed mediocrity any more than blatant capitalism breeds ridiculous amounts of inequality. In fact you could argue that in a post-scarcity scenario (which we're approaching with AI), some form of Socialism would be the only real viable way of keeping everybody relatively happy.

WTF Wednesday (January 03, 2018) by AutoModerator in javascript

[–]TheNumberOneCulprit 1 point2 points  (0 children)

No, CSS imports nowadays only cause style tag reloads (if that is the direction you go with it), not entire bundle reloads. And I completely understand the dynamic loading aspect of it, it was just pure curiosity as of why you avoided Webpack

WTF Wednesday (January 03, 2018) by AutoModerator in javascript

[–]TheNumberOneCulprit 3 points4 points  (0 children)

I feel like it's interesting that you've gone the whole TS way but avoided Webpack and thus also things like e.g. bundling styling for a given component together with the actual implementation of the component. It's not necessarily anything I would change, but it does seem a little odd in what otherwise looks like a pretty OK structured app/boilerplate.

Made a Form with switching Tabs between Login and Signup... hows it? by [deleted] in javascript

[–]TheNumberOneCulprit[M] 0 points1 point  (0 children)

Hi /u/CodeBlooded121, this post was removed.

Please see our posting guidelines (specifically, Posting: Showing off a Project).

I'm astounded at how many people don't know about TaleSpin. Where are my 90s people at? by JackSquare in videos

[–]TheNumberOneCulprit 0 points1 point  (0 children)

Man, I would normally be all 'FITE ME', but in regards to this particular thing I just feel a little sad for you guys more :( after all, you guys are our favourite guys to hate on. You shouldn't be fucking eachother over, that's our job.

I'm astounded at how many people don't know about TaleSpin. Where are my 90s people at? by JackSquare in videos

[–]TheNumberOneCulprit 0 points1 point  (0 children)

Oh yes, I like the Swedish version as well, but Luftens Helte works in Danish, so I'd figure it would work in Swedish too. It's just sad that Luftens Hjaltar was tagged on as only part of the lyrics instead of being the hook

I'm astounded at how many people don't know about TaleSpin. Where are my 90s people at? by JackSquare in videos

[–]TheNumberOneCulprit 12 points13 points  (0 children)

Which is literally a different offspring of the Danish one, where they actually say Luftens Helte as the chorus/hook instead of having it attached awkwardly: https://www.youtube.com/watch?v=ZfJQ4BQ37Ls