Better HN
topnewbestaskshowjobs
Log inSign up

alixander

138 karma · joined Apr 9, 2014 (12y ago) · 53 submissions

Submissions

comment 5y ago · link · parent

And wider hips

comment 6y ago · link · parent

The scenarios you’ve posed doesn’t make candidate 2 any less replaceable. Maybe candidate 1 is needed for whatever advanced AI the dating app uses, but there’s many non-foreign options for the function candidate 2 is performing at ImportantCorp.

comment 8y ago · link · parent

That point hasn’t been hit yet. Discouraging people from learning programming because you anticipate that point to come soon is unfortunate coming from a manager of programmers. Regardless of job opportunities, which I disagree with but is beside the point, being able to program increasingly allows people to create value and bring ideas to existence.

comment 9y ago · link · parent

If your only reason to hate a language is that it's making improvements (that you can't/won't keep up with), it would seem that language is doing something right

5.

Ask HN: If you had a free month to learn something new, what would it be?

2 points · by alixander · 9y ago · 1 comment

comment 11y ago · link · parent

Normally I wouldn't be picky about a web design flaw, but seeing as this is a project aimed at helping web design: http://imgur.com/qqwqiA8

comment 11y ago · link · parent

Passion implies things other than working longer than everyone else. For example, people passionate about programming often are better at debugging in those 8 hours than someone who wants to just get out.

Also, I don't understand the use of images here. Your first one is basically the equivalent of a cliche speech starting with, "The Marriam-Webster dictionary defines passion as..."

comment 11y ago · link · parent

Yeah this alone is enough for me to refuse to use something.

comment 11y ago · link · parent

"To me a phone is a poor man's computer that you have to use when you are on the road, but if you are in front of your desk, there is no reason you should be forced to use an inferior input interface to interact with your accounts when you have a keyboard and a trackpad in front of you."

Well said

10.

Ask HN: Has anyone tried to get all the functions of a phone onto their laptop?

1 points · by alixander · 11y ago · 3 comments

comment 11y ago · link · parent

These are some amazing visualizations.

12.

Vim is a Game(alexanderw.xyz ↗)

18 points · by alixander · 11y ago · 1 comment

13.

Succinctness vs. Readability(alexanderw.xyz ↗)

2 points · by alixander · 11y ago · discuss

comment 11y ago · link · parent

You think you misunderstood; I didn't try it and not like it, I just never tried it. I'm most productive on Vim/Terminal right now. From a quick google search, it doesn't seem like I can use all the Vim commands in an IDE (though I see some articles on using Vim AS an IDE). Have you personally tried both and preferred an IDE over Vim/Terminal?

comment 11y ago · link · parent

Ah, I'll have to fix that.

comment 11y ago · link · parent

Negative or not, I really appreciate the constructive criticism.

In response to your comments on watch: Indeed, right now it only identifies AST nodes of type "asgn". I imagine other mutations like append and others have different types too, I just haven't gotten around to implementing that. My bad for posting this in a pre-release state.

"Even if you modified the code to support this, you wouldn't be able to control access everywhere that piece of data went." I can see two potential solutions: 1. Identifying nodes of type "call" that have a watched variable as an arg, and then adding an if statement to check if it has changed and printing it only if it has. 2. Analyzing AST of ThirdPartyLib.do_stuff(arg1), identify statements that mutate arg1, and logging a change after the call in the original program if arg1 is changed. This way even if the value isn't changed, it's still logged because it was mutated (or at least attempted to), which is probably more desirable than solution 1.

In response to Mock: Aside from Mock, people have told me they prefer the logging library, pdb, IDEs, etc. for debugging. PyScribe isn't meant to be a separate method of debugging, I intended it to supplement my preferred way, which is just using print statements. Might be it's not the most powerful, but its purpose isn't to compete with other methods of debugging.

comment 11y ago · link · parent

Ah, you're right. Totally forgot about that. Thanks for pointing it out!

comment 11y ago · link · parent

I wish I could give you pros and cons, but I've never touched pdb or used a python IDE before myself. In my 3 years of programming, I've only used print statements to debug (for Python programs).

I'll be adding more documentation soon, but perhaps this is a more informative use case: Too often in my Python programs, I'll do something like, print("x is: " + str(x)). That's already too much to keep typing, but sometimes I'll want to know the type, or maybe it's a dictionary and printing without separators makes them blend together (say, in a for loop). In that case, I'll do: print("---------\nx is: " + str(x) + "\n")

The library allows this to be simplified to "ps.d(x)". It's rather opinionated towards my own workflow and what I was too lazy to keep doing. Perhaps I'll try pdb one day and find my library useless.

comment 11y ago · link · parent

I'm not exactly sure if it doesn't work on Python3, I had only tested it on 2.7 so it mightt (there aren't any external dependencies). I'll probably test it on Python3 and safely include that in the supported versions soon.

comment 11y ago · link · parent

Excellent suggestions, will be adding format configurations next!

21.

Show HN: PyScribe – A Python library to make print debugging more efficient(github.com ↗)

53 points · by alixander · 11y ago · 18 comments

comment 11y ago · link · parent

I'm working on my first open source project: a Python library to make debugging with print statements easier and more efficient. http://www.github.com/alixander/pyscribe

comment 11y ago · link · parent

https://github.com/libuv/libuv

Maybe not my all-time favorite but a recent one that I liked!

24.

Ask HN: What's your favorite GitHub project mascot?

4 points · by alixander · 11y ago · 3 comments

25.

Timsort(en.wikipedia.org ↗)

8 points · by alixander · 12y ago · discuss

26.

CodeChip – A freelance style market for code modification and help(codechip.co ↗)

5 points · by alixander · 12y ago · discuss

comment 12y ago · link · parent

Ah okay. Sorry about that, wasn't aware of the posting rules
12