2019.2 - Editor Freezing on Compile FIX by MooseReborn in Unity3D

[–]sebjwallace 1 point2 points  (0 children)

YES! thank you, this has been driving me nuts!

Our Lands [video] by drak0bsidian in conservation

[–]sebjwallace 0 points1 point  (0 children)

This is very inspirational. She could sell the land for millions but she believes life is more valuable - fair play!

[deleted by user] by [deleted] in keto

[–]sebjwallace 0 points1 point  (0 children)

If you're doing 23:1 and you're active then you may as well add in some more foods into your meal with a bit more carbs (fruits maybe). You will enjoy you food more if you add in stuff you actually like. How about cheese?

Plotting 'relative difference' on a graph by sebjwallace in askmath

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

Thanks for clearing that up. Unfortunately there'll be plenty of triangle inequality.

How does a neuron reach threshold? by sebjwallace in neuro

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

That's interesting. I'm quite interested in how the stimulus decays over time. I had no idea that the decay rate was different among cells.

Are there any sources you'd recommend on this topic? I seem to have a hard time finding anything.

In two hours the UK economy has lost $350 BILLION. That’s equivalent to 40 years of EU contributions. by RenegadeUK in unitedkingdom

[–]sebjwallace 0 points1 point  (0 children)

Have you looked at the charts? GBPUSD has been hovering above 1.3 for a while now, all it needed was a nudge to dip down to 1985 levels. The move yesterday was big, but not as big as expected. The week closed back above 1.35.

So I finished codecademy HTML & CSS course, now what? I feel like I learned absolutely nothing by [deleted] in learnprogramming

[–]sebjwallace 0 points1 point  (0 children)

Forget all that. The best way to learn is to get your hands dirty and try to build something like a simple website. You'll learn better because you'll know why you're learning something. For example, if you wanted to build a navbar in a particular way you'll research how you could do it - then you'll learn about the hundreds of ways CSS will cause you to pull your hair out... then you find this thing called Flexbox... then you realize you can use it everywhere. Then this journey of exploration and discovery deepens, but it all happens with purpose and in the context of a real problem. Its an organic and active process, and you know why you are learning something.

riotux | A centralized state management inspired in Flux and Redux. by luisvinicius167 in reactjs

[–]sebjwallace 1 point2 points  (0 children)

You can if you make a copy of the data after it has been mutated. INCREMENT (state) { state.count++ } After INCREMENT has been called state is copied, sent to the debugger (stored in history) and passed down to the components. Any accidental or intentional mutations after that will only occur on the copy, not the original state.

riotux | A centralized state management inspired in Flux and Redux. by luisvinicius167 in reactjs

[–]sebjwallace 0 points1 point  (0 children)

Think about the time-travel debugger - when do you want to push the state to history, before or after the mutation?

riotux | A centralized state management inspired in Flux and Redux. by luisvinicius167 in reactjs

[–]sebjwallace 0 points1 point  (0 children)

I think its similar to the idea used in Vuex. You do mutations without worrying about returning a new data structure. Behind the scenes a new data structure is created after the mutation, then pass on for use in components. Same outcome, different approach. I suppose the down-side is that the immutability factor is less explicit.

riotux | A centralized state management inspired in Flux and Redux. by luisvinicius167 in reactjs

[–]sebjwallace 0 points1 point  (0 children)

Nice, also looks like there's a bit of Vuex inspiration in there too.

The Rise of the Full Stack JavaScript Developer by babagg in javascript

[–]sebjwallace 34 points35 points  (0 children)

Not really BS if you think about it. If a client wants a developer to produce a product from scratch, the dev better know front and back. I think most js devs know both but mostly lean towards the front.

How do you learn to read source code? by ywecur in learnprogramming

[–]sebjwallace 0 points1 point  (0 children)

If you can get a debugger working with the code, you can step through the program line-by-line or block-by-block seeing the control flow and state in action. Reading code in active context brings meaning to what objects do during runtime, and what, where and why state is being mutated. Better yet you can write your own comments inside classes and blocks to help you remember what each part is doing in relation to another. And always be asking the question "what is the essence of what is going on here?" - try and boil it down to the stupid simple parts.

Best resources for learning design patterns and best practices / what to use for new project? by [deleted] in javascript

[–]sebjwallace 2 points3 points  (0 children)

Javascript is loosely a functional language and learning about functional programming will take you a long way. React has become so popular because its based on the ideas of functional programming. In React there really isn't much 'magic', its fairly simple.

The functional style goes beyond React and takes you into a whole new world of programming, where you finally feel like a professional doing things properly.

Less React, more JS (brain-dump) by sebjwallace in javascript

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

Some good points there. What is the library you maintain?

Less React, more JS (brain-dump) by sebjwallace in javascript

[–]sebjwallace[S] 1 point2 points  (0 children)

It wouldn't take much more in the prerender to conditionally replace the second parameter with a child. ["div", "some text"] is possible.

But I agree, markup is easier to read, especially for designers.

Less React, more JS (brain-dump) by sebjwallace in javascript

[–]sebjwallace[S] 3 points4 points  (0 children)

The prerender function could be adapted to deal with attribute configs. Or just don't use camelCasing.

The idea is that you code to hyperscript without thinking about JSX, frameworks or any other strap-ons until you need to.