Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
chrisguitarguy
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
chrisguitarguy
4y ago
> Most mature languages have a logging system which allows the internal logging of a library or module to be silenced, redirected or almost any other action. I think there is a lot of value in libraries doing appropriate logging which ca
2.
▲
by
chrisguitarguy
4y ago
Log (and presumably) deal with errors if you _can deal with them_ close to where they occur. Otherwise just let them throw and/or propagate them up. An application should have some sort of top level error handling to log the error and
3.
▲
by
chrisguitarguy
7y ago
Same for me. Kids are 1.5 and 4. I used to do so much just hacking around, and now it's non-existent. As far as bedtime/sleep stuff: I pretty much just wind down after the kids go to bed. Meditate if I haven't got that in yet
4.
▲
by
chrisguitarguy
7y ago
Seconded, this is a great book. I think all non-managers should read it as well as it will give you some clarity on what you should expect from your manager and what their day-to-day is like.
5.
▲
by
chrisguitarguy
7y ago
I tend to write test cases that re-produce bugs first, then fix the bug. Other than that, I don't stick too hard to test driven development. I did for a while, but you start to get a sense of the sort of design pressure tests create an
6.
▲
by
chrisguitarguy
9y ago
Though it may have started as a, "parasite upon reddit," imgur does stand pretty well on its own now. Try out their mobile app and you'll see a pretty active community.
7.
▲
by
chrisguitarguy
10y ago
That's advertisers themselves doing a bad job of retargeting. First-party data is probably not going to change that. In fact, it may mean you'll just get those ads across all your devices.
8.
▲
by
chrisguitarguy
10y ago
Advertising. Definitely first party data for targeting. An advertiser takes some data from its CRM, sends it to the big social sites and google, and then uses the list to target those folks specifically or create look-a-likes. Actual cross
9.
▲
by
chrisguitarguy
10y ago
PMG | Senior Backend or Frontend Engineers | Fort Worth, TX | https://www.pmg.com/ Onsite or Remote, Full-Time PMG is looking for some senior-level engineers to help us build in house advertising tools. These are usually mo
10.
▲
by
chrisguitarguy
10y ago
This is how I came to work remotely. When my wife and I had to move for her job, I had built quite a bit of the software my company relied on. Had leverage to go remote and the trust of my boss to do so.
11.
▲
On the Myth of the 10X Engineer and the Reality of the Distinguished Engineer
(redmonk.com)
1 points
by
chrisguitarguy
10y ago
|
0 comments
12.
▲
by
chrisguitarguy
11y ago
I suspect it's because WhatsApp's backend can be turned into a platform that will run WhatsApp itself as well as Facebook Messenger. There's a lot more opportunity to do messaging between businesses and individuals (eg. custo
13.
▲
by
chrisguitarguy
11y ago
If your objects require dependencies to do their jobs, it should be impossible to create objects without those dependencies. The objects' constructors should require them. Having setters is, arguably, fine (but probably unnecessary) as
14.
▲
by
chrisguitarguy
13y ago
That's more along the lines of what a lot of TDD literature says. Write adapters or facades that wrap external libraries, use those in your own code's unit tests. This makes you less bound to a specific library as well. Don't
15.
▲
by
chrisguitarguy
13y ago
http://morepypy.blogspot.com/2012/07/hello-everyone.html > I'm proud to release the result of a Facebook-sponsored study on the feasibility of using the RPython toolchain to produce a PHP interpreter. The
16.
▲
by
chrisguitarguy
13y ago
https://github.com/gollum/gollum Named after the software that powers the wiki.
17.
▲
by
chrisguitarguy
13y ago
I have a Bachelors and Masters in Music Performance (classical guitar). Did one year of a doctoral program too before I figured out I liked building things more.
18.
▲
by
chrisguitarguy
13y ago
It's easy to turn off: remove_action('init', 'wp_cron'); Then just set up your own real cron job to run the `wp-cron.php` script however often you'd like. > If your site gets a large influx in traff
19.
▲
by
chrisguitarguy
13y ago
> Most of the CMS's that claim to use PHPass actually use the "portable" option This is true for WordPress, which uses PHPass. You have to replace `wp_hash_password` to get WP to use bcrypt: http://wptip.me/
20.
▲
by
chrisguitarguy
13y ago
There's also a library for PHP >= 5.3.7 that provides the same API if PHP 5.5 isn't an option yet. https://github.com/ircmaxell/password_compat Written by Anthony Ferrara, the same guy behind the `password
21.
▲
by
chrisguitarguy
13y ago
> So it's like PHP where I need to pass in `function modify(&$foo) {` to modify a variable passed by reference. If you're thinking in terms of PHP's primitive types, then yes: that's probably the best equivalent. PHP has the whole o
22.
▲
by
chrisguitarguy
13y ago
I would recommend Doctrine DBAL[0] over Meekro. 0. http://www.doctrine-project.org/projects/dbal.html
23.
▲
by
chrisguitarguy
14y ago
The settings API [0] is really bad. That said, you can still use parts of it without the `add_settings_field` and `add_settings_section` bits. Or you can build reasonably powerful abstractions over top of it that let you get a lot of stuff
24.
▲
by
chrisguitarguy
14y ago
The theme replaced jQuery bundled with WordPress with some external version (eg. Google hosted or otherwise) and did it so on both the admin and front end. That's usually the cause of those sort of issues. 3.4 -> 3.5 brought up a lot of
25.
▲
by
chrisguitarguy
14y ago
location ~ "(^#.*#|~|\.sw[op])$" { return 401; } Or something along those lines. Nodesocket's answer is good as well: http://news.ycombinator.com/item?id=5164017
26.
▲
by
chrisguitarguy
14y ago
Here you go: https://gist.github.com/4477015 Replaces and error page in WordPress with a search for the request URI. Now we just need someone at jQuery HQ to use it. Still uses WP's built in search functionality, which is less than great.
27.
▲
by
chrisguitarguy
14y ago
"Show up and get to work" is a large part of Steven Pressfield's The War of Art [0] as well. 0. http://www.stevenpressfield.com/the-war-of-art/
28.
▲
by
chrisguitarguy
14y ago
There's also a book in a similar vein called "Nickel and Dimed: On (Not) Getting By in America" [1]. Fairly good read. [1] http://en.wikipedia.org/wiki/Nickel_and_Dimed
29.
▲
by
chrisguitarguy
14y ago
http://en.wikipedia.org/wiki/List_of_Ubuntu_releases#Table_o... Ubuntu 12.04 uses version 3.2, 12.10 is on kernel 3.5.
30.
▲
by
chrisguitarguy
14y ago
http://codex.wordpress.org/Editing_wp-config.php#Increasing_... define('WP_MEMORY_LIMIT', '128M');
More ›