273
votes
Accepted
Are bad programming practices typical within the software industry?
The principles that you cited in your question are just that... principles. They are not mandates, laws or orders.
While the people who came up with these principles are very smart, they are not ...
52
votes
Are bad programming practices typical within the software industry?
It is not uncommon. One thing to realize is that the software industry is incredibly diverse. Some companies are cutting edge. Leading universities and innovative software companies (even some labs in ...
21
votes
Accepted
Why would anyone use multipart/form-data for mixed data and file transfers?
multipart/form-data is a construct created for HTML forms. As you've discovered the positive of multipart/form-data is the transfer size is closer to the size of the object being transferred--where in ...
17
votes
Are bad programming practices typical within the software industry?
They use C# .Net Webforms and do almost everything within the Code
Behind with very little External Classes
There's your explanation right there. If you aren't aware, out-of-the-box Web Forms code ...
12
votes
Are bad programming practices typical within the software industry?
How common is this within the software industry?
Very common. About the same commonness as having a plumber destroy your plumbing, a carpenter delivering junk, or a cheap tailor making a bad-fitting ...
11
votes
Are bad programming practices typical within the software industry?
I think that in Spain is a constant because when a developer passes many years in a company he (or she) is usually promoted to more management areas like analysis and project management. As a result ...
9
votes
How Common/Acceptable is it for a .NET developer to abstain from WebForms as a rule?
My observation is that WebForms is on the decline. There is a good reason for that. Having used WebForms extensively in the past, it's difficult to do something outside the box. In addition to the ...
7
votes
Accepted
WebForms, JQuery and the DRY principle
A colleague I'm working with insists this is WET code and a violation of the DRY principle since each page has to load JQuery individually.
No.
The jQuery library code is cached by the browser. If ...
7
votes
Are bad programming practices typical within the software industry?
Some of the "best practices" that you learn in school aren't practical or cost-effective on real-world projects. One of the biggest changes I noticed was in formatting and comments. Most of my ...
4
votes
Accepted
Reinventing the Wheel: C# Webforms Content Management System
In general, storing any kind of data directly into your filesystem ends up being very crude and primitive because the filesystem itself has a limited set of data management tools (whatever the O/S ...
3
votes
Are bad programming practices typical within the software industry?
Some of the bad programming practices result from having to work with legacy software that first started development decades ago. If there is a huge complex piece of software, rewriting everything ...
2
votes
Accepted
The best way of handing a form post as an API type of submission
The main issue here is that data coming from the client cannot be trusted. So you need to be concerned about replay attacks and people tampering your messages.
Tamper-protection
I have actually ...
2
votes
What should be the approach for form builder plugin for existing web form application?
Adding controls dynamically in Webforms is fairly easy
https://msdn.microsoft.com/en-us/library/kyt0fzt1.aspx
However, you'll need to build a separate drag-and drop system adding fake controls if ...
2
votes
Reinventing the Wheel: C# Webforms Content Management System
"Reinventing the wheel" is right!!!! and why oh why webforms??!??
Spare yourself the pain and use something off the shelf. Sharepoint? (shudder)
Just write a couple of micro services to do the auth ...
2
votes
Accepted
Abuse of 302 Temporary Redirect
Post, redirect, get is a standard pattern used to avoid duplicate form submissions. It's a bit unclear to me why you consider this abuse. The redirect is temporary as a permanent redirect can be ...
2
votes
Are bad programming practices typical within the software industry?
I think it's important not to just tell right from wrong but to know reasons behind every right and wrong. When you know reasons you can predict consequences. Why use this or that principle not ...
2
votes
When to update a database from changes in a "live" HTML form?
You cannot save on every change: that puts a strain your resources and might end up with incomplete data. If you need validations, you'll also need to run it after every change, your first option is ...
2
votes
Identifying states when using state machine to validate a form field
I think you are overthinking this. If you are trying to express the authentication flow as a state machine then it can obviously have many odd states depending on the flow, "too many password ...
2
votes
Accepted
Identifying Risks/Gotchas When Using Static
When you use static initialization, you give up any explicit control over the order of initialization. If things work, it's for one of the following reasons:
the static initialization only involves ...
1
vote
Identifying states when using state machine to validate a form field
In general
Before jumping into a complex state-machine design, you need to first separate concerns at stake.
You can think of each of these separate concerns as having a separate state machines. It ...
1
vote
Business forms automation options Decision
Create two spikes for the same form - one with each technology.
That will allow you to gather experience with the approaches, hopefully enough to decide which one will suit your organization most. ...
1
vote
Accepted
Queue management project - Recommendations
Design issue
In reality you have two very different booking processes with different rules:
Online, it’s fixed hour
On site, it’s relative order (first arrived, first served)
Mixing both in a ...
1
vote
When to update a database from changes in a "live" HTML form?
Your problem description is pretty thin, so it's hard to tell which approach works best for your users. Since you mentioned configuration information, I would assume that user input has to be ...
1
vote
Why would anyone use multipart/form-data for mixed data and file transfers?
Realize that multipart/form-data was standardized by an RFC in 1995. (For comparison, this is over a decade earlier than the first RFC for JSON.)
The priorities were substantially different than they ...
1
vote
Mix Web Forms and ASP.NET MVC
I've done this before for a product that we were trying to migrate from Web Forms to MVC and found it worked pretty well. Some notes from my experience:
I used the technique in this blog post to use ...
1
vote
Mix Web Forms and ASP.NET MVC
While it is possible to use the two in the same project, I'd advise against it for the purpose of a rewrite.
Instead, I'd build a facade that handles all the incoming traffic and forwards it to your ...
1
vote
How can I publish a Visual Studio Web Application when not all files are in the project?
Write a shell script which compiles your project in Release mode, copies exactly the files you like to deploy into a new folder and finally create the zip file.
1
vote
Accepted
How can I cleanly handle a several permutations of Resource Request, (Optional) Login Control, Resource Result?
The problem I'm trying to solve is how to give the request result the
data more cleanly; the login form already has the data, but that's why
it's complicated; the data is being ferried from the ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
webforms × 58asp.net × 33
c# × 12
asp.net-mvc × 9
php × 6
design-patterns × 5
.net × 5
web-development × 4
mvc × 4
html × 4
design × 3
architecture × 3
javascript × 3
web-applications × 3
entity-framework × 3
database × 2
web-api × 2
workflows × 2
jquery × 2
html5 × 2
login × 2
rewrite × 2
java × 1
object-oriented × 1
programming-practices × 1