Better HN
topnewbestaskshowjobs
Log inSign up

stringham

102 karma · joined May 9, 2012 (14y ago) · 31 submissions

Submissions

comment 5y ago · link · parent

!false

It's funny because it's true

comment 8y ago · link · parent

Should have (2017) in the title.

3.

Git fixup(blog.stringham.me ↗)

2 points · by stringham · 8y ago · discuss

comment 8y ago · link · parent

What kinds of things do you use it for?

comment 9y ago · link · parent

It was not feasible to stop the entire organization from writing new code to do a migration, which is why most migrations like this happen slowly over time. However, we got a lot of benefits by doing a "big bang translation" like not having to link two different module systems (Google closure and TS)

The hackathon was an ideal time to attempt something like this and we knew the scale of the project was huge. Once the project was complete we each got a couple of extra personal days.

It was really cool tackling a project that many thought was impossible and succeeding. We all had the vision that we were doing something that had the potential to significantly improve our satisfaction and productivity on the daily basis for the long term.

This kind of thing is completely voluntary and everyone who participated really wanted to do it. I think we have a really good work-life balance at lucid.

It's awesome having leadership that supports us in moving forward with a project like this.

6.

Converting 600k lines of code to TypeScript in 72 hours(lucidchart.com ↗)

25 points · by stringham · 9y ago · 8 comments

comment 9y ago · link · parent

I find the idea of https://github.com/facebook/jscodeshift to be really useful.

I've started writing small scripts using the TypeScript parser as a library to make meaningful improvements in our codebase. Since JavaScript is valid TypeScript syntax the scripts work on both.

For example, I wrote a small script to change var to let or const when possible. It uses the AST to check scoping rules and to check if a variable is ever reassigned.

Writing scripts like this is way more effective than doing it by hand.

comment 9y ago · link · parent

I had the same problem with vscode.

I filed this issue: https://github.com/Microsoft/vscode/issues/32246

Rather than wait, I ended up creating this extension last weekend to do it the way I wanted it to: https://marketplace.visualstudio.com/items?itemName=stringha...

9.

Using the word “just” damages credibility(businessinsider.com ↗)

3 points · by stringham · 11y ago · discuss

comment 11y ago · link · parent

I have been following the progress of this game on the-witness.net for a few years. Really exciting that they've got a release date now.

comment 11y ago · link · parent

Interesting that they are moving forward with the name io.js rather than merging into node and keeping the legacy name.

comment 11y ago · link · parent

Great set of problems! I've really been enjoying working through them.

comment 11y ago · link · parent

We use Google Closure at Lucid Software for Lucidchart and Lucidpress. It has been a great tool for us, especially for sharing code across a huge javascript codebase. Compile time type checking and dead code removal have also been great.

It is unfortunate that it isn't used more widely.

It's nice that you can see some of Google's open source projects built using closure

14.

I Read All the W3C Specs(sandersk.github.io ↗)

34 points · by stringham · 11y ago · 13 comments

comment 11y ago · link · parent

On my Chromebook it doesn't override it with rotateY(180deg), but it does on my Linux machine running Chrome 41.

comment 11y ago · link · parent

For Chrome on Linux (41.0.2272.101) I'm seeing the rotateY(180deg);

comment 11y ago · link · parent

I see the scaleX(-1) on ChromeOS (42.0.2311.60 beta) and Chrome for Android (41.0.2272.96)

comment 11y ago · link · parent

Using chrome, and chrome on android inspecting the source shows that it is

  transform: scaleX(-1);

comment 11y ago · link · parent

TLD Source: http://www.iana.org/domains/root/db/google.html

Mirror implemented with:

  body {
    transform: scaleX(-1);
  }

comment 11y ago · link · parent

.google is a TLD

http://www.iana.org/domains/root/db/google.html

comment 11y ago · link · parent

  transform: scaleX(-1);

comment 11y ago · link · parent

That's pretty awesome.

Implemented with:

  transform: scaleX(-1);

comment 11y ago · link · parent

Here's an example I made in plnkr.co: http://embed.plnkr.co/y1a3DWh1P8tTTUamsWbE/preview

It begins by filling in the canvas with random colors.

comment 11y ago · link · parent

Yeah, and I wish it was easier to do properly. This looks like a great resource to help with that.

25.

Frequently Misunderstood JavaScript Concepts (2013)(bolinfest.com ↗)

2 points · by stringham · 12y ago · discuss

comment 12y ago · link · parent

This would prevent users from commenting on multiple articles in a short period of time, and for articles that don't hit the main page the op may never see someone's thoughtful remarks.

For users with over 1k karma, do their comments go through the pending phase too?

comment 12y ago · link · parent

I wouldn't call http an api. Http is a protocol.

comment 13y ago · link · parent

I'm getting it in Chrome as well.

comment 13y ago · link · parent

1. You are exposing your source code to anyone who might be interested.

I think that exposing your CSS source code with comments etc is more beneficial than detrimental. It helps us have a more open web and fosters an environment for new developers to learn from what's already great.

However, the overhead of always sending down the full CSS probably isn't worth it since so few people are actually interested. http://daneden.me/max-css/ suggests including a .max version of your css alongside the .min for this very purpose, which I think is a great idea.

12