HNHacker News
TopNewBestAskShowJobs

chrisabrams

1,466 karma · joined May 23, 2012

submissionscomments
chrisabrams··on Windows 95 – How Does It Look Today?
Thank you for clarifying that essentially it was Win 98 (maybe Second Edition) when those applications took off.
chrisabrams··on Does LEED Certification Save Energy? Evidence from Federal Buildings
Is it possible that all of your neighbors in your building have their heater on? This is what happened to me in a building in NYC. It would actually get so warm in the winter I would have to crack the window open or I would get a nose bleed.
chrisabrams··on Show HN: Forgo.js – a 4kb React alternative based on plain JS and DOM APIs
OP didn't want to use hooks, so I showed an example that doesn't require hooks.

I'm aware some of the React community use hooks, some of us still use classes. Classes provide a better interface when dealing with state that is shared between parent and child. This is a write up much better than I can explain: https://react-redux.js.org/api/hooks#stale-props-and-zombie-...

chrisabrams··on Show HN: Forgo.js – a 4kb React alternative based on plain JS and DOM APIs
The OP made it clear they didn't want to use hooks.
chrisabrams··on Show HN: Forgo.js – a 4kb React alternative based on plain JS and DOM APIs
I've taken the example from your homepage and made it in React without using redux or hooks.

    import React, { Component }  from 'react'

    class ManualStateComponent extends Component {
      state = {
        now: null
      }

      constructor(props) {
        super(props)
      }

      // Since you don't want to call `setState`, here is a method with the name you prefer
      rerender() {
        this.setState({
          now: Date.now()
        })
      }
    }

    // Example Component
    class SimpleTimer extends ManualStateComponent {

      constructor(props) {
        super(props)
    
        this.seconds = 0 // Just a plain variable
      }

      componentDidMount() {
        setTimeout(() => {
          this.seconds++;
          this.rerender() // rerender!
        }, 1000)
      }
  
      render() {
        return <div>{this.seconds} secs have elapsed...</div>;
      }
    }



gist: https://gist.github.com/chrisabrams/9e140d212098033365a76666...
chrisabrams··on Show HN: Forgo.js – a 4kb React alternative based on plain JS and DOM APIs
> They didn't emerge from React - but it isn't possible to do React without them.

Here is a React/WebGL game I made which tracks a lot of variables and state, but does not use redux/flux...because it's 100% possible to make even make a 3D game with React without them!!!

https://focused-ritchie-7245d6.netlify.app/

chrisabrams··on Show HN: Forgo.js – a 4kb React alternative based on plain JS and DOM APIs
> They didn't emerge from React - but it isn't possible to do React without them.

It is 100% possible to build large React apps without redux/flux. There are entire ecosystems built around, say Mobx, among many other libraries and tools which don't even follow the flux style patterns.

> The example on the website uses closures to handle component state

I'm not asking about component state; I'm asking how do multiple components access app-wide state. I can't use a singleton for that; how do I know when that singleton is updated? I guess I could use a proxy but I don't want to do that.

> and to let users pick their desired level of complexity.

React is the view layer. It doesn't enforce any type of data layer or state management layer.

chrisabrams··on Show HN: Forgo.js – a 4kb React alternative based on plain JS and DOM APIs
I don't consider reducers, actions, redux/flux to be React specific, even if they are popular in the React world. I know just as many people who don't use those in the React world. IMO what React did was push forward the single data flow paradigm.

What should a developer do that needs to share state across a Forgo app?

It would be awesome if browsers just had a real template language like JSX, we'd see more "web components" which are just a little bit of JSX/or whatever templates and some DOM APIs. Developers are tired of managing binding and unbinding events. React does that well. I assume Fargo does too.

So putting aside the redux/flux paradigm, what else is the real hurdle being solved?

chrisabrams··on Danes Get 20-Year 0% Mortgages
Better is gonna give you pretty high rates -- try shopping with a local lender.
chrisabrams··on Lack of Vitamin D is associated with SARS-CoV-2 infection and mortality
In USA 5000 IU is pretty easy to find at any store that sells vitamins. This is what I buy all the time.
chrisabrams··on Interview advice that got me offers
> Not always. Sometimes it has a repulsive effect. Like trying to score a first date when you're already flaunting the fact that you're engaged to someone else.

In what universe is this an acceptable analogy for anything?

Edit: Make sure to include the quote.

chrisabrams··on Who gains most from canceling student debt?
Banks are guaranteed payment on the student loans they issue (yes there are exceptions but that’s not the norm). The norm is that either the student pays back the loan, or, the government pays back the loan. That’s why banks have decided to loan out 200k plus loans to 18 year olds. State schools or private schools, it doesn’t matter. If the customer is willing to pay more money for the same product (because loan sizes from banks keep growing), then there is an opportunity to raise prices. Sure costs have gone up for schools over the years, so have expectations for what schools provide (more amenities, more staff, more sports programs, etc). That’s only a fraction of the reason for hire school prices.

If you capped how much banks could loan on guarantee, you’d see prices for schools drop pretty sharp. Mark Cuban has talked about this a bunch over the years.

chrisabrams··on Hire people who give a shit
You forgot culture fit under “what matters” /s
chrisabrams··on Apple Silicon M1: Black Magic Fuckery
I remember how disappointed I was when the iPad 1 came out and it didn’t run OS X...some of us have wanted an OS X tablet for 20+ years...

I really do think that a 13 or 15 inch MacBook Pro 2 in 1 like the Dell xps would sell pretty well...

[edit] fixed spell check

