Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tomlu
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
121.
▲
by
tomlu
13y ago
The author neglected to mention my favourite trap in Sen's fortress. There's an elevator you can get on that if you don't get off in time will bring you headfirst into a bunch of spikes. The genius part is the elevator floor
122.
▲
by
tomlu
13y ago
I dunno - I have about 15 years C++ experience, and if anything the better I have become at the language the less I like it... Having said that any language with a GC is unlikely to supplant C++. I would have thought that anything that coul
123.
▲
by
tomlu
13y ago
I use Colemak and vim. I used to rebind the keys but it's not worth it since you have to redo it for every emulator (and some of them don't support remapping). Since vim is mnemonic rather than ergonomic everything works great i
124.
▲
by
tomlu
13y ago
I did a bunch of work for XVim a while back. The owner is really friendly and very welcoming of contributions, so if anyone wants to pitch in you'll find it worthwhile. When I first looked at XVim the code was a little disorganised. It
125.
▲
by
tomlu
13y ago
True, but that has more to do with wanting to place the allocators on a context object. Even using custom allocators I don't think there's a way to supply a non-global context to the STL.
126.
▲
by
tomlu
13y ago
Really solid advice throughout. If you're using non-POD C++ and want to allow custom allocators (wise), I would keep it simple and use placement new instead of messing about with per-class operator new. If you must you can wrap it up i
127.
▲
by
tomlu
13y ago
Lua is elegant, small and fast, especially when you're using LuaJIT. It's the language I reach for first when I need to embed a scripting language in a system (perhaps to replace configuration files). Its only real drawback is a l
128.
▲
by
tomlu
13y ago
You shouldn't downvote a post because you don't agree with it anyway. You should downvote it because it doesn't add anything to the discussion or is otherwise vapid. It follows that there should never be a reason to downvote
129.
▲
by
tomlu
13y ago
For what it's worth I'll give a second vote to PyCharm. Great out-of-the-box go to definition, find all references and refactoring support.
130.
▲
by
tomlu
13y ago
All well and good, but keep in mind there's a fair bit of boilerplate to this way of composing classes and you don't get any type checking when you use dynamic forwarding.
131.
▲
by
tomlu
13y ago
They do ask those sorts of questions still, but I wouldn't call them brainteasers.
132.
▲
by
tomlu
13y ago
At first glance it seems like an amazing language. Very few basic building blocks, and yet it manages to capture a good deal of the advanced features of modern languages. Nice, parsimonious syntax too. I especially like the Rubyesque way bl
133.
▲
by
tomlu
13y ago
It's all what you're used to reading. If all you've been staring at are various curly-brace languages then of course you're going to prefer that. I was primarily a curly-brace developer for 10 years, but changed my mind
134.
▲
by
tomlu
13y ago
Unfortunately I'm not involved anymore, it was hard to keep up motivation since I started using the excellent AppCode. Although I do think XVim is a lot better than IDEAVim.
135.
▲
by
tomlu
13y ago
This man is correct - there is no plugin API and everything is reverse-engineered. XVim is built on an internal layer that doesn't know about Xcode, then all operations are funnelled through an interface that does know about Xcode specific
136.
▲
by
tomlu
13y ago
I don't know about class based views - each time I've tried to use them they've started out nice and convenient then slowly turned into an over-engineered mess as my requirements got more complicated. I think I prefer the control and simpli
137.
▲
by
tomlu
13y ago
Maybe if you're working on your own. If you're in a team (where each member has her own local DB) and multiple environments for testing, staging, preproduction etc. I'd say you're going to want some sort of scripted migration.
138.
▲
by
tomlu
14y ago
Hi, in case you're still interested I've had a chance to try it a bit more. Performance is much, much better, especially on a retina display. And they've even fixed the dot command with autocomplete. It's still not the greatest vim emulator
139.
▲
by
tomlu
14y ago
They just released an update a week ago that was supposed to have fixed the problem. It does seem better, but I haven't used it for long enough to properly verify that.
140.
▲
by
tomlu
14y ago
Your hamstrings are too short and pull on your lower back. To fix short muscles stretching is great. If your muscles aren't already short then stretching isn't very useful. (Post-workout stretching can help prevent your muscles from ever b
141.
▲
by
tomlu
14y ago
Short answer: Yes, you can use cookies, but not all systems support that (eg mobile apps). Here's what I do for that case: Create a /sessions endpoint and POST to that when you login. The session resource will include a token of some sort i
142.
▲
by
tomlu
14y ago
Because the particular style of OO you're describing has turned out not to work very well. It turns out that often you can't effectively encapsulate state in a class such that no one else but the class itself needs to know about that state.
143.
▲
by
tomlu
14y ago
It seems like this problem would be elegantly solved by starting a thread, green thread or coroutine (depending on language) for each task and calling the API functions synchronously from within that. I'm not sure what support JS has for th
144.
▲
by
tomlu
14y ago
I can only imagine BrainTree was different in 2008. I just integrated BrainTree into a two-platform system. It took the team a week, most of which was integrating with our order system and doing the UI. The API itself is very pleasant in my
145.
▲
by
tomlu
14y ago
What are the benefits though? I wouldn't say using Lua is a "primary factor", but Lua is: * Simple yet powerful * Supports multiple paradigms * Fairly concise * DSL friendly * Very robust * Small footprint * About as quick as they come in t
146.
▲
by
tomlu
14y ago
Curious - what's the point of retaining the selection after indenting?
147.
▲
by
tomlu
14y ago
As a rule of thumb you are right, but in the particular case of s, S I think it's OK. They are pretty darn redundant.
148.
▲
by
tomlu
14y ago
IntelliJ is pretty awesome, and works great for Android development too in case anyone hasn't tried it yet. It's a pity its vim emulator (IdeaVim) is pretty bad compared to the other Java IDEs.
149.
▲
by
tomlu
14y ago
The code is quite nice indeed, and oh so small for a vim emulator - I've contributed a significant chunk to XVim which is positively massive in comparison, so I have some frame of reference. The problem is that if you want all the fixes y
150.
▲
by
tomlu
14y ago
I don't see what is wrong with that justification. Unless you are saying that he/she is incorrect I don't see why you wouldn't opt for that productivity increase, as long as (salary * perf_increase) > total cost. If you are saying the
More ›