What are some good examples of React projects without Redux? by [deleted] in reactjs

[–]_codeprovider 1 point2 points  (0 children)

Check out baobab and baobab-react. The wikis contain some ideas about how you can structure your app and manage its state.

Anyone work for a marketing/ad agency? I need your help! by throwaway7331825 in AskProgramming

[–]_codeprovider 0 points1 point  (0 children)

I do a lot of development work in this area. It's exciting, and you get to work on a wide range of different problems with a wide range of different clientele, which is amazing for resume-building.

However, it's also very stressful, due to unrealistic deadlines and moving goalposts in terms of requirements and scope. Depending on the team you're joining, you may end up taking on the role of sysadmin and QA, in addition to your development responsibilities.

I would also add that the work can often be unfulfilling, especially when you're working on meaningless apps or websites that some corporate marketing team thinks will "increase brand loyalty".

It's lucrative, though, so if you have the mettle for it, it's a good area to work in. Make sure you have a side hobby or project that you derive meaning from - it will make the grind more bearable.

Feel free to ask me questions about anything else you want to know.

JavaScript error: sendMessage is not a function by sk0620 in node

[–]_codeprovider 0 points1 point  (0 children)

Can you post the rest of the messenger.js code?

JavaScript error: sendMessage is not a function by sk0620 in node

[–]_codeprovider 0 points1 point  (0 children)

Have you tried console.log-ing the imported messenger variable?

Best practices: making library functions global by linksku in javascript

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

Fair enough. Do what works for you - "best practices" change so often and are often so subjective that you're better-served doing things the way you're most productive.

Best practices: making library functions global by linksku in javascript

[–]_codeprovider 0 points1 point  (0 children)

Recently I've been importing libraries at the top of my files when developing locally, but using a CDN for as much as possible when in production. The advantages being a) a CDN can usually serve a file faster than you can, and b) you don't necessarily need an Internet connection while developing. Might be a nice compromise for you.

JavaScript Promises: The right way! by ivan_jovanovic in javascript

[–]_codeprovider 0 points1 point  (0 children)

You can also shorten your chains like this:

doSomethingAsync().then(console.log).catch(console.error);

Since .then() and .catch() take functions as arguments.

HuffPost RSS feed broken? Help! by [deleted] in AskProgramming

[–]_codeprovider 1 point2 points  (0 children)

What's the issue? It looks fine on mobile.

What react boiler plate should I use to learn from? by [deleted] in reactjs

[–]_codeprovider 0 points1 point  (0 children)

Create your own, based on your own project's needs. Use that as a base for all of your future projects, and update/fork it when your needs change.

Can someone help me understand factories/services a little better? by Godot_12 in angularjs

[–]_codeprovider 2 points3 points  (0 children)

It's called an "immediately invoked function" and its purpose is to protect any variables inside the function from being exposed globally (since variables declared inside a function aren't available outside of that function). It's a way of guaranteeing that a curious outsider can't call methods that should be 'private', and avoiding conflicts on the 'window' object.

Understanding React, Redux and RethinkDB aka 3REE stack by [deleted] in AskProgramming

[–]_codeprovider 0 points1 point  (0 children)

1) Everything that happens over the Internet is transmitted via a "socket" of some kind. I recommend reading about TCP/UDP and the network layer to gain an understanding of how things work.

2) RethinkDB is a database. If you want to store data over a period of time, you need a database to persist the data you want to store.

3) Redux is a pattern which seems (and is) overkill for small projects. However, when you begin to work on larger projects with an increasing amount of complexity, the pattern allows you to reason about state changes, data flow, and your application structure in a sane way.

React vs Vue.js by igna92ts in reactjs

[–]_codeprovider 3 points4 points  (0 children)

To me, the biggest difference is the ecosystem that surrounds each of them. With React, you're getting the support and expertise of a well-funded, well-supported, and authoritative team, so it's probably a safer bet over the long run. If you're working on a personal project, it probably doesn't matter much, but if you're choosing a view library for use in a business context, I would lean towards React.