Readit News logoReadit News
Sakes commented on Animating CSS Grid   css-irl.info/animating-cs... · Posted by u/skilled
anonu · 7 years ago
The <blink> of 2019....
Sakes · 7 years ago
When done correctly and performantly, animations in web apps allow for a user experience that is closer to that of native apps.
Sakes commented on Animating CSS Grid   css-irl.info/animating-cs... · Posted by u/skilled
pictur · 7 years ago
but why
Sakes · 7 years ago
If available in all major browsers, I'd use it for collapsable horizontal/vertical navigation panes/bars.
Sakes commented on Learn React by building a web app   udilia.com/courses/learn-... · Posted by u/DimitriMikadze
nkkollaw · 8 years ago
Transitions are fine, I'm more worried about how to give an indication that a panel has been open or similar.

I'll check it out, though! If you have a mailing list feel feel to add me: me@nbrogi.com

:-)

EDIT: I think your comment below is too deeply nested and it doesn't let me reply. However: I think a mailing list is useful even for personal project. In the event that the project gets traction, it would allow you/motivate you to keep working on it and improve it (I'm a professional side project creator).

As for nested animations, it might make sense to chain them..? Not sure.

Sakes · 8 years ago
Good advice, I'll set it up. The problem I ran into with react-router-redux was the requirement of using location to provide the value for a key on CSSTransition. I had to use this implementation to solve the problem of the missing exit animation. https://reacttraining.com/react-router/web/example/animated-...

This uncovered a new problem for nested animations. The high-level page transition animation occurs even when the url root does not change. So I need to be able to ignore animations on Route components located high in the VirtualDOM, and apply animations (sometimes different animations) on Route components located further down.

Maybe you already know of an elegant solution to solve this problem? If so let me know! In the meantime, I'll keep bang'n on this.

Edit:

Concerning giving an indication that a panel has been opened, I'd just use CSSTransition wrapped around whatever element that is going to be introduced to show that it has been opened. Then define your 'enter' animation in css.

If that seems like overkill, and you can't use did mount to determine if the animation should be applied, then I'd just add a css className to your element to introduce some animation defined in CSS.

Obviously, I may be misunderstanding your use cases here. The above are just knee-jerk thoughts on it.

Sakes commented on Learn React by building a web app   udilia.com/courses/learn-... · Posted by u/DimitriMikadze
nkkollaw · 8 years ago
Transitions are fine, I'm more worried about how to give an indication that a panel has been open or similar.

I'll check it out, though! If you have a mailing list feel feel to add me: me@nbrogi.com

:-)

EDIT: I think your comment below is too deeply nested and it doesn't let me reply. However: I think a mailing list is useful even for personal project. In the event that the project gets traction, it would allow you/motivate you to keep working on it and improve it (I'm a professional side project creator).

As for nested animations, it might make sense to chain them..? Not sure.

Sakes · 8 years ago
Sure! Will do. Honestly, I was just building it for myself, so no mailing list. But I'd be excited to see how you like it.

The problem I'm aiming to solve is nested route animations, and allowing for different animations to be applied depending upon the previous route in history.

Sakes commented on Learn React by building a web app   udilia.com/courses/learn-... · Posted by u/DimitriMikadze
nkkollaw · 8 years ago
One thing completely missing from courses is how to handle animations.

Most React apps have no animations whatsoever (including mine, because I have no idea how to implement them), but they're important for usability IMHO.

Sakes · 8 years ago
I'm literally working on a lib to solve this right now, specifically to be used with react-router. If you want I can contact you when finished and you can give it a whirl.

Implementation will look something like <TransitionGroupRoutes><CSSTransitionRoute path="..."/><CSSTransitionRoute path="..."/></TransitionGroupRoutes>

Sakes commented on Text Is Keeping Kids from Coding   medium.com/@dannyyaroslav... · Posted by u/dyarosla
avaer · 9 years ago
I actually don't know any great coders that learned to code through these kinds of games. They might move the programming-is-interesting gradient, but I don't think the hard part about learning to code is the text.

The hard part about coding is the problems that aren't in the code. Doing research, setting up environments, understanding platforms, dealing with crashes, dealing with crappy tools, debugging, understanding other people's code. None of this is taught by isolated sandbox games like this. Sandbox games might teach some very useful analytical skills, but it's pretty far from coding.

