HNHacker News
TopNewBestAskShowJobs

RegEx

1,051 karma · joined July 19, 2011

http://joequery.me - Programming and Math articles.
submissionscomments
RegEx··on HTTPretty 0.5.8 – mock HTTP requests in Python at the socket level
I really, really like this. I will definitely use it at work and for my own personal projects.

I will admit, though, that I'm not a fan of the rspec-like broken English. I hate to bikeshed here, because I really do love this idea, but these are just the opinions of myself, nobody particularly important. Feel free to disregard them :)

Some find the following to be more readable by the fact that it has more English words:

    expect(HTTPretty.last_request).to.have.property("querystring").being.equal({
    ...
It is in fact easy to read, but I find it very hard to write. The fact that the commands are so close to English throws me off more, because there are so many ways to construct a "sentence" that "sounds right" but is not equal to the desired command.

    expect(HTTPretty.last_request).to.have.property("querystring").being.equal({
    expect(HTTPretty.last_request).to.have("querystring").being.equal({
    expect(HTTPretty.last_request).to.have.property("querystring").equal({
    expect(HTTPretty.last_request).to.have("querystring").equal({
I would personally prefer something like the following. Even though it isn't as friendly to non programmers and doesn't read like English at all, it's hard to get wrong.

    expect(HTTPretty.last_request).querystring.equals({
I obviously do not know enough about the project yet to know if there are so many potential properties (such as 'querystring') that the .property method became a structural necessity as opposed to syntactical sugar. If there aren't so many properties, I'd just hardcode them into methods/properties.

Once again, I really look forward to using this project, and it's perfectly okay to reject my opinions. The beauty of open source is that I can simply create a wrapper around what I dislike! :)

RegEx··on Keeping Passwords in Source Control
A project is worth open sourcing if it's useful enough for other people to use. I personally do not believe there's much more to it than that.
RegEx··on Fabrice Bellard: Portrait of a super-productive programmer (2011)
TI-82 here. I made small applications to do my 7th grade algebra homework. They took longer to make than just doing the homework, but I enjoyed automation.
RegEx··on Keeping Passwords in Source Control
> Is there any interest from HN if we choose to open source this?

I personally don't understand this type of comment. Just open source it!

RegEx··on Zynga’s chief game designer, Brian Reynolds, resigns
This is very articulate nonsense. Not all purchases that grant utility encourage addiction, so your economics lesson doesn't apply to most of the things we buy.
RegEx··on Valve Pushes Out Half-Life For Linux
Sounds fun! I've heard a lot about the game and I'm thinking of giving it a go myself.
RegEx··on How to use Photoshop in a VM on Ubuntu
No, nothing at all. I have an ivy bridge i5, 8GB 1600, and two old nvidia geforce 8600 under sli. Perhaps the people at /r/techsupport could help. Full screen in my VM feels just like booting into Ubuntu - no lag at all.
RegEx··on How to use Photoshop in a VM on Ubuntu
2 processor cores and 2G of memory is all mine needs to perform well. Perhaps my level of "fast enough" is much slower than yours, but my VM doesn't feel any slower than the host.
RegEx··on How to use Photoshop in a VM on Ubuntu
I have a Windows host and Lubuntu guest. I love the setup. It's perfect for gaming and dev.
RegEx··on How to use Photoshop in a VM on Ubuntu
I don't see any advantage to running the install native. I've actually had more issues in native installs than through VMs.

As a side note, if anyone is interested in running an Ubuntu desktop VM, I highly recommend Lubuntu. It's extremely lightweight and fast, it's perfect for VMs.

RegEx··on Nexus 4 demand 10 times higher than Google expected
A lot of people around here have that irrational sense. It took a while for me to shake it off, but I'm glad I did.
RegEx··on Pirate Bay Branded “Malware Distributor” by Google
Irrespective of the content on TPB, I've been redirected to pages I didn't want to go to while on the site.
RegEx··on Two bills target video games following Sandy Hook tragedy
I'm a heavy player, and unfortunately I've never had the joy of seeing arrows flying around me during the day.
RegEx··on P2P banks, 1 line of code
It's similar to many jQuery plugins I've seen. "LOOK, you can do all this with one line of code!"

    $("#mydiv").someplugin();
But then they show all the HTML adjustments you have to make to get the plugin functioning. Just tell me straight!

But, credit to the author, I always like seeing how people use the command line to accomplish things. One day, I'd like to make a "get_subs" command that orders Jimmy Johns for me.

RegEx··on [dead]
This comment contributes nothing to the conversation. Leave the "So brave" comments at Reddit.

If you have something informative to say, I'd like to hear it.

The claim by the parent is that they aren't just some new startup, but that they've been in the game for quite a while (12 years by parent's numbers) and are just now expecting profit. This isn't exactly the same as a blanket criticism of startups that aren't profitable due to the sheer magnitude of time for StumbleUpon.

RegEx··on What If Cars Were Rented Like We Hire Programmers?
Save the topic of pedantry for another thread my friend ;)
RegEx··on What If Cars Were Rented Like We Hire Programmers?
I find analogies very good for explaining concepts (to make the details easier to understand), but absolutely horrible for debates. Analogies generally over simplify issues, and hackers are particularly bad at arguing the analogy to an absurd extent instead of arguing the main premise behind it. It happens here all the time.
RegEx··on Please Stop Attacking MIT's Network
Java?
RegEx··on Aaron Swartz, Asking For Help, 119 Days Ago
I'm sorry, but I don't think you're replying to what I'm asking. I was looking for information from back then that sheds light on the severity of Aaron's situation, not just comments of the doubters. However, the stress of this thread is getting to me, and I need to back out. There's so much anger, sadness, and confusion concentrated in one place. I think it's best for me to step away for a couple of weeks.
RegEx··on Aaron Swartz, Asking For Help, 119 Days Ago
That comment was in reply to

> If the feds get their way you'll know exactly where to find him for the next 35 years.

I'm asking if people actually knew facts, not some tin-foil hat speculation (even if the tin-foil hat was right on the money).

RegEx··on Aaron Swartz, Asking For Help, 119 Days Ago
You're too emotional to ration with. I hope you stop displacing anger in every which way.
RegEx··on Aaron Swartz, Asking For Help, 119 Days Ago
What information? I'd legitimately appreciate links/sources of the situation's severity other than hindsight.
RegEx··on Aaron Swartz, Asking For Help, 119 Days Ago
> when you have no damn idea what the consequences are

Because this is unprecedented. People are still shocked at the excessive nature of the charges. No one expected it. To expect everything to be so severe would be paranoia.

RegEx··on Aaron Swartz, Asking For Help, 119 Days Ago
He made a judgement based on the information provided to him. It wasn't conveyed in a nice tone, sure, and that's unfortunate. I'd prefer if everyone was nice, but sometimes things just come out really, really nasty.

The usual consequence is to take your downvotes/criticisms and move on...not to become the center of some impromptu witch hunt.

RegEx··on Aaron Swartz, Asking For Help, 119 Days Ago
And you sound like a drama queen. The severity was not conveyed. According to HN users in this thread, it couldn't be for whatever reasons. We didn't know the extent of the trouble. Sure, he was rude, and I don't like it when people are rude, but some people in this thread are making it sound like he pulled the fucking trigger. Give it a rest.
RegEx··on Why I Won’t Be Using BetaPunch for User Testing
Tech has a small but noticeable celebrity culture to it. Danielle has a decent number of twitter followers and has had articles at the top of HN at least a few times. I don't find it too surprising that she has some fans willing to defend her with a "You don't know who you're messing with!" message to the BetaPunch people.
RegEx··on Advanced Vim Registers
I visually highlight and call pbcopy on OS X and xclip on ubuntu. It has the annoying side effect of deleting the text, but a simple u fixes that.

So, highlight in visual mode, go into command mode, and !pbcopy

RegEx··on Github is exposing public SSH keys
Launchpad accounts have ssh keys as part of public user profiles. Should be ok :)

Ex: https://launchpad.net/~brad-figg

RegEx··on Regexper: Beautiful regexp visualizations
It wasn't grey when I commented. I wouldn't take the time to get on a soapbox if the community had already buried it.
RegEx··on How My Start-Up Failed
I see those on quite a few trucks in East Texas. I can't believe people actually do that.
← PreviousPage 3 of 14Next →