What does it mean to do or define something “programmatically”?

Program. (programming)

I have never used it, but I see it in questions a lot, that is, "How to programmatically determine [insert task here]". Firefox immediately tells me that none of these two words is real (at least it does not recognize them). I also never saw them used anywhere, but here.

1) What does it mean to do or define something “programmatically”?

2) Why are so many people asking how to do / define something "programmatically"? Isn't it supposed that if you ask how to do something in the programming help panel, you ask how to do it "programmatically"?

3) Why have I never seen the word “programmatically” anywhere else?

+34
computer science terminology
Feb 11 '09 at 5:19
source share
17 answers

Doing something programmatically usually means that you can do it using the source code, rather than through direct user interaction or a macro.

For example, consider the problem of resizing columns in Excel.

You can do this manually by double-clicking between the columns, but this requires user interaction.

You can use excel macro photography, but it's quite complicated.

Or you could use VBA to write code that would do this.

I doubt it is really in the dictionary.

+57
Feb 11 '09 at 5:22
source share

Software is the real word . From another random dictionary: Compact OED online .

+17
Feb 11 '09 at 5:22
source share

In .NET, “programmatically” usually means doing something in the code, not in the template, markup, configuration, or XML.

For example, on an ASP.NET page, you can add a text box in the ASPX markup:

<asp:TextBox runat="server" /> 

Or you can add control programmatically to ASPX.cs code:

 this.Controls.Add(new TextBox()); 

Similarly, you can change the configuration manually by editing the xml in the App.config file, or you can write code that will programmatically modify the configuration.

+9
Feb 11 '09 at 7:00
source share

http://www.merriam-webster.com/dictionary/programmatically

"Programmatically" is an adverb. He describes the verb. In this case, this means that something will be done by the program, and not manually, by a person.

+6
Feb 11 '09 at 7:04
source share
  • To execute the code that does this. Earlier code was written.
  • Probably, in most cases, this is something that is relatively easy for a person to do, with the task of automating it. The assumption that you are describing may or may not apply.
  • I have no idea. I have seen this many times and in many cases. By the way, I categorically deny the idea that the word should be on someone, somewhere, to be a "real word", especially when it is a clear construction of known roots, as in the case of "programmatically".
+5
Feb 11 '09 at 5:28
source share

1) What does it mean to do or define something “programmatically”?

I assume from your second question that you already know the answer to this;). *

2) Why are so many people asking how to do / define something "programmatically"? Is it not supposed that if you ask how to do something on the programming help panel, you ask how to do it "programmatically"?

Yes, but using the word does not harm!

3) Why have I never seen the word “programmatically” anywhere else?

You don't look complicated enough! http://www.google.com/search?q=programmatically

+2
Feb 11 '09 at 6:14
source share
  • To execute it with a program / code. Example: eating a sandwich programmatically would mean that you are writing a program that eats a sandwich.
  • I agree.
+1
Feb 11 '09 at 5:22
source share

I think that people (including me) use the term “programmatically” to mean a function that is executed in the source code (like C #), as opposed to declaratively (like XAML).

+1
Feb 11 '09 at 5:23
source share
  • do something programmatically, do something by executing program code
  • DO NOT ACCEPT. It does A ** U and ME :) The fact is that many people can ask questions that are not related to programming (for example, "how to overwrite a read-only file in Linux?")
  • This is usually understood from the context if everything is done programmatically or not. Therefore, the word is often redundant and not used. Here people want to make sure that they are understood, and they have not answered their question incorrectly (“how can I programmatically overwrite a read-only file on Linux?” Will provoke a different answer than the one in 2.)
+1
Feb 11 '09 at 6:53
source share

The way I use “programmatically” and sometimes “continue” is best described using the following code:

 int[] arr = new int[] { 1, 2, 3, 4, 5 }; 

do the same programmatically:

 int[] arr = new int[5]; for (int i = 1; i < 6; i++) arr[i] = i + 1; 

Now, while a very limited example, what would you choose if the array was hundreds or thousands of elements. In real situations, there are usually pros and cons that are best used simultaneously, but for complex operations, as a rule, it is more and more effective if they are performed "programmatically".

Perhaps the best example of this is the meaning alt pi . You can simply enter the number 3.141592653589793238, but it would be very difficult to enter it if you needed alt pi accurate to 100 decimal places. Instead, you would use a function, perhaps something like alt function .

** Wikipedia link http://en.wikipedia.org/wiki/Pi *

+1
Feb 11 '09 at 8:15
source share

In the case of iPhone development, software basically means not using Interface Builder.

+1
Aug 17 '09 at 19:00
source share

non-software:

How to configure WCF to use x509 certificates over the Internet?

Programmatic: Programmatically and globally adding a custom WCF client endpoint behavior extension

Basically the same question, answered in different ways, with pluses and minuses for each.

+1
Apr 21 '10 at 22:39
source share

As others have said, this means asking for a solution to a particular problem in the form of code. This is especially true in the modern era, when graphical interfaces are everywhere, and operating systems are big, stretched things with countless functions. It can be incredibly easy to find out a specific piece of information or perform a specific action manually as a person, but how to do it because the code is less obvious and requires research.

For example, consider how to delete a file and move it to the trash in windows. In manual mode, this is trivial, select the file in Explorer and click "Delete." Or drag the file to the trash. In code, it is not remotely intuitive how you perform this action.

0
Feb 11 '09 at 5:46
source share

Developers usually try to state the question as accurately as possible. They are trying to indicate the environment, language, everything that they already know. The more accurate the question, the more reliable the answer. But when they cannot specify anything (for example, they just want to know if there is an API call for something), they just ask how to do it programmatically.

0
Feb 11 '09 at 6:10
source share

I mainly use this word in the context of davogenes and ash .

However, I would like to add that in this case the synonym will be “dynamically” because you can add controls at runtime and not at design time.

0
Feb 11 '09 at 8:56
source share

For me, this is the difference between working in a designer or in code (runtime).

You can do many things in designmode, set the data source for the datagrid and compose the columns and set the colors and much more without using a single line of code. If I want to know how to do this in code instead of installing it in development mode, I would ask how to do it “programmatically”.

My 5 cents.

0
Feb 11 '09 at 9:23
source share



All Articles