|
Milotic posted:There's stuff that could be improved, definitely, and how Microsoft implemented AJAX for ASP.NET can be an abomination unto God sometimes This is a problem for many frameworks that heavily abstract the web development cycle and came before AJAX became commonplace, because asynchronous partial page loads are a completely different model of development than the old-style "re-render the entire page every time". I work on a web application written using Apple WebObjects that we've been slowly AJAXifying over the past couple years, so I feel that pain every day. The hackery required to get AJAX working in it was bad enough, but at least it was already done as part of the Project Wonder project, which provides a ton of extensions to WebObjects. I had to write a whole slew of components to generate Dojo widgets by hand from scratch, though
|
# ? Mar 4, 2010 22:22 |
|
|
# ? Jun 6, 2024 07:13 |
|
There's been a tendency in my organisation to come up with some real design horrors, where many applications with quite complex behaviour and the need for real time status information have been done as asp.net pages, usually using some Ajax framework rather than WinForms. These are all internal applications. The frustrating thing is that the company just doesn't seem to want to move to flash, silverlight or some other RIA framework. No, we have to have multiple users viewing a page with quite a few nested tables, which refreshes every 5s. And we're making hundreds of calls to SharePoint web services (including security ones, which seem to be the slowest) and AD each time we do this. And we wonder why performance is bad. Is there some sort of screen history navigation design pattern people use for web pages? Some of our systems chain sub-menu pages, and it's always a complete bitch getting them to return the user to appropriate page in the appropriate state when they click Cancel.
|
# ? Mar 4, 2010 23:08 |
|
Milotic posted:There's been a tendency in my organisation to come up with some real design horrors, where many applications with quite complex behaviour and the need for real time status information have been done as asp.net pages, usually using some Ajax framework rather than WinForms. These are all internal applications. The frustrating thing is that the company just doesn't seem to want to move to flash, silverlight or some other RIA framework. No, we have to have multiple users viewing a page with quite a few nested tables, which refreshes every 5s. And we're making hundreds of calls to SharePoint web services (including security ones, which seem to be the slowest) and AD each time we do this. And we wonder why performance is bad. I don't really understand why poo poo like that has to be browser-based. It seems to me that projects like that tend to become IE-only anyway so you might as well just say gently caress it and make a proper GUI front end in the visual studio designer.
|
# ? Mar 5, 2010 00:44 |
|
Milotic posted:Huh? Web development with ASP.NET is fine. There's stuff that could be improved, definitely, and how Microsoft implemented AJAX for ASP.NET can be an abomination unto God sometimes, and the page event life cycle is a bit lovely in places, but really, I've seen worse technologies and frameworks. It's not so much that I have any issues with ASP.NET as it is that the entire class of problems ASP.NET is designed to solve is utterly uninteresting to me. Playing mix-and-match with tags and C# to shove data around in slightly different ways just isn't what I want to do with my life. Although I do think ASP.NET is entirely the wrong direction for Web development to take and hope it's an evolutionary dead-end, it is at least a decent implementation. You're right; my prospects could be worse.
|
# ? Mar 5, 2010 01:52 |
|
Munkeymon posted:I don't really understand why poo poo like that has to be browser-based. It seems to me that projects like that tend to become IE-only anyway so you might as well just say gently caress it and make a proper GUI front end in the visual studio designer. People do it because it's really fast and really easy. To me it makes sense, even for a small office. Where I work my apps get used by people with iPhones, Blackberries, Apples, Windows, and Linux. I only need to write one decent version of a web app and it works well on every platform. I've tried a little bit of GTK, Swing, and C#; but, I still find web applications easier to craft. It seems ironic really, since I usually use 4 different languages to get the job done.
|
# ? Mar 5, 2010 02:04 |
|
rt4 posted:People do it because it's really fast and really easy. To me it makes sense, even for a small office. The best tool for the job isn't necessarily just one language.
|
# ? Mar 5, 2010 02:29 |
|
We had a guy write some production code that did something along the lines of: Query Database Run through sequentially Find element that matches X, change, query database and startover. It was unreal. Unfortunately it was written in our proprietary language so posting it here wouldn't make any sense. Yes, proprietary language. Ugh. Hope I get to do some of the WPF stuff we're looking at.
|
# ? Mar 5, 2010 05:35 |
|
MrSaxamaphone posted:Hope I get to do some of the WPF stuff we're looking at. WPF is a coding horror.
|
# ? Mar 5, 2010 06:04 |
|
MrSaxamaphone posted:We had a guy write some production code that did something along the lines of: In a previous life, I worked on a DB engine. A customer submitted an app and wanted some help with performance. Turned out they were manually doing a binary search through a SQL table to find what they were looking for. The solution was to tell them to use an index and a single SELECT statement with exactly what they wanted.
|
# ? Mar 5, 2010 15:28 |
|
ShoulderDaemon posted:If both field1 and field2 are uniformly distributed over the range of an int, and they are uncorrelated to eachother, then field1 ^ field2 would be an acceptable quick-and-dirty hash function. Using field1 | field2 even in that optimal case will be strongly biased towards returning 1s in the hash, giving a very poor hash function. If field1 and field2 are not uniformly distributed, or are correlated to eachother, then either approach will probably give a poor hash.
|
# ? Mar 5, 2010 15:49 |
|
rt4 posted:People do it because it's really fast and really easy. To me it makes sense, even for a small office. That's great for a decently well-written application, but what I had in mind was an IE-only clusterfuck that would have started life as an IE-only mess and simply graduated to clusterfuck later in life. Preferring a slow, crippled web interface over even a medium-effort native interface in that case makes me but I'm sure I'm just biased since I don't believe browser-based interfaces will ever be a reasonable replacement for what we can do with native code except in simple cases. They're easier to get working, of course, but then people want you to mash native interface concepts and abilities into the web interface and you have to break out the kludgeon and go to work.
|
# ? Mar 5, 2010 15:59 |
|
Making a standards based app that plays nice with all of the modern browsers is great, until your boss comes in and reminds you that 20 some percent of the visitors to the site are still using IE6, and they're stuck behind a modem somewhere and are never going to upgrade it (running windowsupdate on their machines would take all month, especially since they have dozens of different bots vying for all of their bandwidth).
|
# ? Mar 5, 2010 17:06 |
|
Milotic posted:Huh? Web development with ASP.NET is fine. There's stuff that could be improved, definitely, and how Microsoft implemented AJAX for ASP.NET can be an abomination unto God sometimes, and the page event life cycle is a bit lovely in places, but really, I've seen worse technologies and frameworks. We need a distinction between "web devs" and application devs that are writing for the web. It used to a be a "web developer" was someone who hacked DHTML and CSS to get cool rollovers but now so much real functionality is moving to web interfaces and you have these enterprise-level web development platforms that the distinction between "real dev" and "web dev" is basically non-existent (except for the abomination of writing a decent UI in HTML/CSS). My workplace employs an engineering organization made of CS degrees all with backgrounds in C++/C#/Java/etc and we all develop complex web apps in either Java or ASP.NET. The work we do isn't qualitatively different from desktop apps. But we also have "web devs" in the marketing department who's job is to create light-weight HTML pages that might pull some data down via AJAX but by-and-large aren't backed by a server-side application codebase. So, am I a web dev if I spend all day in ASP.NET? What's that make the HTML guy in the other department? Are the people creating Google Maps in the same class of people that customized their Livejournal template? Obviously not but the term "web dev" still seems to sit awkwardly between those extremes. I see the distinction "web dev" and "web app dev" but that doesn't seem any less awkward. Nomnom Cookie posted:It's not so much that I have any issues with ASP.NET as it is that the entire class of problems ASP.NET is designed to solve is utterly uninteresting to me. Playing mix-and-match with tags and C# to shove data around in slightly different ways just isn't what I want to do with my life. ASP.NET the platform is pretty solid in my opinion. WebForms is just the application framework built on top of it. And at this point we've essentially abandoned it for ASP.NET MVC which fits much much better in the web world. It's a testament to the flexibility of ASP.NET that you can essentially rip out WebForms and replace it with something else and it still works. Dr Monkeysee fucked around with this message at 19:11 on Mar 5, 2010 |
# ? Mar 5, 2010 19:05 |
|
I usually break it down as the difference between web design and web programming. I find it useful to break it down like this because web programmers are usually poo poo at getting anything to look good. Web design people usually tend not to be able to program worth poo poo.
|
# ? Mar 5, 2010 19:13 |
|
Monkeyseesaw posted:What's that make the HTML guy in the other department? The ones I've encountered tend to have backgrounds designing logos and making the graphics that go on the web pages, and their mockups. So, I usually just call them artists. Then they get shoehorned into writing stuff they don't understand to try to save money. Then it goes way too far and they start making databases and PHP programs based on some tutorial they read.
|
# ? Mar 5, 2010 19:13 |
|
I found this on a pastebincode:
I will just let this one speak for itself.
|
# ? Mar 5, 2010 22:29 |
|
People still learn on BASIC first? Also, I'm not going to rag on Baby's First C++ Program. Everybody had to start somewhere.
|
# ? Mar 5, 2010 23:11 |
|
Lorem ipsum posted:
|
# ? Mar 5, 2010 23:34 |
|
Ugg boots posted:WPF is a coding horror. I have a hard time with it, too
|
# ? Mar 6, 2010 03:21 |
|
rt4 posted:Then they get shoehorned into writing stuff they don't understand to try to save money. Haha yeah we specifically had to set up PHP in the publishing environment so they could do some server-side stuff if it came up.
|
# ? Mar 6, 2010 03:46 |
|
rt4 posted:The ones I've encountered tend to have backgrounds designing logos and making the graphics that go on the web pages, and their mockups. So, I usually just call them artists. It goes the other way too, I'm usually only doing backend coding and JavaScript, but some times they try to coerce me into writing stuff and designing poo poo as well.
|
# ? Mar 6, 2010 05:25 |
|
From some old LaTeX code I wrote:code:
|
# ? Mar 10, 2010 00:31 |
|
niteice posted:From some old LaTeX code I wrote: Well obviously w becomes E, U becomes C, and z becomes N. X and O are unchanged.
|
# ? Mar 10, 2010 03:24 |
|
biznatchio posted:Well obviously w becomes E How do you know it doesn't become \exists?
|
# ? Mar 10, 2010 03:42 |
|
theg sprank posted:How do you know it doesn't become \exists? \exists and \forall are an E and an A mirrored across both axes.
|
# ? Mar 10, 2010 09:17 |
|
Heres a nice snippet from an old ASP project I've been given to do some work on..code:
|
# ? Mar 10, 2010 10:51 |
|
niteice posted:From some old LaTeX code I wrote:
|
# ? Mar 10, 2010 14:11 |
|
Athas posted:\exists and \forall are an E and an A mirrored across both axes. He means, if you rotate W in one direction it looks like an E and if you rotate it in the other direction it looks like \exists.
|
# ? Mar 10, 2010 14:52 |
|
God drat. Here I was, on a separation of concerns crusade, when I stumbled upon this little bit of code left to us by a coder who quit eight months ago:code:
|
# ? Mar 10, 2010 15:00 |
|
I have a potential coding horror of my own doing to submit. I'm working on a project in Python that parses XML files. These XML files always exist in pairs, and one of these files is a lot more complicated than the other. At first, I implemented everything using xml.dom.minidom. It worked swimmingly for the less-complicated file. It worked alright for the more complicated file until I threw more of my test data at it. I rewrote the parsing for the more complicated file in ElementTree, but I have not rewritten the parsing for the less complicated file. It's still xml.dom.minidom. It works fine. It's just not consistent. It has been documented in the code. They're not intermingling within the same function. The function that parses the more complicated file uses ElementTree. The function that parses the less complicated file uses xml.dom.minidom. There is no other XML parsing going on any other place in the code besides those 2 functions. I need a verdict. Is this a coding horror?
|
# ? Mar 10, 2010 21:04 |
|
ErIog posted:I need a verdict. Is this a coding horror? Yes, because you should be using lxml.
|
# ? Mar 10, 2010 22:42 |
|
ErIog posted:I need a verdict. Is this a coding horror? No. But you know it's not as clean as it should be. Also, Scaevolus posted:you should be using lxml.
|
# ? Mar 11, 2010 03:05 |
|
From a recent conversation: IT person: the compiler does all math equations anyway
|
# ? Mar 11, 2010 06:43 |
|
LockeNess Monster posted:From a recent conversation: Depends. If he's talking about stuff like int i = 2 + MAX_FOO; and MAX_FOO is just defined as 4 or something, then yeah, the compiler does those at least that's what I'd assume he was saying
|
# ? Mar 13, 2010 04:08 |
|
Ryouga Inverse posted:Depends. If he's talking about stuff like int i = 2 + MAX_FOO; and MAX_FOO is just defined as 4 or something, then yeah, the compiler does those all math boils down to constant propagation
|
# ? Mar 13, 2010 07:11 |
|
Otto Skorzeny posted:http://peter.hates-software.com/2004/08/20/6550cefa.html Slightly late on this point, but the complete inability to disable specific warnings, or turn specific warnings into errors (i.e. with more fidelity than a global -Werror), has led to me writing a small chunk of shell script that wraps GCC, grabs the output, runs a bunch of sed scripts on it to turn some warnings into errors and eliminate other warnings entirely, and returns an appropriate error code. I'm not sure if this is a coding horror or a coding glory, since it works drat well and makes GCC quite a bit more pleasant to use . . . but it definitely makes me want to cry.
|
# ? Mar 14, 2010 02:08 |
|
ZorbaTHut posted:Slightly late on this point, but the complete inability to disable specific warnings, or turn specific warnings into errors (i.e. with more fidelity than a global -Werror), has led to me writing a small chunk of shell script that wraps GCC, grabs the output, runs a bunch of sed scripts on it to turn some warnings into errors and eliminate other warnings entirely, and returns an appropriate error code. I am not much of a *nix guy, but is there any decent alternative to gcc?
|
# ? Mar 14, 2010 03:14 |
|
Technically you can use the Intel Compiler Collection instead, though a lot of important linux packages don't really compile with it, including the kernel.
|
# ? Mar 14, 2010 03:16 |
|
UberJumper posted:I am not much of a *nix guy, but is there any decent alternative to gcc? For C or Obj-C, clang. For C++, nothing yet.
|
# ? Mar 14, 2010 03:21 |
|
|
# ? Jun 6, 2024 07:13 |
|
ZorbaTHut posted:Slightly late on this point, but the complete inability to disable specific warnings, or turn specific warnings into errors (i.e. with more fidelity than a global -Werror), has led to me writing a small chunk of shell script that wraps GCC, grabs the output, runs a bunch of sed scripts on it to turn some warnings into errors and eliminate other warnings entirely, and returns an appropriate error code. I've just got in a habit of treating all warnings as errors. Still I'd rather GCC rather then Javascript on the embedded platform I'm working on right now. 200K lines of Javascript and counting. Also, do to specific calls, you can't really test your code inside a normal browser or Javascript debugger. HFX fucked around with this message at 03:36 on Mar 14, 2010 |
# ? Mar 14, 2010 03:34 |