News for hackers. Stuff that matters.

baryshev

Ask HN: What is the best default behavior for defining RegExp routes?

Hello,I'm creating PHP routing library. I doubt about default behavior for defining RegExp routes.There is two alternatives, with (^ and $) by default, or without it.1. /news/[id:[0-9]+]/news/[slug:today.*]2. /news/[id:^[0-9]+$]/news/[slug:^today]First looks more convenient for defining routes. Second looks like any other RegExp as we writing it outside of routing.What do you think about...

( Read More... | no comments | on HN )
Re:Boeing, please don't do it with passengers on board on Friday June 12, 2015 @09:10AM (#9705596)
Here is a side-view: http://www.youtube.com/watch?v=EWTK9phKoaE But this is old video.
Re:Boeing, please don't do it with passengers on board on Friday June 12, 2015 @09:06AM (#9705584)
Press calls it "Near-Vertical Takeoff".
Re:Boeing, please don't do it with passengers on board on Friday June 12, 2015 @08:49AM (#9705501)
I think they need to develop life-saving technologies before doing things like that. Because one small mistake can lead to the crash.
Re:Show HN: TreeRoute – fastest PHP routing library on Friday May 29, 2015 @01:58PM (#9626219)
Another benchmark (more "real-word") https://github.com/baryshev/FastRoute-vs-TreeRoute
Re:Show HN: TreeRoute – fastest PHP routing library on Thursday May 28, 2015 @04:30PM (#9620960)
Hello, HN. I just released my PHP routing library TreeRoute. It's much faster than another pupular libraries because it use a tree datastructure for storing routes. Of course it's supported regular expressions.

Here is a benchmark suite: https://github.com/baryshev/php-router-benchmark

Re:Show HN: TOP.ST – Real-time news ratings on Thursday March 26, 2015 @10:00AM (#9269629)
Thanks. Interesting idea. Like a daily briefing. Added to todo list.
Re:Show HN: TOP.ST – Real-time news ratings on Wednesday March 25, 2015 @04:21PM (#9265661)
Argentina was added. I hope you enjoy it.
Re:Show HN: TOP.ST – Real-time news ratings on Wednesday March 25, 2015 @01:28PM (#9264436)
Thanks for your reply. New countries will be added as soon as possible (one-two weeks).
Re:Show HN: TOP.ST – Real-time news ratings on Wednesday March 25, 2015 @11:58AM (#9263759)
Hello, HN. This is my second attempt to show this project. TOP.ST - it's a real-time news monitoring service.

Since my previous post project has undergone many improvements.

1. Full redesign. Now it looks more clean and modern.

2. Performance improvements.

3. Ranking algorithm improvements.

4. 11 Countries and 5 languages added.

Much work is still ahead, any feedback can help me a lot. Thanks!

P.S. More countries will be added in near future.

Re:Show HN: TOP.ST – real-time news monitoring service on Friday February 13, 2015 @04:01PM (#9047162)
Is still any chance to get some feedback?
Re:Show HN: TOP.ST – real-time news monitoring service on Thursday February 12, 2015 @05:48PM (#9041884)
I sent an e-mail.
Re:Show HN: TOP.ST – real-time news monitoring service on Thursday February 12, 2015 @05:22PM (#9041774)
Hello, HN. TOP.ST - service, that helps you to find most interesting and actual news. I'm worked for a month, and now i think i'm ready to show it. Much work is still ahead, but if I get any feedback it can help a lot. Thanks for your time.
Re:MacBook Air 2013 display lag on Friday October 18, 2013 @05:55PM (#6574271)
I have some display issue with my new MacBook Air 13" (Mid 2013). Core i7, 8Gb, 512SSD. LCD panel model: LP133WP1-TJA7 (LG). Picture on the screen is redrawing very slow when you scroll or drag. Contrast objects leave traces. Seems like very slow display response time. This effect burns my eyes. Apple phone support says that it's normal, after watching my video. Any ideas?

Older »