News for hackers. Stuff that matters.

stringham

Re:What is the best programming dad joke? on Saturday December 12, 2020 @05:36PM (#25402441)
!false

It's funny because it's true

Re:Use streaming JSON to reduce latency on mobile on Monday February 19, 2018 @06:41PM (#16416681)
Should have (2017) in the title.
Re:Gmail auto labels on Thursday February 01, 2018 @01:17AM (#16279926)
What kinds of things do you use it for?
Re:Converting 600k lines of code to TypeScript in 72 hours on Friday November 17, 2017 @02:47AM (#15719970)
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.

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.

Re:What's the deal with Ctrl+Left and Ctrl+Right? on Wednesday August 16, 2017 @11:19AM (#15028144)
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...

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.
Re:Future Node.js releases will be from the io.js repo on Tuesday August 11, 2015 @08:30PM (#10045291)
Interesting that they are moving forward with the name io.js rather than merging into node and keeping the legacy name.
Re:Hackthe.computer 2015 coding competition on Sunday July 26, 2015 @01:59PM (#9951718)
Great set of problems! I've really been enjoying working through them.
Re:Five Years of Google Closure on Wednesday June 10, 2015 @07:48PM (#9696444)
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

Re:elgooG on Wednesday April 01, 2015 @10:25AM (#9303782)
On my Chromebook it doesn't override it with rotateY(180deg), but it does on my Linux machine running Chrome 41.
Re:elgooG on Wednesday April 01, 2015 @10:23AM (#9303761)
For Chrome on Linux (41.0.2272.101) I'm seeing the rotateY(180deg);
Re:elgooG on Wednesday April 01, 2015 @09:57AM (#9303540)
I see the scaleX(-1) on ChromeOS (42.0.2311.60 beta) and Chrome for Android (41.0.2272.96)
Re:elgooG on Wednesday April 01, 2015 @12:51AM (#9301701)
Using chrome, and chrome on android inspecting the source shows that it is

  transform: scaleX(-1);
Re:elgooG on Wednesday April 01, 2015 @12:34AM (#9301629)
TLD Source: http://www.iana.org/domains/root/db/google.html

Mirror implemented with:

  body {
    transform: scaleX(-1);
  }
Re:elgooG on Wednesday April 01, 2015 @12:17AM (#9301559)
Re:elgooG on Wednesday April 01, 2015 @12:13AM (#9301541)

  transform: scaleX(-1);
Re:elgooG on Wednesday April 01, 2015 @12:12AM (#9301533)
That's pretty awesome.

Implemented with:

  transform: scaleX(-1);
Re:Conway's Game of Life – Trying It on Images on Tuesday March 17, 2015 @06:46PM (#9222178)
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.

Re:Copying and Pasting in JavaScript on Wednesday December 03, 2014 @12:32PM (#8695059)
Yeah, and I wish it was easier to do properly. This looks like a great resource to help with that.
Re:Coming Soon to Hacker News: Pending Comments on Friday March 21, 2014 @08:37PM (#7446147)
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?

I wouldn't call http an api. Http is a protocol.
Re:Google Keep on Wednesday March 20, 2013 @05:16PM (#5410388)
I'm getting it in Chrome as well.
Re:Why bother with a CSS build process? on Tuesday February 05, 2013 @09:50AM (#5170852)
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.

Re:Ditch QWERTY – Your Hands Need Colemak on Friday November 09, 2012 @09:02PM (#4765639)
I spent a month with Colemak and got to about 40 wpm. The transition to a new keyboard layout is HARD and takes a lot of determination. I know some people find it to be worth the learning curve, but I migrated back to qwerty.

Older »