Am I the only C# develeoper who HATES web config files....?
-
These files are a pain to work with, are full of meaningless gibberish, and we are expected to add this guff without any support from Visual Studio... Does anyone know every section and item that a web config file can hold?
I don't see any reason why a c# developer would hate web.config or app.config as they provide the flexibility to change the configuration level things without rebuilding and redeploying the application. They are quite useful in my opinion. :)
-
web.config is child's play compared to WCF binding configuration options. X| Marc
Latest Article - Create a Dockerized Python Fiddle Web App Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802
How dare you bring up such a vile topic. :rolleyes: Gives me the heebie jeebies.
System.ItDidntWorkException: Something didn't work as expected. A guide to posting questions on CodeProject
Click this: Asking questions is a skill. Seriously, do it.
Dave Kreskowiak -
These files are a pain to work with, are full of meaningless gibberish, and we are expected to add this guff without any support from Visual Studio... Does anyone know every section and item that a web config file can hold?
Sometimes, code is easier.
#SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
-
These files are a pain to work with, are full of meaningless gibberish, and we are expected to add this guff without any support from Visual Studio... Does anyone know every section and item that a web config file can hold?
Nope! Most definitely not the only one. Though, I did just get done writing an interpreter that executes fairly simple scripts written in XML.
System.ItDidntWorkException: Something didn't work as expected. A guide to posting questions on CodeProject
Click this: Asking questions is a skill. Seriously, do it.
Dave Kreskowiak -
web.config is child's play compared to WCF binding configuration options. X| Marc
Latest Article - Create a Dockerized Python Fiddle Web App Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802
-
These files are a pain to work with, are full of meaningless gibberish, and we are expected to add this guff without any support from Visual Studio... Does anyone know every section and item that a web config file can hold?
Ok, to clarify. The web/app config files of themselves are ok. Better than Registry entries ;) Working with them, however, is a pain. There's very little intellisense, and finding out what you need to add is difficult. Yes, I am proposing something better - Visual Studio should have a GUI tool to create these files, with drop-down menus of choices, check-boxes for true/false options, etc.
-
You're going to propose a better alternative?
Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly
-
Sometimes, code is easier.
#SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
-
Nope! Most definitely not the only one. Though, I did just get done writing an interpreter that executes fairly simple scripts written in XML.
System.ItDidntWorkException: Something didn't work as expected. A guide to posting questions on CodeProject
Click this: Asking questions is a skill. Seriously, do it.
Dave Kreskowiak -
You're going to propose a better alternative?
Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly
Bring back JCL!
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill
-
Yep. It's for a wrapper we use in all of our packaged software we deploy. Since we have to support 8 different platforms, it makes packaging and deploying software a bit ... complicated. Script support makes life a whole lot easier. Using an XML-based solution made parsing and syntax checking a piece of cake and I had to bang out a solution quickly. This also makes it easy for our QA and deployment tools to parse and check too.
System.ItDidntWorkException: Something didn't work as expected. A guide to posting questions on CodeProject
Click this: Asking questions is a skill. Seriously, do it.
Dave Kreskowiak -
Yep. It's for a wrapper we use in all of our packaged software we deploy. Since we have to support 8 different platforms, it makes packaging and deploying software a bit ... complicated. Script support makes life a whole lot easier. Using an XML-based solution made parsing and syntax checking a piece of cake and I had to bang out a solution quickly. This also makes it easy for our QA and deployment tools to parse and check too.
System.ItDidntWorkException: Something didn't work as expected. A guide to posting questions on CodeProject
Click this: Asking questions is a skill. Seriously, do it.
Dave Kreskowiak -
Lucky you weren't around when we were using the Registry....
-
Try keeping up with INI files. :-\
When you are dead, you won't even know that you are dead. It's a pain only felt by others. Same thing when you are stupid.
You're telling me about INI files? I've installed OS/2....
-
You're telling me about INI files? I've installed OS/2....
-
Bring back JCL!
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill
I am too young to even know what you're talking about... :~
Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly
-
It's a lot simpler to understand than Powershell, especially for people who don't have a coding background.
System.ItDidntWorkException: Something didn't work as expected. A guide to posting questions on CodeProject
Click this: Asking questions is a skill. Seriously, do it.
Dave Kreskowiak -
TheGreatAndPowerfulOz wrote:
Sometimes, code is easier.
I see the italics. But are you saying, "forget config files, let's use hard-coded" values?" :)
Yes, for simple use cases where the config never or seldomly changes. However, if you need to configure it on-the-fly or at install time, then config files are the way to go.
#SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
-
Nope! Most definitely not the only one. Though, I did just get done writing an interpreter that executes fairly simple scripts written in XML.
System.ItDidntWorkException: Something didn't work as expected. A guide to posting questions on CodeProject
Click this: Asking questions is a skill. Seriously, do it.
Dave KreskowiakDave Kreskowiak wrote:
executes fairly simple scripts written in XML.
Why? Why not use XSLT? :rolleyes:
#SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
-
Dave Kreskowiak wrote:
executes fairly simple scripts written in XML.
Why? Why not use XSLT? :rolleyes:
#SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
Because writing the XSD was bad enough! :-D
System.ItDidntWorkException: Something didn't work as expected. A guide to posting questions on CodeProject
Click this: Asking questions is a skill. Seriously, do it.
Dave Kreskowiak