The only thing you really need to get kids coding is to give them the tools needed to do interesting naughty things. Many of the programmers I know learned to code at an early age by hacking games to cheat against their friends. Reading text was never, ever a problem, but the disillusionment of finding out that coding doesn't involve pretty foolproof user interfaces might have been.

Sakes · 9 years ago
I agree. Coding is not fun because writing a command that a machine can compute is inherently enjoyable. Coding is fun because you can manipulate a machine and build something you want that didn't exist before.

I downloaded GameSalad one weekend. My 6-year-old son and I ran through the tutorial which took about an hour. Part way through he got distracted. He spent about 20 minutes changing movement speed properties, object colors, & sizes. I was happy to see him get engaged and just start experimenting. While he did not learn how to code, the seed was planted that creating mobile games is something within his reach.

Sakes commented on Hard Truths about Programming   anna-oz.tumblr.com/post/1... · Posted by u/turingbook
BleachNut · 9 years ago
I really don't wanna see pretentious here, but does anyone actually think autodidactism is hard?

I have diagnosed and unmedicated ADD and I can still self-learn without too much difficulty.

Again, I don't wanna sound too full of myself, but is any of this stuff really as hard the author implies?

Sakes · 9 years ago
You have to take into account a person's expectations of themselves as well as the scope of what they are trying to learn. If your expectations are overly ambitious, it's hard. If you are trying to learn to code some narrowly scoped solution, then its simple.
Sakes commented on Ask HN: What happened to the ORM?    · Posted by u/olalonde
Sakes · 9 years ago
There are a number of things you can do to improve performance of queries generated by ORMs.

* Make sure you are indexing properly

* limit the number of items returned by introducing paging

* use lazy loading where applicable

I'm sure there are other techniques, but these are my gotos.

Sakes commented on Show HN: Get Paid to Build Your Next Side Project   demandrush.com... · Posted by u/hackerews
avaer · 9 years ago
> GET PAID TO BUILD YOUR NEXT PROJECT

> Choose a problem below to get started.

Get paid to build _my_ next project or _your_ next project?

This is clearly a two-sided platform, but the messaging seems conflated: the headline speaks to builders and the instructions speak to end customers.

Sakes · 9 years ago
It appears to me that this is a tool to identify a market / need that is not being met.

There are people who simply want a product/service, no desire for ownership. They post what they'd be will to pay for it, as a customer, and you decide if it is worth your time to build it.

Anyone? Am I understanding this correctly?

Sakes commented on Welcome, ACLU   medium.com/ycombinator/we... · Posted by u/katm
muninn_ · 9 years ago
Although I think the American Civil Liberties Union is incredibly valuable and I'm glad they have a lot more money now to fight for the American people, I'm questioning all of this.

Where was the outpouring of funding when black people were being gunned down by cops from West Coast organizations? Where has YCombinator been as our own impoverished African-Americans are getting slaughtered in the streets of Chicago? Why weren't we funding the ACLU to help these people? I haven't seen Google talk about this, or AirBnB offer support to widows of veterans whose spouse commits suicide and has left them with nothing.

I feel for immigrants from war-torn countries, especially having been there myself. Maybe I'm too cynical and look at these moves (AirBnB, Uber, Google, etc...) as marketing moves. I wish we cared more about homeless people, people in West Virginia and Kentucky who have lost their jobs and got drenched in opiates without any protests from anybody, or veterans who can't pay their VA bills. Idk.

I know this comment will be unpopular, and that's ok. I tend to care more about those who I feel (whether true or not) are being left behind because that's who I am.

Sakes · 9 years ago
As far as I have observed, the only thing people consistently respond to is pain. This can be done through the introduction / removal / or threat of pain. It'd be nice if we all empathized more with other people's pain, but that doesn't appear to be the culture that we live in. Maybe there are cultures that do elsewhere, but I am unaware of them.

But I do have a question for you, when the interests of those with influence align with the ignored, why would your initial reaction be a negative one?

u/Sakes

KarmaCake day565October 19, 2010
About
Developer, gDesign Enthusiast, Founder, Father

hnsakes [at] gmail.com

View Original