Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

5
votes
1answer
95 views

Improve my little syntactic hack

Current best practice for using a lock_guard looks like this: // introduce scope to take the lock { lock_guard lock(sync); // sync is an accessible mutex object do_protected_stuff(); ...
6
votes
3answers
175 views

Best Ruby one-liner to generate a random alphanumeric string

This is a little arbitrary, but I'm curious what people might come up with. I want to generate a random alphanumeric string in ruby, as succinctly and efficiently as possible. ([nil]*8).map { ...
3
votes
1answer
122 views

JavaScript/PHP file uploader

I'm writing a JavaScript/PHP file uploader and I want to start this project off on the right track. I've started with this, a JavaScript Uploader object which will handle Ajax calls, display progress, ...
2
votes
2answers
209 views

My language, gecho

I wrote a language in C, dubbed gecho. The code can be found at http://github.com/tekknolagi/gecho/tree/testing I'm writing this for a purely educational reason (not for school at all) and I just ...
6
votes
6answers
261 views

Explicit Function Notation in Perl

I've gone back and forth a few times recently on my Perl coding style when it comes to module subroutines. If you have an object and you want to call the method bar with no arguments, then you can ...