I currently work on a project with similar problems. The comments:LOC ratio is 1:5. At the same time, there are very few comments which are actually useful, because almost all of the comments are old, commented-out code. And yes, the project is under version control..
Posts made by Juifeng
-
RE: The Handler
-
RE: An observation about language barriers
@Jayman said:
Now that's language I can understand! I've managed to train myself out of most of the dialect when in the business world, but I still get funny looks when I say that something is all. (For those of you not in the know, "the soap is all" means that there is no soap left.)
That's interesting. Some German dialects do the same. "Die Seife ist alle!" instead of "Die Seife ist leer!".
-
RE: Another amusing thread from another forum
So apparently, firefox does HTML parsing on the GPU now. That sounds great. I'm sure someone will go ahead and port linux to OpenCL anytime soon for improved performance. :-)
-
RE: Mac is for usability
@PJH said:
Because I don't want my clipboard contents trashed because I've selected something (either accidentally, or because I'm going to do something with that selection like move it or drag and drop it)?
There are actually two clipboards (at least in my ubuntu unity environment): The ctrl-c/ctrl-v clipboard, and the select/middle-click clipboard.
It works well for me, though there's one problem with the gnome terminal emulator: Selecting something and then hitting ctrl-c doesn't copy the selected content to the ctrl-c clipboard. (I guess it would kill the currently running process, because that's what ctrl-c *usually* does on a terminal) So I need to use the "select/middle click" clipboard from the terminal. Like, when I am viewing a log file in a terminal and want to google for some log message, I select the text and then I want to paste it into the firefox search box. However, double-clicking into the search box (to select all text, then delete, then middle-click) will select any old text in the search box and therefore remove the log message from the clipboard. That's pretty annoying. [strike]Luckily, firefox now supports "right click->paste and search" (or whatever it is called in english), which is a workaround for my only problem with linux clipboards. :)[/strike] (whoops, that's a lie. Of course that will paste thectrl-c clipboard. The actual workaround is to click into the box, then hold ctrl-delete and then ctrl-backspace until the box is empty, then middle click.)
I like how easy it is to set up and keep up to date most development environments on most Linux distros. Also, unity is fine IMO. I like win7, but I almost never use it because I'm used to ubuntu, and I'm tired of having to do most application updates manually. Never used a mac, so I can't really say anything about macs.
-
RE: Game Launchers, amirite?
L.A. Noire (PC) has the "launcher features" built into the game. The serial number check and "Rockstar Social Club" profile registration / log in is also integrated into the game. Consequently, launching the game takes a pretty long time. First, there's some legal stuff shown (no way to cancel), some vids (IMO), then there's a screen with messages like "Checking for patches..", "Checking for downloadable content..", "Checking game data" and then, finally, you're in the main menu.
Also, in-game cut scenes can't be cancelled even if you've seen them before.
It also has a game launcher, but it's a simple one (like Skyrim, but not as nice-looking).
-
RE: Upside-down job ads
@ekolis said:
Wow, what kind of totally awesome welfare state do you live in where you get paid a living wage to LOOK FOR A JOB??? Can I move there?
As he said: Germany. Social security is pretty good around here. You'll find lots of people who complain about it though, because they think the "Arbeitslosengeld 2" (usually incorrectly called "Hartz IV") of ~350EUR should be raised. I'm not quite sure about it, although I think it shouldn't be much lower.
-
RE: News Flash: Firefox still stupid; Firefox support people also stupid
Isn't java bla.bla.27 (instead of 26) the current java release? I know my firefox on windows used to have a lot of old java consoles without the option to remove them. I think it's a big win that older java console versions now stop working.
Also, I don't think I need the java console. what is it good for? It's not needed for java, AFAIK. (Then again, I'm not using java applets all that often, so it might be needed and I simply haven't noticed yet.) Thankfully, apt-get saves me from most update problems. No firefox addons have stopped working for me yet, but I'm only using mainstream extensions.. YMMV.
The new version numbering is a pretty big WTF though.
-
RE: Try printing this site
German politicians are often called "Internetausdrucker" (ausdrucken = to print). It means that instead of actually using the web (surfing, sending e-mails, ...) they have a guy that prints their e-mail in the morning for the politician to read. If they need information from the internet, they ask that guy to google it and .. print it. And these guys are in charge of creating legislation for the internet, even though they have no clue what it is.
So by blocking the print feature, the CCC obviously attempts to stop politicians from reading that page, as printing it out is the only way for them to read it. It's probably meant to be a joke. ;)
-
RE: Bitcoin Crash
It's not that bad, actually. Someone got access to a MtGox account with 500k BTC on it and sold about half of them for $0.01. Since it's impossible to add new orders while another one is "in progress" (WTF!), other people couldn't buy the cheap BTC unless they already had a buy offer open before the attack. So they were watching that big trade to end (it took a few minutes), and then the price was back at 12$/BTC quickly after that. Then MtGox went offline.
MtGox will roll back all those trades. That's possible because they took place only on MtGox. It's simply shifting some numbers in their database.
Some traders moved the bitcoins they bought for 0.01$ out of their MtGox accounts (into their private wallet) quickly. These transactions can't be undone, so MtGox probably lost quite a few BTC. But it won't kill them I guess. And there is a payout limit of 1000$/day (or the equivalent amount of BTC).
Sure, it makes BitCoins look bad. But nothing of big value was lost. OTOH, I suspect the exchange rate will go down quite a bit because a lot of people lost their trust in BitCoins. Including me, but I only own 0.81BTC right now, so it won't have any noticeable effect. :)
-
RE: FB is TRWTF
@derula said:
Edit: I do that to get JavaScript into my homepage link in my TDWTF profile.
Full disclosure!
-
RE: Storing bitmasks in SQL
<div class="content"> <div id="post_message_27706627"> <blockquote class="postcontent restore ">> 32 guests viewing???<br>
<font color="#444444" size="1">> Edited:</font>
> 55 fucking guestshahaha :)</div> </div>
-
RE: The more things change...
See, that guy was on the right track.
"[..] More than 10 years of industrial experience with Fortran have proved conclusively to everybody concerned that, in the real world, the goto is useful and necessary: its presence might cause some inconveniences in debugging, but it is a de facto standard and we must live with it. It will take more than the academic elucubrations of a purist to remove it from our languages. [..]"
-
RE: Credit card number autocompletion
@PSWorx said:
This means that you can request at most 8 resources (per server) in parallel and have to put all other resources into a queue. And then there are still some servers from the middle-ages that require that you tear down and re-establish the connection after each resource. And that doesn't even take redirects into account...
Actually, HTTP/1.1 allows the browser to request multiple resources over 1 connection in parallel, without waiting for the first reply to arrive at the client. It's called HTTP pipelining and saves some round trip times, even when using only one HTTP connection.
(However, theoretically not all servers support pipelining, so it can only be used by the browser after a response from the server indicating that it supports pipelining has been received - usually the HTML page requested, and then all images/flash files/CSS/JS/.. can be requested all at the same time.)
-
RE: Do we really need a new way to close a window?
The setting should be system-wide. That's most important for me. The problem is that most websites don't upen pop ups any more, they just make some div or whatever magically appear using javascript. To close those divs (or rather: hide them again), they just place a "X" somewhere. They can't access your system configuration, so they may be anywhere. Top left, lower right, or in the middle of the "window". Not-so-good.
When Ubuntu first moved the close button to the top left I thought it was stupid and the first thing I did was putting it back to the upper right corner. When I updated to Ubuntu 10.10, it moved to the upper left again - and this time I gave it a chance.
Now I think it's a good idea. If a window is maximised, the close button is right next to the application menu, so closing an application and starting another one instead is faster than before. Other than that, it's not much of a difference for me. I got used to it pretty fast.
Edit: I also remember closing windows by double-clicking the top left corner in win 3.11. There was no X button, instead it was an ugly square containing a "-" (dash). :)
-
RE: Javascript doublespeak
I actually love languages that have relatively strong type checks. That's why I expect my favourite language to yell at me when I try to check if "true" != true.
It simply makes no sense to compare a string to a boolean value, because they are different types, so they can't be equal. Sure, in some cases it might be somewhat useful, e.g. comparing a 64 bit long (long) to an (32 bit) integer, that is, when one of the types is a subset of the other type.
However, using a string type variable (or any kind of nullable type) when the language syntax asks for a boolean expression, that's just wrong. I see that it makes live easier in some situations, but I simply don't like it.
-
RE: What is this "Boolean logic" of which you speak?
Well, as x and y are objects and the .eqalsTo() method is called on these objects, it's important to check that they are not null, unless you can be sure that they aren't.
Also, x!=y merely checks that x and y are different instances, however they may still have the same value, so x!=y might not be enough.
I'm still not sure where the WTF is exactly, but maybe that's because I'm almost falling asleep. Is it because the expression is overly complicated and can be expressed in simpler terms? Or is it the senior developer's question about a simplification which doesn't handle all cases correctly?
-
RE: C#: WTF are they doing with that language?
In my functional programming course at university they told me that even though languages like Haskell will probably never be very popular, the concepts of those languages have started to appear in traditional languages as well, and that's why we have to learn Haskell: to understand functional programming. And be able to write better python code.
After I implemented insertion sort in Haskell, I decided that I'm just going to ignore these new functional features in i.e. C# and stick to good old for/while/whatever, even "goto" seems a lot more sane to me. :-)
-
RE: Is there a stupider solution?
I always thought that copy operations werde IO bound, not CPU bound. So why is it that RichCopy (or whatever it's called) speeds up the copy process by using multithreading?
-
RE: Linux: Ur Doin' It Wrong
@Jake Grey said:
There isn't even a command prompt. I'll leave a little white space to let that sink in.
Usually, any Linux distro should allow ctrl-alt-f1 to switch to a text-only console. if that is of any help. you might be able to use apt, rpm, or whatever package manager the distro uses from there. personally, i'd just (re)install my favourite OS.
-
RE: Plain rocks
@merreborn said:
At least they haven't started selling tap water in bottles for $1 per liter or more.
Isn't that exactly what Bonaqua (Coca-Cola company) does? In Germany, Bonaqua is labeled "Tafelwasser", which means that it's not good enough to be called "Natürliches Mineralwasser", which usually means: It's taken from the public water grid (do you call that grid?). Of course, as Bonaqua is sold by Coca Cola, it's pretty expensive. But still it's quite popular - thanks marketing!
-
RE: Did you REALLY just do that?
@henke37 said:
Escaping queries are for amatures. Real developers uses parameterized queries instead.
There's not much to parameterize when you're sending to whole query as a "variable". :-) Escaping won't help much, either...
-
RE: Libgweather xml copy pasta
I'm on Ubuntu 8.04 - which also uses apt and is based on debian - and I have only 1 file, Locations.xml.
Quote from viraptor:
[vi@hedgehog ~]$ sudo apt-get install dc
(Hoary?) Hedgehog was actually an Ubuntu release.
edit: i fail at quoting
-
RE: Hardware atrocities
I remember Eclipse trashing wildly when I had 512 MB.
-
RE: Unexpected Google Products result
@bullrider718 said:
I like how the DVD link is purple.... seems like you were interested in the product after all ;)
It obviously has the best rating compared to those boring contacts. :-)
-
RE: OO - The *other* end of the spectrum
Is emulating a NES cpu time-critical? I guess not, and in that case I'd prefer having a lot of classes (one for each opcode) over a few massive switches. IMHO, that makes it easier to read (and therefore maintain) the code. If I started that project from scrap, I'd have chosen the switch-way, simply because creating 150 files one-after-the-other must be a pain in the a...
-
RE: The Godfather of Webdesign
I wonder how they pay for adobe flash licenses when they can't even pay 150 EUR for some music.
-
RE: Hashtable lookup "workaround"
@tster said:
foreach variable in (bar, baz, moop)
foreach value in (even, odd, prime)
addTestPoint("testing foo when " + variable + " is " + variable);they said that they tried that and it wasn't working.
Now, that's probably because they should have used "value" instead of "variable" as the second .. err.. variable.
-
RE: Loop Abuse
AFAIK, all "" string literals share the same copy, at least in mono.That means it should be exactly the same as string.Empty. Don't know if it's different for MS.NET.
-
RE: Bloggies, wtf?
I actually like the idea. The design is "special", and as long as it's only a few sites.. no problem. "WTF" in a positive way for me!
-
RE: Job: Create an entire dating site: Architecture, 1 hour, Initial work 2 hours, testing 4 hours, protype developed 1 hour. Pay $25/hr
I think that using SELECT count(*) ... in MySQL is actually pretty fast and (for mysql) AFAIR best practice to determine the row count of a table. Of course, doing this in postgres or mssql is rather inefficient.
-
RE: Polish ISP blocks gimp.org and other sites
okay, so it's probably the EU trying to stop "terrorist" software.
-
RE: Polish ISP blocks gimp.org and other sites
It's probably just the EU, trying to stop you from using "communist" software like GIMP. ;)
-
RE: Linux ain't free, y'all!
@Seraph said:
Getting my wireless to work in Ubuntu went something like this:
[snip]
Entering commands by hand, troubleshooting the wireless problems, and editing configuration files are not things that someone who is "marginally skilled with computers" can do.For me, it was quite the other way 'round. I posted this before on this forum, but my wlan card (it's pretty old, Netgear MA 311 or something like that) worked out-of-the-box on ubuntu (nothing to install, easy GUI config dialog), while I had to bring in some drivers for windows on an USB stick, and they were rather hard to find on the internet (I've lost the installation CD).
My dvb-s card however was very easy to install and get working on windows. there was just one slight problem that I never got fixed: The drivers would cause a blue screen approx. 5 minutes after starting the tv software. On Linux, the drivers came with my distribution, so I only had to get some TV software. I decided to use "MythTV", which was quite difficult to configure and the GUI sucked a lot. Very powerful software, as it includes a web interface and a lot of other fancy stuff (i don't need). I got it working eventually and enjoyed watching TV without blue screens.The other day, I found a software called "MeTV" in the software repo and decided to give it a try. As I had already created a "channels list" before, I simply imported it so configuration wasn't that difficult now, but I guess for a new user it's not that easy. I like the program, it's lightweight and easy to use, so I got rid of MythTV and all the stuff it came with (a MySQL database, etc.).
Up to this day, I'm still unable to watch TV on windows. Well, that sucks, but I don't care - most of the time I'm on Linux anyway.
-
RE: I just realized
Ugh..! How long does that monster solution take to (re)compile? or even load up in visual studio?
-
RE: Very Random Numbers
I think that trying to improve the randomness of built-in RNGs is a very common problem. Especially in PHP scripts. People just fail to see that in most cases, it's just getting worse and usually never improves the results.
-
RE: Jesus christ.
That guy in the left corner obviously wants to lose some weight.
-
RE: Windows Brings Itself to a New Level
I do think it's a WTF. It should either say "please enter text to search for!" or disable the submit button.
An every-day user couldn't figure out what this messagebox is all about.
-
RE: Refund email
<id prix> ? <id date> ?
They have a table for prices and dates? And.. wanted to send you the corresponding IDs? ..
-
RE: Hughes satellite Internet
@morbiuswilters said:
However, the IP addresses from Farmer Brown's posts was matched up to MPS's which proved it definititvely.
Good thing thedailywtf is not hosted in germany, where doing that could be illegal. Nobody really knows, so it really depends on the judge. Can you spell "Banana Republic"?
-
RE: Smartphonemag.com
Seems like there are more WTFs to come:
' To update this page for 2007 etc., change "Product.Nom2007" in the SQL query to the appropriate field.
-
RE: Another scientific Notation Mixup
So they store phone numbers as decimals? that's interesting. I guess it should be "91.2229"? I wonder how they store, for example, german phone numbers where "." as a separator is not very common (no, "," is wrong too..). And I wonder if their system suffers from precision problems.
-
RE: Sometimes I think the testimonials are written by the webpage authors
These "buy the product for a high price, then just resell it!"-softwares are stupid. pyramid scheme? I think in Germany, doing this (or even trying to establish a pyramid scheme) could end in jail.
-
RE: Defragmenting Weather
@dtech said:
Yes, because "X server has quit due to an unexpected error" is soo much better
Even though it is a joke, and i do relax, I'm wondering: what's an X server doing on a server machine?
And - why would that message appear on a website graphic? Oh - i see! They take a screenshot, print it,... wooden table, etc, etc..... scan... FTP upload.. profit! And that's exactly how weather websites create radar images.
-
RE: Does this count as a WTF?
@vt_mruhlin said:
Would the second catch handle an exception that was thrown by MessageBow.Show? (ex.Message is null, for example)
I guess you'd have to add a second try block. like that:
try {}
catch(Exception ex) {
try{ //messagebox }
catch { // messagebox failed }
}
Funny. %)
-
RE: I wonder how long they were in alpha
Or maybe they redesigned their website and are now "beta testing" it in public on a live server, without giving the possibility to switch back to the old page.
-
RE: Cisco websie WF
It's fixed, and it still says "$Revision: 1.15 $". So it was probably just some output-enhancing (clbuttic-kind-of) misstake.
-
RE: You Save 100.00%
That kind of rebate seems to suck. Sure, I'd send it in and be happy to get some money back - but why make it that difficult? Are most people really that stupid and forget to send it in? Good thing I've never seen that "live". Probably wouldn't buy it, but who knows, maybe if it's a really good price..
Here, it simply says "2,80EUR" instead of "3EUR" on the price tag. Of course, that leads to .. old ladys checking their receipts wheter or not the 0,20EUR were substracted correctly..
-
RE: We only accept Originals.
@vt_mruhlin said:
1) What does "Personalausweis" translate to in English? My limited knowledge of linguistics is saying that it's closer to just an ID card than it is to a drivers' license. Requiring everybody to get either a driver's license or a passport seems impractical. The driver's license entails driving priveleges (and there's a test to obtain it). People who don't drive, don't need a driver's license. People who don't travel out of the country don't need a passport, but I guess there's no problem getting one of those just-in-case.
Yeah, it's just an ID card. (translates to something like "personal ID") On top of that, we've got (of course) passports, driver's license, Krankenversicherungskarte (card for public health insurance - I don't have one because my parents pay for a private insurance company) and a lot more. It's bureaucracy hell. ;-)
I also don't have a passport, as it's only needed to travel out of the "Schengen" countries. Those "Schenge" countries accept the German Personalausweis as ID, and Germany accepts their ID documents.
@vt_mruhlin said:
2) How do German drivers carry proof of their driving priveleges? Or do you just let everybody drive? American non-driver IDs are there because we grew accustomed to using driver's licenses as a generic ID, but plenty of people in big cities don't drive... So they get an ID card instead. I'd say an "either-or" system is better than one that would require me to carry both an ID card and a driver's license in my wallet.
We do have the same system, there is a test to obtain a driver's license, too. (And you *have* to learn driving at an official school, you can't just learn from your parents and then take the test.) Although you're not required to carry the Personalausweis (ID) with you, I do. It's not that bad. If you want, you may leave the ID at home and only carry the driver's license - most places where you'd need the ID will also accept the driver's license.
@vt_mruhlin said:
3) I don't understand why Americans are so afraid of identification documents. Sure, there's the nutjobs who think it's the mark of the beast or whatever, but there's been plenty of other unfounded opposition to any sort of national standard for ID cards. Fact is a system like that would make it easier and cheaper to authenticate an ID, and would cut down on user of fake out of state IDs
I think Germany will introduce an ID with an integrated chip in a few years. Not too bad, as the personal data will be saved on the chip and not in a central database in Berlin. However, it'll use RFID. I really hate that idea and would love to keep my plain old non-chip ID.