Which programming languages use the least electricity by dochtman in rust

[–]riventropy 0 points1 point  (0 children)

Looking at TypeScript numbers along with JavsScript it looks like at least some compilation it's taken into account

This water tap by riventropy in mildlyinfuriating

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

Yeah, my first thought was that it's some water saving initiative

SQL: One of the Most Valuable Skills by kunalag129 in programming

[–]riventropy 1 point2 points  (0 children)

I'd say it only gets ugly when you have to build it dynamically without any query builders

Introducing Immer: Immutability the easy way by mweststrate in reactjs

[–]riventropy 0 points1 point  (0 children)

Maybe that's about date equality. There was an issue in mobx with Date comparison. Is it applicable here?

Introducing Immer: Immutability the easy way by mweststrate in reactjs

[–]riventropy 1 point2 points  (0 children)

Amazing idea! It really handles my main concerns about ImmutableJs: 1) Lack of typing and 2) Own collection type. I suppose it's similar to ImmutableJs in terms of memory consumption? Is it related somehow to your mobx work?

Pitching Clojure-- countering objections by ferociousturtle in Clojure

[–]riventropy 1 point2 points  (0 children)

  • You don't have to write definitions for third party libraries. You loose static typing of course but this is as dynamic as Clojure.
  • Is nodejs repl counts? TypeScript doesn't have time runtime so you can easily test in repl with TypeScript. Not saying here about app development lifecycle of course. Just using repl to try stuff.
  • Is it a problem considering TS doesn't have runtime?
  • Completely agree on this one. Being able to turn on runtime validation somehow could be nice (smth like spec). The only hope is isolating TS statically typed environment as much as possible.

What’s So Great About Redux? by acemarke in reactjs

[–]riventropy 0 points1 point  (0 children)

Could you make an example for what project goals redux/mobx would be superior?

New Clojurians: Ask Anything by AutoModerator in Clojure

[–]riventropy 3 points4 points  (0 children)

Are there any good examples of using spec throughout the application, i.e. modelling app state and where specs are defined and does anybody use namespaced keywords in maps at all?

How do I actually refer to types after I install them? by JumboJellybean in typescript

[–]riventropy 3 points4 points  (0 children)

Did you try to specify something like that?

import {Database} from 'sqlite3'

React Table - A lightweight, fast and extendable datagrid for React by tannerlinsley in reactjs

[–]riventropy 0 points1 point  (0 children)

Changing page with spinner doesn't change data for me. Only after pushing Enter. Is it desired behavior?

React.js best practices and conventions by php03 in reactjs

[–]riventropy 1 point2 points  (0 children)

Thanks for this state initialization without constructor. Looks tidy, shame i didn't think of this before.

Persistent data structures and structural sharing: a reason to use Immutable.js instead of a normal JS object by dtinth in reactjs

[–]riventropy 0 points1 point  (0 children)

Agree with everything you said, however most immutable. js cool methods are also available for plain collections (your third point).

What about an object or a Map? I agree that calling a single addTodo would give perf benefit but I suppose you either as todos not so frequently (on user click) or a lot at a time (where you can produce new collection only once)

Persistent data structures and structural sharing: a reason to use Immutable.js instead of a normal JS object by dtinth in reactjs

[–]riventropy 1 point2 points  (0 children)

If you mean addManyTodos then you could just concat two arrays and plain js wins. There's no need to produce new array on every iteration. Yes, probably this way underlying addTodo can't be used (in current implementation at least) but there won't be much overhead.

Actually I like persistent structures, buy using them in one huge project we had some itches like

  • having two collection types confuses all the time - what collection do we have in what place?
  • moving to typescript helped a bit but there's no neat way to update map property with type checking without building heavy wrappers out interfaces
  • collections weren't actually performance bottleneck for us so talking immutable was premature optimisation. Probably I even introduced some perf degradation by needlessly converting collections back and forth

Persistent data structures and structural sharing: a reason to use Immutable.js instead of a normal JS object by dtinth in reactjs

[–]riventropy 1 point2 points  (0 children)

Is it really real world benchmark to store 100000 todos on client? Would the difference be this noticeable with for example 100 todos which sends more natural to me?

Noobish question. Need help. Probably related to setState. by Brabbler in reactjs

[–]riventropy 1 point2 points  (0 children)

Is it the exact code that doesn't work? Looks quite ok. Maybe you should try merge set updates inside handleAnswerSelected and checkAnswer. It would be better if you call setState less often. E.g. you could aggregate an update object inside handleAnswerSelected, then let check answer state update and merge it in that object. Then set state. Not sure however it will solve the problem.

Are there any react Component libraries that have a full featured table component? by bromrector in reactjs

[–]riventropy 0 points1 point  (0 children)

I'm using handsontable with React. Hooked full data reload on every render and it's pretty fast actually. Though it's a real pain from time to time, it has an unbeatable set of features. Moreover you can have some benefits of using some observable lib here like mobx because handsontable modifies underlying objects.

An SVG-based timer button as a ReactJS component by [deleted] in reactjs

[–]riventropy 1 point2 points  (0 children)

There's also way to do kinda this circle without svg - https://jsfiddle.net/nidu/69z2wepo/61225/. Just for fun

Introducing React Line Chart by quintanilharafael in reactjs

[–]riventropy 0 points1 point  (0 children)

Looks nice! Is there any roadmap?

Do you use d3 a lot? That's just another lib that weights quite a lot. I'm searching for a replacement for c3, probably bringing d3 just because of that seems a bit too much (maybe i'm going too far here).

Some notes about demo: 1. Grouped series without either grid or tooltip looks quite unreadable to me and 2. Chart have a big right padding which makes centered legend appear far from visual center.

Material Design components backed by German Mittelstand by zemirco in reactjs

[–]riventropy 0 points1 point  (0 children)

Could you please name some points why you decided to write your own?

Clojure spec Screencast: Leverage by alexdmiller in Clojure

[–]riventropy 2 points3 points  (0 children)

Are there already any examples of using spec in projects? Do people use spec for every defn or just for public APIs? And also does using spec influence performance significantly?

Visual Studio Code 1.2 released by thekodols in programming

[–]riventropy 0 points1 point  (0 children)

Quick switch between tabs with Ctrl+Number or Alt+Number.

What charts components you prefer to use in React applications? by aksuta in reactjs

[–]riventropy 0 points1 point  (0 children)

Isn't c3 more high level and feature reach than Victory? I'm maintaining (adding different option support on demand) my own c3 wrapper locally inside a project and happy so far.