How do you decide what to use: UDF or Custom Tag?
If you feel you need to have lots of arguments, consider creating a CT instead.
CT are significantly more powerful and flexible than custom functions. Try to use UDFs for simple matters... Use CT and Components for more involved processes, especially those you can think of as discrete actions rather than simple "massaging"
Okay, but how are you usually making decisions? Interesting to know real-life practice and examples.
For me it happens when a function has many not-required arguments, so I have to call them myFunc(arg1="foo", arg2="bar"). Sometimes
<cfmodule> syntax simply becomes more readable, but not always.
Other reason is that I don't like long (say, more than 2 screens of code) UDFs.
But all these thoughts are very subjective, that's why I'm interested in reading other people opinions. Maybe there's better rules for that?
Thanks in advance.
What diagramming technique(s) do you use while programming to help you or others understand your program or design. I am not talking about a person's favorite tool, though a good tool probable helps a
How do you use the <p:poll/> tag without doing a full page refresh? I have this code below where I am telling the tag to only update the messages id but it is updating the entire center layoutPa
I have a long standing program with the FAA that was running great until the FAA started deploying Dell GX-760 desktops. The program is a graphical replay of air traffic. I use the QueryPerformanceFre
I have a JSP 2.0 file containing calls to a custom tag that needs to know what bundle is currently in use on the page, so it can look up some resources. The custom tag is written in Java. The bundle c
What free site(s) and resources do you use to advance your ASP.NET knowledge? Other than this one, of course. I mean, we always google for answers to daily problems with work or our personal projects,
I'm trying to figure out how to decide when to use NSDictionary or NSCoder/NSCoding? It seems that for general property lists and such that NSDictionary is the easy way to go that generates XML files
I'm trying to understand how to use the jQuery address plugin for handling deep linking with ajax. But the documentation is very poor and I cant find any good tutorials explaining what is going on. I
I'm facing developing a new web app in the future and I'm wondering how to decide what framework to use. I've settled on Python as my language of choice. But there are still may frameworks to choose f
I just made a custom post type. How do I display the Tag panel on the sidebar same as what the Post post type has?
I am new to MEF and experimenting with ExportFactory. Can I use ExportFactory to create a list based on user insertion of objects? A sample would be something similar to what is shown below. I am prob
How do I find out what methods an object has, for example XMLHttpRequest?
I downloaded Squeak, the Image file, and the Sources file, but I can't figure out how to write Smalltalk code. Is there something obvious I'm missing? Is Squeak even the right IDE for serious Smalltal
In the Ruby API I notice a lot of methods are aliased. For instance to iterate over the lines in a String I can call str.lines or str.each_line. How do you decide which one to use? Are some alias name
Pros. and cons? how long do you use it? What about jambi?
Do you use a code profiler? if so, Why? What's your favorite? If not, is there a particular reason you don't?
I have a site I'm working on and it uses 'aside' tags, which I'm not getting IE8 to be able to read no matter what I try, even with an HTML5 Shiv. So, I'm wondering, how would you replace existing tag
How can I duplicate the #DvRefer element with its contents when the user clicks on the #Duplicate button? <div id='DvRefer'> <div style=float: right; margin-right: 5px; margin-top: 8px;>
I understand that I can address a ID or a class such as: <img id=htmlTag> with $(#htmlTag).function(); or <img class=htmlTag> with $(.htmlTag).function(); ... but how do I addr
I am using a Template to Generate HTML Tag Attributes in Meteor, but is seems to be broken. I can't put a template inside an HTML tag in meteor and I want to know why. I'm using meteor-router for rou
I have always used the agile Feature Driven Development process for developing software. What does everyone else use, and why do you prefer it? I prefer FDD because that's what I started with fresh ou
If i want to use a public license, is it as easy as copying the license and putting it in my source code/making a new file, or is there something special i need to do to use it?
I've been trying out NDepend, been reading a few blogposts about it and even heard a podcast. I think that NDepend might be a really useful tool, but I still don't see where I would use it. How do yo
How do you disable Autocomplete in the major browsers for a specific input (or form field)?
I'm new in the android developing. I need to write some simple application - and i need to decide what will be the target version. I don't know how to decide this - because i want to support the most
This is the same question as: Explicit Element Closing Tags with System.Xml.Linq Namespace but I use Net 4.0 and the answers do not work anymore. The problem is I save tags with no values really, and
When we serialize an enum from C# to SQL Server we use a NCHAR(3) datatype with mnemonic values for each value of the enum. That way we can easily read a SELECT qry. How do you save enum to your datab
In MS Visual studio I could make my own project and then save it as a custom template to use next time. Does anybody know how to do this in code blocks?
In an environment with multiple IPv4 addresses, how do I choose which one to listen on? I've had mixed luck with the following code: foreach(IPAddress addr in Dns.GetHostAddresses(Dns.GetHostName()))
I have this UDF which I use to lookup dates and return values based on the condition. Basically two(2) conditions only, either < or > the date. Also, I just use built-in Excel Functions as well
From an ASP.NET MVC perspective, what do you use jQuery for? Apart from UI flair - things like fading colours and pretty animations. Things I can immediately think of include pop-up calendars and mo
How do you force a web browser to use POST when getting a url?
What am I Doing Wrong When Trying To Center This A Tag I cannot apply the text-align property to an anchor tag, but i can apply it to paragraph, div, and other tags. My HTML code is as follows <!DO
I have just started a new job out of uni and I am learn OO PHP we have a custom framework where I work and my boss was talking about teaching me how to use JQuery with objects. I am also unsure whethe
What's the penetration of design patterns in the real world? Do you use them in your day to day job - discussing how and where to apply them with your coworkers - or do they remain more of an academic
THE PROBLEM I want to add caching to my web application. Since caching everything will kill my server and caching nothing will do the same thing, I am wondering how can I decide what is worth caching
Is there a better unit testing tool than WaTiR for Ruby web testing? Or is the defacto standard? What unit testing tools do you use?
I need to implement a custom I/O format based on ORCFile I/O format. How do I go about it? Specifically I would need a way to include the ORCFile library in my source code (which is a custom Pig impl
I have a custom control I created that has ContentPresenter defined in generic.xaml. I can successfully embed other controls into the custom control, but it appears to inherit the layout manager of th
I ma using DevExpress controls (which doesnt matter for this example). I have a lookupEdit control and I never want the EditValue_Changed event to fire. Can I use RemoveHandler to do this? If so can s
Possible Duplicate: How do I tell if a variable has a numeric value in Perl? I want to decide if a variable (value parsed from a string) is a number or not. How can I do that? Well, I guess /^[0-9]+
I want to call an external program from Python. I have used both Popen() and call() to do that. What's the difference between the two? My specific goal is to run the following command from Python. I
How do you unit test your PL/PgSQL? Which libraries/tools do you use? What percentage of your code is covered by unit tests and how do you measure it? How do you decide which modules to unit test firs
I have the need to store a list/collection/array of dynamically created objects of a certain base type in C++ (and I'm new to C++). In C# I'd use a generic collection, what do I use in C++? I know I
I am not looking to print the screen capture of the UI but a regular form like something you might fill out at the dmv. What do you use to create these forms/documents how do you merge the data into t
What is it the difference between TVF/UDF, in a DBMS context?
How do you decide on which design pattern to choose for? My approach to development projects has always been. Take down business requirement. Design the database. Decide on technology (This decision
Let's say you have a Java-based product out in the market. This old code needs to be maintained, i.e. bug fixes and small feature updates. What (open-source?) tools to you use to maintain old code? T
How do you handle exceptions in visual basic?
Using TortoiseSVN, how do you tag the code? Is the process to branch exactly the same? I know you have to just copy the code to the /tag/ folder, but how? i.e. I want to copy revision # to a tag#. Wi