chrisabrams··on US Navy destroyer shoots down an ICBM in milestone test
Hard to imagine Top Gun without the carriers...

How often would a carrier get shot on the deck? Would the carriers be farther back than other ships?

chrisabrams··on Nikola admits prototype was rolling downhill in promotional video
Two didn't roll down a hill in a promotional video? I'm with you, I'm trying to figure that out as well.
chrisabrams··on Tell HN: Triplebyte ignoring account deletion, unsubscribe requests
Thank you for posting, glad to hear I am not alone (tried it years ago, cannot unsubscribe).
chrisabrams··on I’m a Developer. I Won’t Teach My Kids to Code, and Neither Should You (2018)
If you don’t want to teach your kids to code, ok. I actually think the sugar cookie example is analogous to web development, especially styling/CSS.

As someone who has taught children how to do html/css/ basic JS it’s amazing to see how they progress; the creativity a child can have is unpredictable but usually inspiring.

Also, why is pocket acting like amp with the url? :/ :/ :/

chrisabrams··on Harvard’s Reinhart and Rogoff Say This Time Is Different
As a student at Harvard, cancelling classes means you lose progress that you would have to repeat. Maybe Zoom is not ideal for certain classes, but it’s better than no class. Not sure what the endowment has to do with anything other than to give you something to whine about?
chrisabrams··on SoftBank’s Vision Fund Loses $17.7B on WeWork, Uber
I'm sure some people would disagree with you. What you value isn't the same as what others necessarily value. That doesn't make it a terrible idea in itself.

The experience of a WeWork and Regus are very different. They can both co-exist because some people like a more community type environment, and some people just want a modular space that is affordable.

WeWork tried a bunch of things that you might not find at a typical coworking space but I personally would pay 2x for a WeWork space over the same Regus space because I will get more value out of the WeWork space which is meeting people. I have spent plenty of time in my career in WeWork and Regus spaces, and WeWork has been much more fruitful in terms of the network effect.

chrisabrams··on If someone asks if you have any questions, ask a question
Since the comments have shifted focus to hiring/interviewing:

Make sure that your company's interview process leaves enough time at the end of each interview to allow the candidate to ask questions. Don't assume the candidate is OK with emailing questions later because you only left the candidate 3 minutes to talk. The candidate pledged a day of their life to interview as they are interested in your company. If they leave your company at the end of the day without being able to ask all the questions they have, there's a chance they will never bring them up later.

chrisabrams··on Career advice for people with bad luck
This was not clear :O Would be good to clarify in your original post.
chrisabrams··on Uber Founder Travis Kalanick Is Leaving the Company’s Board of Directors
How does selling stock “get back” at the board?
chrisabrams··on When Medical Debt Collectors Decide Who Gets Arrested
Sure will do that now.
chrisabrams··on We are clueless about how long things should take
An observation here is that a house or a boat is something that people can see; we've all seen a building go under construction whether it a single family home or an office building. It takes time, and we know you can't rush the process or risk the building being unstable.

With software, many parts of the business can't "see" the development happening, so they don't know why it would take so long. At the same time, unlike a boat or building, software is more likely to be easily modified. Therefore there is less of a risk to get it all right initially. I do not condone said behavior I am merely pointing out a possible scenario in which it could happen.

It is also true that a developer is more likely to be a push over than a general contractor. Source: 11 years as as software engineer and my family has been involved with land and real estate for a long time.

chrisabrams··on How do most SPAs handle breaking API schema changes?
Even Facebook does this when you have left it open in a tab for too long.

[edit]: spellcheck failed.

chrisabrams··on Ask HN: Freelancer? Seeking Freelancer? (May 2019)
SEEKING WORK | NYC | Remote

Technologies: TypeScript, JavaScript, React, Node.js, Docker, Kubernetes, PostgreSQL, Google Cloud Platform, Stellar Blockchain, Ethereum Blockchain, Bitcoin Lighting Network

Résumé/CV: https://www.linkedin.com/in/cabrams/

Email: mail [at] chrisabrams.com

I generally work as a technical lead or architect helping companies build JavaScript applications, API, & SDKs and I do a lot of work with NASA.

My specializations include single page apps, scalable Node.js-backed APIs, JavaScript SDKs, and reliable infrastructure powered by Kubernetes. Repeat clients appreciate my abilities to break down & organize projects as well as hit the finish line.

chrisabrams··on Ask HN: Who wants to be hired? (May 2019)
Location: New York City

Remote: Yes

Willing to relocate: Nope

Technologies: TypeScript, JavaScript, React, Node.js, Docker, Kubernetes, PostgreSQL, Google Cloud Platform, Stellar Blockchain, Ethereum Blockchain, Bitcoin Lighting Network

Résumé/CV: https://www.linkedin.com/in/cabrams/

Email: mail [at] chrisabrams.com

I generally work as a technical lead or architect helping companies build JavaScript applications, API, & SDKs and I do a lot of work with NASA.

My specializations include single page apps, scalable Node.js-backed APIs, JavaScript SDKs, and reliable infrastructure powered by Kubernetes. Repeat clients appreciate my abilities to break down & organize projects as well as hit the finish line.

chrisabrams··on Americans Are Delaying Health Care Until Tax Refunds Arrive
This is what I do but I work for myself. Withholding is easier as most people would prefer to watch Tom Brady throw touchdowns vs manage their money.
chrisabrams··on Show HN: Editable, royalty-free SVG illustrations
Because that’s the terms of the license. You can use it as long as you don’t commercially profit from the freebie. More than reasonable to me.
← PreviousPage 2 of 11Next →