Ugh - my eyes hurt now. "view source" reveals that most of this 600kB behemoth of a page is a single image tag with the image content base-64-encoded and embedded directly. Way to defeat cacheing and kill my bandwidth, guys.
Posts made by Julia1
-
Image fail
-
RE: CSOD ASP.Net webforms
@pjt33 said:
.Parent.Parent.Parent.Parent
: because refactoring never happens, so our position relative to theFormView
will never change.
Seen that vile construct in WinForms as well, felt the pain :(
-
Someone's just discovered "yield"
A delightful pattern that recurs throughout a library I've just opened up...
public IEnumerable<Foo> GetFoos()
{
foreach (Foo f in PrivateGetFoos())
yield return f;
}
-
Profiling our ORM
SELECT [GroupBy1].[A1] AS [C1]
FROM (
SELECT COUNT(1) AS A1
FROM (Select 1 AS X) AS [SingleRowTable1]
WHERE 1 = 0
)
AS [GroupBy1] -
Rapid Web Design
You want a website designed? Plenty of time to wait in order to get it just right? (Including text embedded in images, but hey, that's a designery thing...)
-
RE: ASPeers, can we agree to stop this shit?
It's the ASP.NET version of the classic ASP pattern which I have seen and shuddered at:
Response.Write("<html>") Response.Write("<head>") Response.Write("<title>My pile of WTF</title>") /* snip ... */ Response.Write("</html>")
-
RE: I don't know what to call this pattern
Having a reference back up to the top level Application isn't the worst I've seen - that honour belongs to each object having a reference to its immediate parent in the hierarchy,and then finding someone coding a turd like this.Parent.Parent.Parent.Parent.Parent.Dao.GetFoo(), thereby cementing the entire object hierarchy in place for all time. But the whole idea of objects knowing anything about the innards of their callers basically kills the idea of code reuse stone dead. Leading to the obvious pile of copypasta down the line...
-
Great job opportunity
"We're looking for undefined at undefined. Know someone who'll like this job?" http://www.linkedin.com/groups/Were-looking-undefined-undefined-Know-85746.S.188605253?view=&gid=85746&type=member&item=188605253&trk=eml-anet_dig-b_nd-pst_ttle-cn
-
RE: Going in circles
There's one view which is like this but does an is-not-null test. The rest, sadly, slavishly follow the pattern even though they clearly add nothing of any value...
-
Going in circles
CREATE PROCEDURE LoadAllFoo AS SELECT * FROM Foo WHERE FooName IN (SELECT FooName FROM V_FooName)
CREATE VIEW V_FooName AS SELECT FooName FROM Foo
Enough said.
-
RE: Why?
abstract: n. a summary of a text, scientific article, document, speech, etc.; epitome.
So it's a widget that displays abstracts. Well, in a sane codebase it might be.
-
RE: Primary-ish key
@boomzilla said:
Hopefully (for our sake), it's not a real PK or indexed at all, and that query actually scans the table!
You don't work here by any chance? :)
-
RE: Primary-ish key
@blakeyrat said:
You're assuming. Nobody mentioned SQL Server.
True, but it is. And I've got to the point where I stop asking why... having pointed it out and asked for it to be redone, the next iteration of WTFishness is to SELECT the entire table - a billion rows in one case - and take MAX(id) + 1.
In my defence, I stepped into this pseudo-ORM long after it had been cobbled together. TRWTF was me not spotting red flags at interview :(
-
Primary-ish key
Well, here we are with our home-grown entity framework, and after a lot of hours trying to debug some weird data corruption in a part of the app I've just taken over... I find out how some of our "unique" entity IDs are created:
[code]
entity.Id = Guid.NewGuid().GetHashCode();
[/code]Sigh...
-
RE: We're SDLC compliant
Reminds me of audits at a shop in the late 1990s, which would be days of pain as the auditors went through the Procedures Manual with each of us in fine detail. Then someone in management had the bright idea that if we simply abolished all the Procedures, there would be nothing for us to fail an audit on...
-
RE: Your job evaluates to false or do you mean VB6?
No C#? Maybe they want someone who's going to survive the codebase without erupting in a mass of "TRWTF is Visual Basic" every few days?
-
Better just check...
[code]
bool tmp = Settings.Foo;if (tmp == !tmp) Debug.Assert(true);
[/code]
Always code defensively, even against the basic rules of logic changing...
-
RE: If would be greater than For, if I knew what If or Greater Than were for
@LegacyCrono said:
Please enlighten me, because I honestly see no problem with that code.
Besides, of course, the fact that it's VB
It only processes the first row then bombs out of the loop? Looks like the original author is using For/Next/Exit to do a bounds check on IndexBeingViewed.
-
RE: Comments that piss me off
I worked at a shop where home-grown source control automatically rejected any code with a comment-line-to-functional-line ratio of less than 0.3-ish. As you can imagine it led to an awful lot of code just like the OP's in order to pass validation...
-
RE: My Forward-Seeing Predecessors
For the other columns yes, redundancy not good, but having all the Ids prefixed means queries are more easy to debug. In the following:
SELECT * FROM Foo f JOIN Bar b ON f.Id = b.Id
it's not immediately obvious that the two IDs are completely unconnected, but
SELECT * FROM Foo f JOIN Bar b ON f.FooId = b.BarId
is clearly an error and should be "f.FooId = b.FooId".
-
RE: Best or worst ever function name?
Thanks a lot. I shall never be able to look at "double CumProductionVolume" with a straight face again.
-
RE: Employment Screening Test
@jasmine2501 said:
Lawnmowers are made from $50 of parts. Workers make $8.50 per hour and it takes 7 hours to build a lawnmower. If you want to make at least $30 profit on each lawnmower, what is the best selling price.
Depends on what you mean by "best". The smallest answer above $139.50 is best for the consumer. What is best for the company depends on the elasticity of demand...
-
RE: The Wooden Table Approach - Updated for 2011
Cue "Yo Dawg" meme in 3... 2... 1...
-
RE: Interview
I did an interview once where they started off with a group exercise for 10 at a time (one of which I suspect was a management plant). It was the old scenario of the plane that crashes in the desert miles from anywhere, do you walk to what you think is the nearest town and if so what do you take with you. I was by far the best qualified and I was the only one to work out - or already know - the correct strategy, and argue them with evidence against the apparent idiot who wanted to push the wrong answer on everyone else. I was also the only one to flunk. Because the test wasn't about initiative; they wanted someone who was socially compliant and wouldn't question orders from above. That's government for you.
-
RE: Ridiculous input validation gone bad (for the some of the world)
This also has the possible advantages of...
...preventing people entering genuine emails other than their own, in order to embarrass/annoy/spam. I'll make sure my customers are who they say they are.
-
RE: The $30k Web App
@Smitty said:
Yes this atrocity could have been just as easily committed in C#, but in VB the missing braces and ByVal ByRef And Also Not For Each bullshit makes me downright homicidal.
And of course poor devs can keep it all running with a liberal shake of On Error Resume Next. That one wtf alone deserves a place in the Seventh Circle of the Inferno.
-
RE: The most unethical person I have ever worked with.
@barc0de said:
Instead I installed a free SMTP server on an old PC, and she sent the email with confidence that it would fool the insurance people. It didnt.
So conspiracy to commit insurance fraud is ethical? IAMFI
-
RE: Just deploy it; it doesn't need to work
Finally the business analyst in-charge recognizes the stupidity of the requirement and makes the official decision: "Just deploy it; it doesn't need to work."
Years ago I did a project for a US government agency. Mid-way through the project, we picked up from their project manager that their business requirements had changed (i.e. they had lost a lot of work to another department). So the project would never be used in production. Our PM naturally demanded that we still be paid for what we'd already done - which prompted the reply "we can't pay for anything until our boss sees a deployment and signs it off - so just finish it, deploy it and send us the bill and then we can scrap it". Sure, we were really motivated to do a good job...
-
RE: Hmmm I think I want to visit Null's Farm
I'm don't think that realising there are miillions of punters who would baulk at paying $40 for a decent game, with all its development effort, but who would let that same amount dribble out a few cents at a time playing drivel like FarmVille, could be described as a WTF. Pure genius, in fact.
-
RE: Why managers should never be allowed to make decisions
@Mole said:
They will not put it on the approved list as "It may contain unknown security holes. XP is proven technology.".
Despite some machines have 8GB RAM...Meh. TRWTF is when your proven and approved XP also has to come with "proven" and approved IE6. Don't you just love local government.
-
RE: DO NOT click on these links!
Hang your head in shame if you checked to see if the OP left the link active [i]by clicking on it...[/i]
(gets cluebat ready for co-worker)
-
RE: True or False?
But in order to be <FONT face="Courier New">HALF_WAY_THROUGH_INITIALISATION, it must first be QUARTER_WAY_THROUGH_INITIALISATION, and before that... </FONT>
<FONT face="Courier New">namespace ZENO { enum BOOL { NOT_ASSIGNED } };</FONT>