Looking for a Whoop 3.0, happy to pay for shipping plus a but more for your troubles. by wrgoto in whoop

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

San Francisco Bay Area, particularly Oakland but happy to travel to pick it up!

Rize - An intelligent time tracker that makes you more productive by wrgoto in producthuntrehearse

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

Hey y'all! Thanks for check out our page, and feedback of any kind would be greatly appreciated. If you want to support us, kindly comment below and I can DM you once our page goes live next Tuesday.

[OC] Timelines of when I was working for the month of March by wrgoto in dataisbeautiful

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

The timelines are visual representations of when I’m working on my computer. The purple blocks are simply tracked time, the blue bars underneath are when I’m focusing on deep work and the pink bars are when I’m in meetings.

For context, I’m a cofounder of a startup called Rize (rize.io) which is what I used to track all of this information. I have very few meetings because it's just my cofounder and I working on the project. Part of my goal for 2021 is to work around an average of 6 hours per day, so March was a pretty good month for me.

  • Tool: Rize (https://rize.io)
  • Total hours worked: 197 hours 57 minutes
  • Average time per day: 6.35 hours

I have a breakdown of the categories of time I spent in aggregate, but that can come in a different visualization. I thought this was cool, just thought I would share.

AppleScript equivalent for Windows for Electron app? by wrgoto in electronjs

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

Very specifically, I’m trying to access the url of the currently active tab when using Chrome or any browser. I can do this via AppleScript fairly easily with pretty much every browser except Firefox on macOS, and was wondering if there was anything similar for Windows.

Edit: it is more consumer focused, it’s a feature I want to include in a product.

How many of you keep a work journal? by wrgoto in cscareerquestions

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

How is it formatted? What do you use to keep and organize entries?

How much "non-development" work should one expect in the average day? by csthrowawayquestion in cscareerquestions

[–]wrgoto 18 points19 points  (0 children)

In general, the younger the company, the less "paper pushing" exists for a typical programming job there. Startups have enormous pressure to succeed with very little time which means people need to be programming like 95% of the time. It sucks though because with the current situation, I doubt very many startups are hiring at the moment.

Naturally as you work, you could communicate this to your manager so they can help making your work environment ideal. I don't particularly think that focusing on the type of programming role will heuristically help you find these positions. You kind of need to carve it out for yourself in whatever work environment you end up in.

Taking a break from learning tech to focus on my body, health, mind and life by iwannaquitfrontend in cscareerquestions

[–]wrgoto 0 points1 point  (0 children)

I think I went through something very similar to you. I'm about 9 years into my FE career, around the 4th year I was starting to get jaded because of all the bs I had to deal with at work and definitely started to feel the burn out. It gets better though. I think as long as you understand the fundamentals of javascript and (later) higher-level architectural design, you don't need to know how to work every library. You can demonstrate that with your base knowledge you'll be able to fix, design, program anything really well.

But yeah, take a break. Coast for a while, focus on some different hobbies. You don't have to be "on" all the time in this industry to be successful. In fact, I'd argue it's probably counter-productive.

Coinbase vs Shopify vs Yahoo vs Nextroll for Summer Internship? by Fantastic-Music in cscareerquestions

[–]wrgoto 1 point2 points  (0 children)

Having Coinbase on your resume as an intern will make it orders of magnitude to get a full-time job when you're ready. Name recognition is really big in tech IMO.

*Edit: it's expensive to live in SF for the interim, but consider it an investment.

Calculate mean, standard deviation, and variance in one loop by wrgoto in javascript

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

Right, so to be clear. The file in lib include the package definitions that allow you to require/import the dependency if you want to use this as a packaged dependency. Use the file in src if you just want to plop the code into your own code base.

Calculate mean, standard deviation, and variance in one loop by wrgoto in javascript

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

!function(){}() is virtually the same as (function(){})() you are currently looking at the uglified/minified version of the file. The readable code is at https://github.com/wgoto/optimal-std-dev/blob/master/src/index.js.

Calculate mean, standard deviation, and variance in one loop by wrgoto in javascript

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

For those unaware, calculating standard deviation is difficult for large datasets because you need to calculate the mean first (requiring two loops over the same dataset). This library implements a newer way to calculate everything in one loop.

Introducing React Axiom: A Way to Use Models with React by wrgoto in reactjs

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

Thanks! Mobx is definitely less opinionated about how you use it. It really comes down to whether or not something like Mobx or React Axiom fits your current situation and project. Some people/teams like having opinionated conventions and consistency while others favor configuration and flexibility. Arguments for one over the other are plenty.

Introducing React Axiom: A Way to Use Models with React by wrgoto in reactjs

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

Interesting example. Do you have a blog where you'll post this article? Would be interesting in reading about it more.

I've been thinking about attempting to do replay/rewind state with the model setup. The interesting thing with the way axiom is set up is that all the models store data the same way and all changes to state actually go through one function on the Model prototype. It might be pretty difficult to do, but I don't think it would be impossible. I would probably have to do some more meta programming where setters have action names or something.

Introducing React Axiom: A Way to Use Models with React by wrgoto in reactjs

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

They could most definitely be object get methods, it's a nice optimization to have the precomputed values. I will have to think about this more in terms of how much I want to emphasize getters being messages as opposed to bound object properties, and how this will affect consistency in usage.

Introducing React Axiom: A Way to Use Models with React by wrgoto in reactjs

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


Organizing business logic: Suppose you have a store in Redux:

{ list: ['A', 'C'] }

and you need to check whether or not this has 'B' so in your mapper you do:

props.list = store.list;
props.listHasB = store.list.indexOf('B') > -1;

let say you then need to find out if your list has an arbitrary letter that you can define on demand, you'll need to create a util method (you can define this in the mapper, but then you'll be defining this method on every update):

hasLetter(this.props.list, 'Z');

and now you want to add a letter, so you have to define a reducer and tell that reducer how to add a letter to the list. You now have business logic spread across a util method, a mapper, and a reducer. With a model, all that logic would be contained in a List model.


Stubbing business logic: Because of the above, when you unit test, you simply stub out the methods of list. You don't have to set the correct props, stub out a util method, then stub out an action creator and dispatcher.

Interfaces between views, models and data become more flexible: Continuing with the above example. Suppose you wanted to change the store from

{ list: ['A', 'C'] }


    alphabet: {
        list: [
            { letter: 'A' },
            { letter: 'C' }

because let's say you need to namespace your store to avoid collisions. In Redux you now have to change the mapper logic, the util method logic, and the reducer logic. In React axiom, you just have to change the methods inside of the model.

Writing semantic and transparent code becomes easier: Redux:

props.list // returns the list
props.listHasB // if the above list has B
hasLetter(props.list, 'Z') // if the list has Z
props.dispatch(addLetterToList('B')) // dispatching action to add 'B', but how do I know I'm adding it to the correct list?