wlue

Joined 16 years ago

Karma
635
Submissions
34
Member since
Aug 3
Canadian Software Engineer. http://wenhaolue.com

Co-founder of Sesame (Imagine K12 F15). http://sesamehq.com

[ my public key: https://keybase.io/wlue; my proof: https://keybase.io/wlue/sigs/cKwqz0__l_EqCTAV9BYFpcYkNj-DNV8gqlCkMXE1eeM ]

View on Hacker News

Recent submissions

Comment · 12 years ago
Aw man, is there any way to still apply? I had the form filled out in my browser, and I was waiting for a friend to fill out his application, but I ended up forgetting to submit the form before 12:00am PST.
Comment · 14 years ago
Looks like Visibli (http://visibli.com), if you haven't seen it before.
Comment · 14 years ago
Reminds me of pttrns (http://pttrns.com/). Being able to look at a lot of apps can be a source of great motivation if you're having designer's block.
Comment · 14 years ago
On OS X, you can use KeyRemap4Macbook (http://pqrs.org/macosx/keyremap4macbook/) to turn on the feature with a bit of hackery.

I have not figured out how to do it on Windows, but I imagine that it might be possible with AutoHotKey.

Comment · 14 years ago
The funny thing is that I know a few people who do this. (Holding Caps Lock = CTRL, tapping Caps Lock = ESC)
Comment · 14 years ago
A strategy that I found works really well to quickly style everything is to create a category on UIView that defines a block property decorated with UI_APPEARANCE_SELECTOR, then on the setter, invoke the block. Then set the appearance proxy on app startup:

  [[UILabel appearance] setStyleBlock:^(id view) {
    UILabel *label = view;
    label.backgroundColor = [UIColor clearColor];
  }];
The advantage is that you can style properties that aren't supported by UIAppearance natively, since a block just gets run when the view is ready to be styled. You also can style subviews from the same block (ie. title label inside of a warning view should be red and bold).
Comment · 14 years ago
I worked at a start-up whose engineering lead brought familiar coding style to a project that was inherited. We were imposed a combination of C89-esque and Microsoft kernel coding style on an Objective-C source code. Things like defining all variables at the beginning of the function definition in alphabetical order in CamelCase, having instance variables prefixed with the class abbreviation, and other inane rules. It went something like this:

  - (void)
  doSomethingOnObjectAndNumber:
    (NSObject *) MyObject :
    (NSInteger) MyNumber
  
  /*++
  Some unstandard doc format.
  --*/

  {
    
    ...
    return;
  }
Before I started, I was told that the project migrated from git to svn to "make branching easier". I do not work there any more.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton