archived stringclasses 2 values | author stringlengths 3 20 | author_fullname stringlengths 4 12 ⌀ | body stringlengths 0 22.5k | comment_type stringclasses 1 value | controversiality stringclasses 2 values | created_utc stringlengths 10 10 | edited stringlengths 4 12 | gilded stringclasses 7 values | id stringlengths 1 7 | link_id stringlengths 7 10 | locked stringclasses 2 values | name stringlengths 4 10 ⌀ | parent_id stringlengths 5 10 | permalink stringlengths 41 91 ⌀ | retrieved_on stringlengths 10 10 ⌀ | score stringlengths 1 4 | subreddit_id stringclasses 1 value | subreddit_name_prefixed stringclasses 1 value | subreddit_type stringclasses 1 value | total_awards_received stringclasses 19 values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
True | phunphun | null | I would if McCann was the one running GNOME. Fortunately, he's only one developer. | null | 0 | 1317116212 | False | 0 | c2mwmn3 | t3_krv1k | null | t1_c2mwmn3 | t1_c2mwlrq | null | 1427652609 | 1 | t5_2fwo | null | null | null |
True | flukus | null | One of the exercise I do when I'm doing UX work is to put myself in the position of the user manual writer.
English is incredibly bad at creating nested branches and if you can't express what happens in simple English then it's probably a confusing interface. | null | 0 | 1317116268 | False | 0 | c2mwmq8 | t3_krv1k | null | t1_c2mwmq8 | t1_c2mpz0g | null | 1427652610 | 2 | t5_2fwo | null | null | null |
True | Philipp | null | As a programmor, I approve. | null | 0 | 1317116318 | False | 0 | c2mwmtj | t3_krzdp | null | t1_c2mwmtj | t1_c2mqjpi | null | 1427652611 | 6 | t5_2fwo | null | null | null |
True | tilio | null | i've personally tried out and talked with other teams that have tried a variety of things. i have found that simple things like changing a bound (< to <=) or adding/removing a return from the function do work.
questions like a recursive function that could be reduced to O(n) but is coded worse than O(n^n), or an associative array that incorrectly uses the array values when it should be using the keys are usually counter-productive. unless you're working with candidates from the big5 engineering schools, most kids aren't bright enough to notice these things even at an hour per question. | null | 0 | 1317116436 | False | 0 | c2mwn0j | t3_ks1qu | null | t1_c2mwn0j | t1_c2mukzz | null | 1427652613 | 6 | t5_2fwo | null | null | null |
True | flukus | null | Do you understand the difference between UX and "design a pretty UI"? | null | 0 | 1317116529 | False | 0 | c2mwn5u | t3_krv1k | null | t1_c2mwn5u | t1_c2mrnlj | null | 1427652614 | 1 | t5_2fwo | null | null | null |
True | docoptix | null | The skill to abstract the problem and map the abstract solution (which you know from somewhere before) divides your kind from the rest of humanity and from most programmers with no theoretical background. | null | 0 | 1317116740 | False | 0 | c2mwnja | t3_ks1qu | null | t1_c2mwnja | t1_c2mr2kq | null | 1427652619 | 2 | t5_2fwo | null | null | null |
True | gasche | null | With the restriction that all intermediate words must be of the same size, the problem looks trivial: the distant between two words seems to be the number of positions where the two words differ -- Hamming distance, as already mentioned.
If one lifts that restriction, by allowing to delete and insert letters, this becomes a classical dynamic programming algorithm, solved in time O(Na*Nb), Na,Nb being the length of the two words; the idea is to compute a matrix `cost int[Na][Nb]`, with `cost[i][j]` representing the cost of going from the prefix of the first word of length `i` to the prefix of the second word of length `j`; it can be computed from `cost[i][j-1]`, `cost[i-1][j]` and `cost[i-1][j-1]`. | null | 0 | 1317116825 | True | 0 | c2mwnoc | t3_ksqba | null | t1_c2mwnoc | t3_ksqba | null | 1427652621 | -1 | t5_2fwo | null | null | null |
True | BobTheSCV | null | Without this design pattern, you'd need to write different eat-methods for each food product in the human (if you have, or can fix multiple dispatch; otherwise one big, nasty, RTTI-based function). That goes against OOP design principles, as if you add new food items, you'd need to re-write Consumer.
You could write a food class that you can prompt for nutrient information, but that would spill this information for everyone to see. That's bad design, and not how eating works. When you eat something, it provides you with nutrients, and you don't know what. That's why you can't walk through the woods calling isPoisonous() on every mushroom you see. | null | 0 | 1317117016 | False | 0 | c2mwnzq | t3_kr0ir | null | t1_c2mwnzq | t1_c2mo2q8 | null | 1427652625 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | I can see more videos are coming. Any chance for RSS for this tutorial? | null | 0 | 1317117106 | False | 0 | c2mwo4n | t3_krzd8 | null | t1_c2mwo4n | t1_c2mtr1d | null | 1427652627 | 2 | t5_2fwo | null | null | null |
True | anacrolix | null | This article is garbage. Does anyone have any decent links on this? | null | 0 | 1317117229 | False | 0 | c2mwobp | t3_krklz | null | t1_c2mwobp | t3_krklz | null | 1427652630 | 0 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1317117856 | False | 0 | c2mwpdu | t3_ksqba | null | t1_c2mwpdu | t3_ksqba | null | 1427652643 | 1 | t5_2fwo | null | null | null |
True | killerstorm | null | > Managers - Every time I see one of these, I cringe. People will usually tell me what it does, long before they can tell me what it is. Is it a registry? Fine call it a registry. Is it a history or a log? Call it that. Is it a factory? Call it that.
Ok, then how do you call object which oversees other objects, manages their lifecycle, redirects front-end request to relevant objects, creating them as necessary etc.? I would call it a manager or something like that.
The official terminology is [facade pattern](http://en.wikipedia.org/wiki/Facade_pattern).
Yes, it is possible to write just `History` instead of `HistoryManager`, but `-Manager` part communicates that it is facade-like thing which probably includes high-level API, so it provides a good cue.
Another related pattern is [Mediat**or**](http://en.wikipedia.org/wiki/Mediator_pattern). Note how in example mediator does not just reroute requests, but orchestrates the whole thing via rather high level `book()`, `view()` and `search()` functions which implement a piece of logic.
I'd say that a hybrid between mediator and facade (i.e. mediator which is also a facade for external objects) would be _Manager_ or _Controller_. Some OOP theorists would say it isn't a good design, but it is rather handy on practice: people who read the code can start with Manager/Controller to get birds-eye view on how thing works, and one who writes the code can start with Manager and build other objects around it.
> Controllers - Only good controller object I've made in the last 20 years was an interface to a BallastVoltageController that represented a real world object. The fact that every single MVC implementation in the world has had a different role for Controller ought to tell us something about how well that idea fit.
Uh, but why people keep using this 'confusing' name? Because they are all idiots?
Yes, it is not a well defined role, but such a general name is _supposed_ to get all the mess so view and model can be cleaner. (BTW model and view don't have well defined roles either -- for example, some people have business logic in model and other people do not. View can be active and passive, and so on.)
And if you look at [design pattern list](http://en.wikipedia.org/wiki/Design_pattern_(computer_science\)) you can find:
* Build**er**
* Adapt**er**/Wrapp**er**
* Decorat**or**
* Interpret**er**
* Iterat**or**
* Mediat**or**
* Observ**er**
* Visit**or**
* React**or**
Obviously those people who have named these patterns are all idiots... | null | 0 | 1317118046 | False | 0 | c2mwpov | t3_krzdp | null | t1_c2mwpov | t3_krzdp | null | 1427652648 | 2 | t5_2fwo | null | null | null |
True | [deleted] | null | You give .NET developers a bad name. | null | 0 | 1317118144 | False | 0 | c2mwpv6 | t3_kgl4f | null | t1_c2mwpv6 | t1_c2mnwi3 | null | 1427652651 | 0 | t5_2fwo | null | null | null |
True | killerstorm | null | > Also, I think the name "FooManager" tells you nothing about the object other than "it has something to do with Foo".
It is all it needs to say: when you need to do something about Foo you should look at FooManager first. Class names are not substitute for documentation.
FooManager might be a facade for working with Foo. | null | 0 | 1317118629 | False | 0 | c2mwqm9 | t3_krzdp | null | t1_c2mwqm9 | t1_c2mrrfi | null | 1427652660 | 2 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1317118803 | False | 0 | c2mwqvo | t3_krv1k | null | t1_c2mwqvo | t1_c2mwie2 | null | 1427652664 | 1 | t5_2fwo | null | null | null |
True | Ralith | null | Please. Everyone's using libstone these days. | null | 0 | 1317118832 | False | 0 | c2mwqxf | t3_ks1qu | null | t1_c2mwqxf | t1_c2mvimg | null | 1427652664 | 10 | t5_2fwo | null | null | null |
True | kayghar | null | This is a very conspicuous case of "shoe business needs to be run by shoe people, not MBAs." I'm sorry you were put in that position, Rob, and I blame the manager for a preference to "sell" (or his interpretation of making a product that sells well) rather than striving for perfection. I've been there before, albeit in a different context. | null | 0 | 1317119149 | False | 0 | c2mwrfy | t3_krv1k | null | t1_c2mwrfy | t3_krv1k | null | 1427652671 | 1 | t5_2fwo | null | null | null |
True | Brillegeit | null | It's a quote from Pulp Fiction
http://www.imdb.com/character/ch0001787/quotes | null | 0 | 1317119318 | False | 0 | c2mwrqq | t3_krklz | null | t1_c2mwrqq | t1_c2mtdwz | null | 1427652675 | 1 | t5_2fwo | null | null | null |
True | joaomc | null | I guess it's more of a proof of concept implementation right now. | null | 0 | 1317119347 | False | 0 | c2mwrsm | t3_krzdn | null | t1_c2mwrsm | t1_c2mv5u7 | null | 1427652676 | 2 | t5_2fwo | null | null | null |
True | rawlyn | null | Also HotBot, and Mamma. | null | 0 | 1317119595 | False | 0 | c2mws78 | t3_kst87 | null | t1_c2mws78 | t3_kst87 | null | 1427652681 | 1 | t5_2fwo | null | null | null |
True | brokenfrog | null | Affiliate spam, nothing to see here. | null | 0 | 1317119669 | False | 0 | c2mwsbm | t3_ksta6 | null | t1_c2mwsbm | t3_ksta6 | null | 1427652682 | 0 | t5_2fwo | null | null | null |
True | waybackhome | null | true, true! Altavista was my favourite. | null | 0 | 1317119670 | False | 0 | c2mwsbq | t3_kst87 | null | t1_c2mwsbq | t1_c2mws78 | null | 1427652682 | 1 | t5_2fwo | null | null | null |
True | Ralith | null | Common Lisp had enough foresight to completely isolate the concept of 'character string' from 'byte array', allowing modern implementations to handle a wide array of different encodings with ease--because nothing is allowed to make any assumptions about encoding. If you want to convert between binary and character data, you have to explicitly specify what encoding to use. Sure, there can be defaults for convenience in many cases, but it's never ambiguous. | null | 0 | 1317119696 | False | 0 | c2mwsdl | t3_ksqu1 | null | t1_c2mwsdl | t1_c2mwcg7 | null | 1427652683 | 1 | t5_2fwo | null | null | null |
True | aintso | null | Still confused by this reddiquette thing? Don't be. I hereby pronounce you a free redditor. Go forth and don't be a dick. | null | 0 | 1317119726 | False | 0 | c2mwsfe | t3_krv1k | null | t1_c2mwsfe | t1_c2msn59 | null | 1427652684 | 1 | t5_2fwo | null | null | null |
True | karaono | null | Just wondering, shouldn't the size header consist of width * height * 24, since there are 24 bits per pixel? (It is multiplied by 3 instead).
(1500 * 1000 * 24)/(8 * 1024 * 1024.0) gives 4.29MB which is basically the generated image size.
Also, what's the deal with adding 26 to the size at the very end? | null | 0 | 1317119887 | True | 0 | c2mwspk | t3_krpem | null | t1_c2mwspk | t3_krpem | null | 1427652687 | 1 | t5_2fwo | null | null | null |
True | philwelch | null | That's half the mentality behind a lot of technical interviews, including the infamous Microsoft puzzles of the 90's. Turns out it's illegal to actually use IQ tests in the hiring process, but if you ask people what seems like a bunch of IQ test questions and subjectively judge how they do, you get some of the benefits while still technically obeying the law! | null | 0 | 1317119959 | False | 0 | c2mwsul | t3_ks1qu | null | t1_c2mwsul | t1_c2mst2z | null | 1427652689 | 4 | t5_2fwo | null | null | null |
True | Ralith | null | Compared to CLOS, you're certainly stuck with pretty poor objects. | null | 0 | 1317119970 | False | 0 | c2mwsvc | t3_kroia | null | t1_c2mwsvc | t1_c2mu0xj | null | 1427652689 | 3 | t5_2fwo | null | null | null |
True | mwillsey | null | IDLE gave another >>> prompt so I assumed it was done, but the file was still empty. | null | 0 | 1317120132 | False | 0 | c2mwt5v | t3_krpem | null | t1_c2mwt5v | t1_c2mvh44 | null | 1427652693 | 1 | t5_2fwo | null | null | null |
True | cockmongler | null | And what exactly does it do? In what way does the management manifest itself? | null | 0 | 1317120174 | False | 0 | c2mwt89 | t3_krzdp | null | t1_c2mwt89 | t1_c2mvt4y | null | 1427652694 | 4 | t5_2fwo | null | null | null |
True | knipil | null | > sometimes you get a virus
> sometimes you get a keylogger that steals your identity
Web apps have a large number of similar vulnerabilities. Identify theft using techniques like CSRF and XSS are rather well documented, and are still being found even in major apps. Someone even made a worm that spread on myspace a few years back, entirely in javascript.
> you have to have the right CPU architecture
> you have to have the right drivers
> you have to have the right Operating System
There's nothing specific about web browsers that says that they're the only possible environment with those properties. Say what you will about java, but the same advantages apply.
> you have to have enough RAM
> you have to have enough CPU horsepower
Isn't this even more relevant for web apps than for native apps as soon as you try to do something non-trivial. Sure, gmail will work on any computer, but so will all native e-mail clients. Try doing 3d gaming, and I'll bet you that a version written in C with OpenGL or DirectX will require less from the computer than the corresponding Javascript and WebGL version.
> you have to have the data you want to process locally, or be able to download all of it in reasonable time
Again, there's nothing unique about the web architecture that makes it more feasible to store information online than it is for any other system. You can easily achieve all the advantages of online data storage from a native app.
> the developer has to test all of the variations of the above to make sure it will work, which delays releases and drives up the cost
Yeah, because testing things in 8 different web browsers is free. Managing the complexity of three different versions of Windows is obviously ludicrous in comparison?
> you have to keep it updated
This is possibly your only valid point, but automatic update systems are changing the truth in that as well. Most major apps does that at this point. | null | 0 | 1317120254 | False | 0 | c2mwtdr | t3_krzdn | null | t1_c2mwtdr | t1_c2mtj5f | null | 1427652697 | 1 | t5_2fwo | null | null | null |
True | giltanis | null | Isn't this the same thing they already did with 3.5? That didn't seem to cause too much weirdness. | null | 0 | 1317120450 | False | 0 | c2mwtqt | t3_ksoff | null | t1_c2mwtqt | t3_ksoff | null | 1427652702 | 1 | t5_2fwo | null | null | null |
True | oSand | null | oSand's Tenth Rule of Programming: any sufficiently concurrent program contains an ad hoc informally-specified bug-ridden, slow implementation of half of Erlang.
Although that is a cool idea. I'd never thought of doing anything like that with gevent. | null | 0 | 1317120574 | False | 0 | c2mwtyy | t3_ksrsz | null | t1_c2mwtyy | t3_ksrsz | null | 1427652705 | 3 | t5_2fwo | null | null | null |
True | maushu | null | Soon! SOON! **SOOOON!** Browser FPS/RTS games, anyone? | null | 0 | 1317120920 | False | 0 | c2mwuji | t3_ksdfr | null | t1_c2mwuji | t3_ksdfr | null | 1427652713 | -1 | t5_2fwo | null | null | null |
True | karaono | null | Link to the slides on scirbd: http://www.scribd.com/doc/66084519/Untitled?secret_password=2oclu2v4462nd615ih42#full | null | 0 | 1317121169 | False | 0 | c2mwuzo | t3_ksrsz | null | t1_c2mwuzo | t3_ksrsz | null | 1427652718 | 2 | t5_2fwo | null | null | null |
True | LargeDickington | null | Lets fork it anyway, its enough with this gnome 3 bullshit and "Oh lets suck Steve Jobs dick like a lolipop and try to do everything as Apple does it and users are and should be thought-deprived imbecils"
| null | 0 | 1317121252 | False | 0 | c2mwv3v | t3_krv1k | null | t1_c2mwv3v | t1_c2mwmn3 | null | 1427652719 | -3 | t5_2fwo | null | null | null |
True | qvae_train | null | *Woosh* | null | 0 | 1317121446 | False | 0 | c2mwvfr | t3_krv1k | null | t1_c2mwvfr | t1_c2mqdhh | null | 1427652724 | 2 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1317121477 | False | 0 | c2mwvhs | t3_kstwg | null | t1_c2mwvhs | t3_kstwg | null | 1427652724 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1317121757 | 1426697912 | 0 | c2mww0c | t3_krv1k | null | t1_c2mww0c | t1_c2mvqrv | null | 1427652731 | 3 | t5_2fwo | null | null | null |
True | LenHolgate | null | Yes, but, and there was the whole "red bits, green bits" malarky that time around... From a hosting point of view it DID make it slightly more complex than it needed to be... I just don't get why it's such a great idea to slip the .5 release out without bumping the reported version... | null | 0 | 1317122003 | False | 0 | c2mwwgl | t3_ksoff | null | t1_c2mwwgl | t1_c2mwtqt | null | 1427652737 | 1 | t5_2fwo | null | null | null |
True | jinglebells | null | Ctrl-F2 gets you to the menu, where you can navigate around with the arrow keys.
Ctrl-F8 gets you to the top right clock/icons area.
In dialog boxes other than ok/cancel you can press the buttons by pressing CMD + the first letter of the button.
If the F-keys don't work for you, you may need to fiddle with the "Make function keys work normally" setting in System Preferences, to stop having to use the Fn key as well.
It's also unusual for a menu item in OS X to not be assigned a hotkey combination as well. Remember, when the menu is open, you can press alt/cmd to see how the modifiers effect the menu items.
| null | 0 | 1317122024 | False | 0 | c2mwwid | t3_krv1k | null | t1_c2mwwid | t1_c2mwdcp | null | 1427652738 | 1 | t5_2fwo | null | null | null |
True | phunphun | null | Contrary to popular belief, it *isn't* GNOME's goal to copy Apple. | null | 0 | 1317122028 | False | 0 | c2mwwio | t3_krv1k | null | t1_c2mwwio | t1_c2mwv3v | null | 1427652738 | 3 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1317122121 | False | 0 | c2mwwoo | t3_ks1qu | null | t1_c2mwwoo | t1_c2mtczl | null | 1427652740 | 0 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1317122135 | False | 0 | c2mwwpe | t3_ksqba | null | t1_c2mwwpe | t1_c2mw6pq | null | 1427652740 | 0 | t5_2fwo | null | null | null |
True | comment-dwim | null | > Let’s take an example: think about String class in Java or C# you know it’s final/sealed, you cannot extend it to open its behavior.
C# has [extension methods](http://msdn.microsoft.com/en-us/library/bb383977.aspx).
> The second reason is about a language born simple, but release after release, version after version new constructs are stuffed in and finally it becomes bloated...
[Growing a language](http://video.google.com/videoplay?docid=-8860158196198824415) by Guy Steele.
> Look at Java history and pick your top worst updates.
Inner classes, reflection, nio, generics, static imports, a JIT, hardware-accelerated Java2D... all of which are useful in the real world. What are those "worst" updates that bloat the language? | null | 0 | 1317122260 | False | 0 | c2mwwxw | t3_kstip | null | t1_c2mwwxw | t3_kstip | null | 1427652742 | 6 | t5_2fwo | null | null | null |
True | Timmmmbob | null | That's just a problem because "manage" is quite a generic verb. That's no reason to ban the use of all all -er's. And in some contexts it might be fairly obvious what "managing" involves, e.g. ThreadManager. | null | 0 | 1317122419 | False | 0 | c2mwx7t | t3_krzdp | null | t1_c2mwx7t | t1_c2mwt89 | null | 1427652747 | 2 | t5_2fwo | null | null | null |
True | LargeDickington | null | Everything they do is an attempt to copy macosx.
From the "no apply" button to "no settings at all now" and "fuck you, user".
| null | 0 | 1317122456 | False | 0 | c2mwxab | t3_krv1k | null | t1_c2mwxab | t1_c2mwwio | null | 1427652748 | -3 | t5_2fwo | null | null | null |
True | datenwolf | null | X provides the method, not the policy. There is a X protocol extension "COMPOSITE", which allows for redirecting windows into off-screen buffers. Then you use any drawing method that supports X Drawables as image source to composite the desktop. AIGLX is a GLX extension to transfer X Drawables to OpenGL textures; I will never understand the lack of a feature like WGL_ARB_render_texture that allows to use a drawable as texture, directly, instead of copying. | null | 0 | 1317122481 | False | 0 | c2mwxc2 | t3_krzdn | null | t1_c2mwxc2 | t1_c2mqj4t | null | 1427652748 | 2 | t5_2fwo | null | null | null |
True | necroforest | null | /r/politics is that way -> | null | 0 | 1317122845 | False | 0 | c2mwy0v | t3_ks1qu | null | t1_c2mwy0v | t1_c2muago | null | 1427652757 | -3 | t5_2fwo | null | null | null |
True | otmenych | null | Don't worry, it will be fixed sonn, in win8 search won't be able to search control panel elements. | null | 0 | 1317122965 | False | 0 | c2mwy9u | t3_krv1k | null | t1_c2mwy9u | t1_c2muw9e | null | 1427652760 | -1 | t5_2fwo | null | null | null |
True | luckystarr | null | What happens to the application when you Ctrl-F5? | null | 0 | 1317123500 | False | 0 | c2mwzcs | t3_krzdn | null | t1_c2mwzcs | t3_krzdn | null | 1427652777 | 1 | t5_2fwo | null | null | null |
True | DeepDuh | null | Ctrl-F2 / F8 is exactly what I described right? I don't need this, trackpad is faster.
The dialog box trick sounds good - tried it right away, didn't work. What I tried: cmd-shift-s (save as), cmd-n for new folder - didn't do anything. | null | 0 | 1317123568 | False | 0 | c2mwzhx | t3_krv1k | null | t1_c2mwzhx | t1_c2mwwid | null | 1427652777 | 2 | t5_2fwo | null | null | null |
True | maheart | null | Great read, I've always wondered this myself but never bothered to look it up on Wikipedia (I often think of these things when I have no Internet access :)
Thanks for sharing! | null | 0 | 1317123839 | False | 0 | c2mx00b | t3_kssyt | null | t1_c2mx00b | t3_kssyt | null | 1427652784 | 1 | t5_2fwo | null | null | null |
True | boobsbr | null | thank the FSM I only work with servers and backend stuff. | null | 0 | 1317123924 | False | 0 | c2mx06e | t3_krv1k | null | t1_c2mx06e | t3_krv1k | null | 1427652785 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1317123978 | False | 0 | c2mx0b2 | t3_ks1qu | null | t1_c2mx0b2 | t1_c2mumer | null | 1427652788 | 0 | t5_2fwo | null | null | null |
True | bonzinip | null | You mean ThreadPool? | null | 0 | 1317123990 | False | 0 | c2mx0c2 | t3_krzdp | null | t1_c2mx0c2 | t1_c2mwx7t | null | 1427652788 | 6 | t5_2fwo | null | null | null |
True | bonzinip | null | How does it manage them? Create them? Pool them? Allow iterating on them? FooBuilder (oops), FooPool, FooRegistry would all be better names than FooManager. | null | 0 | 1317124069 | False | 0 | c2mx0ik | t3_krzdp | null | t1_c2mx0ik | t1_c2mvxme | null | 1427652790 | 1 | t5_2fwo | null | null | null |
True | bonzinip | null | > It is all it needs to say: when you need to do something about Foo you should look at FooManager first.
Then you have a really horrible class design. | null | 0 | 1317124095 | False | 0 | c2mx0kw | t3_krzdp | null | t1_c2mx0kw | t1_c2mwqm9 | null | 1427652790 | -1 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1317124103 | False | 0 | c2mx0lm | t3_krv1k | null | t1_c2mx0lm | t1_c2mqdhh | null | 1427652791 | 1 | t5_2fwo | null | null | null |
True | frymaster | null | what I meant it, for me there's no point, not that it was pointless ;)
ie for me, if I want to run GIMP I just install it. But I bet there's other things I *can't* install that might be useful.
Possibly a bad example, being a KDE app, but I'd really like kregexpeditor on windows, for example.
edit: or for GUI editing of source files on my webserver | null | 0 | 1317124117 | False | 0 | c2mx0mv | t3_krzdn | null | t1_c2mx0mv | t1_c2mt18a | null | 1427652791 | 1 | t5_2fwo | null | null | null |
True | JavaLSU | null | No it doesn't. If I want Jim's phone number, I open the address book and type Jim.
Where is the confusion? | null | 0 | 1317124205 | False | 0 | c2mx0u9 | t3_krv1k | null | t1_c2mx0u9 | t1_c2mq7df | null | 1427652794 | 1 | t5_2fwo | null | null | null |
True | bonzinip | null | ... but [possible](http://en.wikipedia.org/wiki/Sketchpad). | null | 0 | 1317124264 | False | 0 | c2mx0ym | t3_krzdp | null | t1_c2mx0ym | t1_c2ms8dv | null | 1427652795 | 1 | t5_2fwo | null | null | null |
True | bonzinip | null | That part is confusing, you should replace LoadStream with RecordStream and LoadRecord with just Record. | null | 0 | 1317124337 | False | 0 | c2mx15a | t3_krzdp | null | t1_c2mx15a | t1_c2mrtxl | null | 1427652798 | 5 | t5_2fwo | null | null | null |
True | JavaLSU | null | Easy....if you own a mac, get 3rd party software (or just use Google contacts). If you don't...don't buy one.
| null | 0 | 1317124369 | False | 0 | c2mx17p | t3_krv1k | null | t1_c2mx17p | t1_c2mwie2 | null | 1427652799 | 1 | t5_2fwo | null | null | null |
True | A_for_Anonymous | null | Indeed, it is. The guy who invented Javascript knew Lisp and wanted to bring a lot of it while keeping a C-like syntax so people would not be stupid about the parens (which are still there in forms of M-Expressions and braces) and a simple object system. This is what went wrong:
- Management retards pushed him to release LiveScript mid-design, before they could try anything in the language. Not a single program of minimal complexity was tested before it was released and its flaws encumbered it forever.
- The type system is a mess that shows its immaturity.
- The object system was meant to have prototypal inheritance, which is a great idea, but either the creator of LiveScript or management retards heard that it has "weird objects" and wanted to stretch it to make it more similar to Java because Java sells and is a buzzword. As a result, it's a failure of a prototypal object system which sucks.
- Management retards thought it would be an awesome idea to put "Java" in the name because Java sells and is a buzzword. Therefore, people thought it was some sort of simplified Java and wrote terrible lumps of shit for it. (LiveScript was actually more powerful than Java in many aspects such as closures, dictionary and array syntax, etc.)
- Microsoft wanted to Embrace, Extend, Extinguish the web so they misimplemented it and fucked it up even more, making client-side web development into a living hell forever.
This is how it stands today:
- Microsoft gave up on trying to Embrace, Extend, Extinguish the web but their shitty browsers are still out there, hurting everyone, making the web suck.
- Mozilla is desperately trying to turn it into Python, but Microsoft won't follow.
- Google is desperately trying to make it more efficient.
- People are desperately trying to [Greenspun](http://en.wikipedia.org/wiki/Greenspun's_tenth_rule) more features into Javascript with formidable libraries such as Prototype.
- Javascript is still a mess, has a shitty type system, failed dictionaries, failed prototypal object system, failed syntax and failed standard library, developing for it sucks mightily.
This is what we can learn about this:
- Next time you want Lisp, do Lisp.
- Management retards are retards.
- Microsoft is evil.
- Designing a new programming language is very difficult. Even though all languages suck, yours sucks more. Resist the temptation and use an existing one that sucks as little as possible. | null | 0 | 1317124475 | True | 0 | c2mx1f8 | t3_kroia | null | t1_c2mx1f8 | t1_c2mu0xj | null | 1427652800 | 4 | t5_2fwo | null | null | null |
True | [deleted] | null | Ah, you're one of those in love with yes, no, cancel dialogs?
This usability wonder fucked my head up the other day: http://imgur.com/xAK74
Translation:
anmälda.txt can contain functionality that is not compatible with Text (tab delimited). Do you want to keep this format for the workbook?
* If you want to keep the format and leave out all incompatible functionality, click Yes.
* If you want to keep the functionality, click No. Then save the copy in the latest Excel format.
* If you want to see what functionality could be lost, click Help. | null | 0 | 1317124494 | False | 0 | c2mx1gk | t3_krv1k | null | t1_c2mx1gk | t1_c2mwxab | null | 1427652802 | 4 | t5_2fwo | null | null | null |
True | bonzinip | null | It may just be that Cocoa's controllers are a good design, but still have a bad name. For example you could call them "Behavior": an NSViewController defines the _behavior_ of a view. | null | 0 | 1317124506 | False | 0 | c2mx1hj | t3_krzdp | null | t1_c2mx1hj | t1_c2ms9el | null | 1427652802 | 2 | t5_2fwo | null | null | null |
True | Gotebe | null | So... "True" RAII beats "bolted-on RAII afterthought implemented by tying compiler/language and the library more than necessary". | null | 0 | 1317124549 | False | 0 | c2mx1kt | t3_krrz1 | null | t1_c2mx1kt | t1_c2mwlip | null | 1427652803 | 0 | t5_2fwo | null | null | null |
True | killerstorm | null | Yeah, it is much better when API is scattered over dozens of classes. Fuck facades. | null | 0 | 1317124718 | False | 0 | c2mx1zl | t3_krzdp | null | t1_c2mx1zl | t1_c2mx0kw | null | 1427652809 | 2 | t5_2fwo | null | null | null |
True | [deleted] | null | You have my full respects :) | null | 0 | 1317124756 | False | 0 | c2mx237 | t3_ksqba | null | t1_c2mx237 | t1_c2mwjzg | null | 1427652810 | 2 | t5_2fwo | null | null | null |
True | bonzinip | null | For the simulator I can think of "machine".
The linker and assembler, I believe, fall under the "commonly used terms" exception. But in a proper OO model the linker and assembler are surrounded by other objects that should follow the rule: references, relocations, opcodes, etc. | null | 0 | 1317124799 | False | 0 | c2mx278 | t3_krzdp | null | t1_c2mx278 | t1_c2mrj17 | null | 1427652811 | 1 | t5_2fwo | null | null | null |
True | sybrandy | null | QUnit is another TDD library for JavaScript developed by the same people who write jQuery. It works pretty well. I used it to test a REST service that I was working on. | null | 0 | 1317124805 | False | 0 | c2mx27s | t3_ks1zg | null | t1_c2mx27s | t3_ks1zg | null | 1427652812 | 1 | t5_2fwo | null | null | null |
True | VikingCoder | null | > You can easily achieve all the advantages of online data storage from a native app.
This is simply not true. I have a server with 1 GB of data on it. Loading the data on the server takes seconds. Producing the first rendering of that data takes about a second. Transferring that image over the internet takes about no time.
Transferring the 1 GB of data over the internet to your native app would take significantly longer.
Repeat this process, thousands of times per day. Welcome to the medical imaging world.
I repeat, **There are applications it will make sense to run remotely.** I can't believe people are taking their time to *argue this point* with me. | null | 0 | 1317124881 | False | 0 | c2mx2en | t3_krzdn | null | t1_c2mx2en | t1_c2mwtdr | null | 1427652814 | 0 | t5_2fwo | null | null | null |
True | UnoriginalGuy | null | I really dislike the design of this and frankly feel it will be abused and disabled almost immediately (see popup windows for example).
You will have adverts which lock the mouse into the page area (i.e. not allowing users to click the cross), and similar abuses.
Yes, they offer the escape key as a default exit strategy, but that only works when:
- Users know they're being mouse-locked
- A web-page advertises how to escape
Many users are still very ignorant of how the internet works. I can imagine a scenario where I get telephone calls because of this and that makes me unhappy. It is not an obvious feature or user friendly, and it assumes pre-knowledge which 90%+ of users won't have.
To be frank I think flash got this right. A click-able area of the page that can only lock the mouse when it has focus. So the following methods exit mouse lock:
- Escape
- Windows Key
- Alt-Tab
- CTRL-ALT-Delete
It also means that a background tab cannot gain mouse-lock and a user has to somewhat actively click it in order to get captured.
I wouldn't mind seeing a popup box with a "Do not show this again, for this site" checkbox which asks you if you want to give the site exclusive control of your mouse too, but I'm not sure the spec' can control how browsers implement their features.
TL;DR: Step into the end user's shoes for a second. This is nice for web-designers but horrible for the user experience. | null | 0 | 1317124976 | True | 0 | c2mx2mh | t3_ksdfr | null | t1_c2mx2mh | t3_ksdfr | null | 1427652817 | -4 | t5_2fwo | null | null | null |
True | goofygrin | null | I know you're trying to be funny but I could have easily said Ubuntu and Open Office and made the same point (in fact I think my point is more valid considering that open source products require an extra level of polish to gain mainstream acceptance. Think slack vs ubuntu (or gentoo for you masochists). No way slack or gentoo gets the same level of non-geek acceptance as Ubuntu (which I have successfully converted a few non geeks to). | null | 0 | 1317125027 | False | 0 | c2mx2qj | t3_krv1k | null | t1_c2mx2qj | t1_c2mvr17 | null | 1427652818 | 1 | t5_2fwo | null | null | null |
True | LargeDickington | null | You are using an ms office dialog to discuss gnu/linux?!
what in the fuck
edit: and thats not even yes, no cancel, its yes, no, help. where help means fuck me with a rake.
| null | 0 | 1317125043 | False | 0 | c2mx2ry | t3_krv1k | null | t1_c2mx2ry | t1_c2mx1gk | null | 1427652819 | -2 | t5_2fwo | null | null | null |
True | elblanco | null | Not undemocratic, but the i2 lawsuit (and settlement) was shady as all hell...and i2 isn't exactly a nice bunch of folks, but Palantir *did* end up qualifying to be sued under Federal Racketeering laws.
IMHO, they're a weird combination of smart and socially mindful, but naive, developers and evil as sin corporate management. | null | 0 | 1317125086 | False | 0 | c2mx2vm | t3_ks1qu | null | t1_c2mx2vm | t1_c2mu77r | null | 1427652820 | 5 | t5_2fwo | null | null | null |
True | bonzinip | null | The problem is not in having an AppInstaller, it is in designing your classes around it. The center of the design should be the installation _transaction_ and _steps_, not why you need them (i.e. to install something). The installer is just a user.
Similarly, you can call the abstract visitor class ImageVisitor, but the subclass can be simply a ColorSpaceTransformation. Just like in a compiler you could have a CopyPropagationPass rather than a CopyPropagator. | null | 0 | 1317125138 | False | 0 | c2mx2zp | t3_krzdp | null | t1_c2mx2zp | t1_c2mvpdl | null | 1427652822 | 1 | t5_2fwo | null | null | null |
True | Skute | null | The names
> LoadRecord / LoadStream
don't make sense (as you mentioned), personally I'd prefer them to be called RecordLoader / StreamLoader. Perhaps with a function called Load.
Then I fall foul of this guy's advice. Personally, I'm not going to place too much weight behind his words. | null | 0 | 1317125181 | False | 0 | c2mx33b | t3_krzdp | null | t1_c2mx33b | t1_c2mr7jg | null | 1427652823 | 2 | t5_2fwo | null | null | null |
True | rossisdead | null | Aren't Builder/Pool/Registry acceptable because we've used them forever and have come out with a pretty standard meaning for their use in code? Wouldn't the use of another word, like Manager, inevitable lead to the same thing? | null | 0 | 1317125188 | False | 0 | c2mx33z | t3_krzdp | null | t1_c2mx33z | t1_c2mx0ik | null | 1427652823 | 1 | t5_2fwo | null | null | null |
True | myztry | null | PDF is a great format. Shame about Acrobat (Reader in particular) though. Seriously never need an icon on the desktop let alone with every update. | null | 0 | 1317125208 | False | 0 | c2mx35p | t3_kssyt | null | t1_c2mx35p | t3_kssyt | null | 1427652824 | 72 | t5_2fwo | null | null | null |
True | deverdev | null | Since when is RAII "The One True Way" of resource handling?
I agree that some people might find it easier/more familiar, especially if they have C++ background where it is the only sane way.
As a smug note: Common Lisp `with-open` macro beats even `"True" RAII` hands down ;) | null | 0 | 1317125279 | False | 0 | c2mx3bm | t3_krrz1 | null | t1_c2mx3bm | t1_c2mx1kt | null | 1427652827 | 6 | t5_2fwo | null | null | null |
True | Rubenb | null | According to nmap you're using Windows and IIS as the webserver. | null | 0 | 1317125452 | False | 0 | c2mx3q5 | t3_kmevq | null | t1_c2mx3q5 | t1_c2miss4 | null | 1427652832 | 1 | t5_2fwo | null | null | null |
True | HansWurst121 | null | Thanks and you're welcome! | null | 0 | 1317125484 | False | 0 | c2mx3td | t3_ksqba | null | t1_c2mx3td | t1_c2mx237 | null | 1427652832 | 1 | t5_2fwo | null | null | null |
True | artard | null | From the comments section:
"The problem with algorithms is that they can get boring"
lol | null | 0 | 1317125567 | False | 0 | c2mx410 | t3_ks1qu | null | t1_c2mx410 | t3_ks1qu | null | 1427652835 | 1 | t5_2fwo | null | null | null |
True | lanzkron | null | TIL about [`current_exception`](http://www.stdthread.co.uk/doc/headers/exception_ptr/current_exception.html) now `catch(...)` actually has some use. | null | 0 | 1317125821 | False | 0 | c2mx4lo | t3_krzd8 | null | t1_c2mx4lo | t3_krzd8 | null | 1427652843 | 3 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1317125870 | False | 0 | c2mx4q2 | t3_ks1qu | null | t1_c2mx4q2 | t1_c2mrdnu | null | 1427652845 | 1 | t5_2fwo | null | null | null |
True | bonzinip | null | > Obviously those people who have named these patterns are all idiots...
You're naming patterns, not classes.
Examples:
* An adapter or decorator for a stream that compresses it: DeflateStream, not DeflateAdapter
* An interpreter for a virtual machine: Machine.
* An iterator is usually something that you do not create explicitly; you ask a collection to create it. Its name is only needed if your language has static typing and does not do type inference.
* A mediator: for your example, I suggest Library
* Visitor: the subclasses do not need to have "Visitor" in the name, for example you can call them PqrTransformation, or XyzAnalysis, etc.
* Builder is just a strategy pattern with another name. The example on Wikipedia sucks, but I would call their "HawaiianPizzaBuilder" an "HawaiianFlavor" for example. I never used a builder though.
* Observer does not name a class in the realization of the pattern, but rather an interface. The classes in the observer pattern are a registry and a bunch of events.
* Reactor is an awful name, but I'd just call the class that implements it an EventLoop. | null | 0 | 1317125958 | True | 0 | c2mx4yw | t3_krzdp | null | t1_c2mx4yw | t1_c2mwpov | null | 1427652848 | 1 | t5_2fwo | null | null | null |
True | ivosaurus | null | It would be nice if you could preview fonts other than the main one.
For instance, you could have the next and previous fonts of the current list selection displayed above and below the list.
Another (additional) way would be to add a grid function, from which you can choose multiple fonts which will then all be displayed in the main window. | null | 0 | 1317125959 | False | 0 | c2mx4yz | t3_ksnmp | null | t1_c2mx4yz | t3_ksnmp | null | 1427652848 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | I admit I found previous 3 instalments a bit introductory in nature (even though they were good), but *now* we are getting somewhere!
How likely is it that we'll get one about relaxed memory ordering with atomics? Do any compilers implement it right now? This is *the* thing that is not fully clear to me in the new C++ concurrency model.
| null | 0 | 1317125960 | False | 0 | c2mx4z3 | t3_krzd8 | null | t1_c2mx4z3 | t3_krzd8 | null | 1427652848 | 3 | t5_2fwo | null | null | null |
True | woo545 | null | > Wouldn't this lead to the only way to 'really' fix that is to put everything the class is and can do in the name?
.PullTrigger()
.Clip.New()
.IsSafetyOn()
.CockHammer()
.IsGunEmpty()
Umm what name would be suggested?? | null | 0 | 1317126258 | False | 0 | c2mx5q0 | t3_krzdp | null | t1_c2mx5q0 | t1_c2mv23k | null | 1427652858 | 1 | t5_2fwo | null | null | null |
True | bonzinip | null | Ok, let me correct myself: either you have a really horrible class design, or a horrible name for your facade. :) | null | 0 | 1317126308 | False | 0 | c2mx5uw | t3_krzdp | null | t1_c2mx5uw | t1_c2mx1zl | null | 1427652860 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | Testing and extensibilty are almost impossible with closures unless you use them to build a true object system. I like an object system being tied to a language as opposed to being a library. You get optimized syntax, optimized execution, and code can more easily be glued togather. | null | 0 | 1317126315 | False | 0 | c2mx5vl | t3_kroia | null | t1_c2mx5vl | t1_c2mnmkk | null | 1427652860 | 2 | t5_2fwo | null | null | null |
True | my_name_is_hare | null | Acrobat used to be slow as slugs, but it's decent now.
Your nonsense about desktop icons is not true. | null | 0 | 1317126360 | False | 0 | c2mx60n | t3_kssyt | null | t1_c2mx60n | t1_c2mx35p | null | 1427652861 | -19 | t5_2fwo | null | null | null |
True | bonzinip | null | The problem I have with Manager is probably that it is too vague, even before it's -er naming. At least a Builder does one thing: build. You cannot know what it means to "manage" without looking at the documentation.
Re. builder, you could also name it a FooFactory, but I didn't want to use a GOF design pattern name because patterns are not relevant in this case. | null | 0 | 1317126373 | False | 0 | c2mx61z | t3_krzdp | null | t1_c2mx61z | t1_c2mx33z | null | 1427652861 | 1 | t5_2fwo | null | null | null |
True | numbakrunch | null | [~]$ echo "" > grep ""
[~]$
| null | 0 | 1317126378 | False | 0 | c2mx62c | t3_krklz | null | t1_c2mx62c | t1_c2mtwxq | null | 1427652861 | 0 | t5_2fwo | null | null | null |
True | [deleted] | null | From the spec:
> Mouse lock must succeed only if the window is in focus and the user-agent is the active application of the operating system. The target element of lockMouse() need not be in focus.
So no background tab stealing mouse.
> Mouse lock must succeed only if the called from script code in the same origin as the top level document.
So no advertise trapped in iframe could use mouse lock.
> Mouse lock must succeed only if the target element is in the DOM tree. If the target element is removed from the DOM tree after mouse lock is entered then mouse lock will be lost.
Can't think of a use case.
Looks like they've got the problem you described sorted out somehow? | null | 0 | 1317126482 | False | 0 | c2mx6bo | t3_ksdfr | null | t1_c2mx6bo | t1_c2mx2mh | null | 1427652866 | 12 | t5_2fwo | null | null | null |
True | punkwalrus | null | I believe that what this boils down to is how people use computers. Redditors use them as tools to get work done, where as the average user uses them because it looks cool.
For instance, a Reddtor's car would be modular made from parts that one could get anywhere. It may not look pretty, but it will always run, run efficiently, and constantly have different types where fans of the car would customize it in such a way that it does its job very well. Like a pickup truck would be perfect for hauling: it would have a complex platform and pole system with mesh that holds all cargo securely in place. The engine would be keyed specifically for the type of weight, and not for speed. A Redditor commuter car would have an onboard computer constantly gauging the mileage and have a thermal brewing system to make coffee on demand so that each cup is the freshest while TED might play as a dimmed reflection on the windshield that would dim more as the car progressed in speed of the steering wheel was in use. It would probably be electric, and charge from a combination of a solar grid as part of the body, a standard 110 socket (in America), and when in a winy area, a small turbine could be raised.
A standard user would find this ludicrous. They wants a car that says, "Hey, I am successful and attractive!" It would be essentially disposable, have an on/off button, and it steers itself for the most part even if it's not exactly where they want to go. They'll walk the extra blocks because it's worth having the car over making it useful. | null | 0 | 1317126497 | False | 0 | c2mx6d9 | t3_krv1k | null | t1_c2mx6d9 | t3_krv1k | null | 1427652866 | 0 | t5_2fwo | null | null | null |
True | mantra | null | Mac OS X uses PDF internally (which is why you can make a PDF file of pretty much anything that you can print). | null | 0 | 1317126524 | False | 0 | c2mx6fw | t3_kssyt | null | t1_c2mx6fw | t1_c2mx35p | null | 1427652866 | 48 | t5_2fwo | null | null | null |
True | PericlesATX | null | I still prefer third party readers like Sumatra or Preview on the Mac. | null | 0 | 1317126612 | False | 0 | c2mx6o0 | t3_kssyt | null | t1_c2mx6o0 | t1_c2mx60n | null | 1427652870 | 5 | t5_2fwo | null | null | null |
True | [deleted] | null | Who has ever launched reader and went 'File-> Open...'. It makes no sense to launch reader via icon. Just more advertising spam. | null | 0 | 1317126614 | False | 0 | c2mx6oe | t3_kssyt | null | t1_c2mx6oe | t1_c2mx60n | null | 1427652870 | 13 | t5_2fwo | null | null | null |
Subsets and Splits
Filtered Reddit Uplifting News
The query retrieves specific news articles by their link IDs, providing a basic overview of those particular entries without deeper analysis or insights.
Recent Programming Comments
Returns a limited set of programming records from 2020 to 2023, providing basic filtering with minimal analytical value.