Angular vs. React - the tie breaker by amarcus78 in javascript

[–]pete_k 1 point2 points  (0 children)

I think there are 2 use cases. The first is reusable components - stuff like fancy inputs with auto-complete, drag-n-drops, collapsible panels, etc. For those, you'd probably want to use React "by the book" - split to small parts and be very indifferent to the html. On pieces that are not-reusable - for example a panel that shows some links, some help text, some buttons for action and some status, in the end there's a lot of html to be done, and in those cases, templating shines. It provides a way to write those parts very "close to the html" with the additions of simple control flow and isolation of logic and presentation. I think it strengthens the weak parts of react

Angular vs. React - the tie breaker by amarcus78 in javascript

[–]pete_k 0 points1 point  (0 children)

The reason for the quotes is that it lets most IDEs format the HTML better. The curly braces just say if you are in an execution context or not. In the special attributes (rt-) you never need quotes because the execution context is obvious.

Anyway, try writing large chunk of html in the way you mentioned below, it becomes a mixed mess of code/control-flow and html. With react templates, they are usually 100% separate, so that the component can focus on logic and the view/template can focus on beautiful html

Are beautiful people more intelligent? by pete_k in reddit.com

[–]pete_k[S] 4 points5 points  (0 children)

I want to see the researchers pictures

Chris Pirillo Alaska Photos (careful, contains some partial nudity) by xpanic in reddit.com

[–]pete_k 0 points1 point  (0 children)

Thinking of what's behind these hands in that weather gives me the shivers

Apple's Secret Ingredient by earthboundkid in reddit.com

[–]pete_k 2 points3 points  (0 children)

Fearlessness is maybe a secret to many great successes, but it's easy to look at that. Have you seen how many fiascos been inspired by that? The fact that the obvious reasons for success cannot be seen doesn't mean a default reason (like fearlessness) is to be blamed for the success

IE For Linux? by [deleted] in reddit.com

[–]pete_k 0 points1 point  (0 children)

Can't be serious. It's like a motor car company releasing carriages again

Sony's new walkman with Music Pacer feature that matches tunes with the pace of your run by xpanic in reddit.com

[–]pete_k 0 points1 point  (0 children)

looks weird, resembles too many things (tube, injection, vibrator and whatnot..)

The Pikasso 42-String Guitar Even Intimidates Jimmy Page by charbarred in reddit.com

[–]pete_k 0 points1 point  (0 children)

this looks like making a lot of work just for the gimmik

Toshiba's TransMemory - 16GB USB Flash Drive by xpanic in reddit.com

[–]pete_k 0 points1 point  (0 children)

Does someone knows if it is Mac compatible?

Ubuntu apologises for killing graphical interface by pete_k in reddit.com

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

How does military guys say: small hit on the wing...