15,882,055 members
Home / Discussions / Algorithms

# Algorithms

 Re: Aide pour un programme langage c Dave Kreskowiak7-Oct-22 12:53 Dave Kreskowiak 7-Oct-22 12:53
 Re: Aide pour un programme langage c Gerry Schmitz11-Nov-22 6:49 Gerry Schmitz 11-Nov-22 6:49
 Re: Aide pour un programme langage c Eddy Vluggen11-Nov-22 13:34 Eddy Vluggen 11-Nov-22 13:34
 Re: Aide pour un programme langage c trønderen12-Nov-22 7:44 trønderen 12-Nov-22 7:44
 Re: Aide pour un programme langage c Gerry Schmitz12-Nov-22 8:58 Gerry Schmitz 12-Nov-22 8:58
 Re: Aide pour un programme langage c Eddy Vluggen12-Nov-22 10:56 Eddy Vluggen 12-Nov-22 10:56
 Re: Aide pour un programme langage c Gerry Schmitz13-Nov-22 10:21 Gerry Schmitz 13-Nov-22 10:21
 Re: Aide pour un programme langage c trønderen13-Nov-22 13:50 trønderen 13-Nov-22 13:50
 Gerry Schmitz wrote:Some languages do not have words for concepts that exist in other languagesThat is certainly not limited to programming languages! It is a general problem for any translator of natural languages. From an end user point of view, you can expect the user to have the required terms in his language. If English (i.e. the programming language) lacks the ability to express the problem concepts, then that is a problem belonging to the programming language, not to the problem solution as experienced by the customer / end user. You simply cannot go to a custormer and say: Sorry, mate, your suggested solution is perfectly fine, but we cannot use it, because the English language doesn't have words for those concepts! We have to solve the problem in a different way! When programming in a high level language, you will almost always make use of concepts that do not exist in machine code. Even a 'high level machine code', such as .net CIL, lacks a lot of higher concepts. Yet you can express a problem solution that can be handled in CIL. You can even express problem solutions in lots of different languages, and they can all be handled by CIL! Or moving yet another level up: With the GNU Compiler Collection, each source language - which on the surface may be quite different from other source languages - are parsed down to a parse tree, a format common to all languages. And then: I never was considering any "universal language interpreter". You need not lump everything from lisp to Algol68 to APL to Erlang into one single structure to get away from programming being forced to be done in English. Different languages have different uses; that should be maintained. It is sufficient that the standard representation of a language such as C# used abstract tokens: Rather than 'w', 'h', 'i', 'l', 'e' in a 7-bit-ASCII-file (you still see that a lot of places!), the representation is [while loop], which can be displayed in various languages. A variable reference is not coded as 't', 'o', 't', 'a', 'l', '_', 's', 'u', 'm', but as [variable 277], which may be assigned the external identifier 'total_sum' for English, and 'totalbeløp' for Norwegian presentation. I frequently get the feeling that we programmers actively want our code to be unintelligible for the customer (and for that sake, for other programmers of a different clan), so that we maintain full control over it. We do not ask the customer for his opinion about how the problem can be solved; at most we present some top-level box diagrams of how we will solve the problem. We most certainly don't want to discuss algorithms and code structures with the customer and future users! I think we ought to. I think learning how the customer approaches the problem will improve our code significantly. It could improve the user interface tremendously! Then the customer and end user must understand the solution. It is far from enough that we, the programmers, understand it! You can use e.g. ER for modelling the user's data (it is so well suited for communicating with end users that it is a pity it has essentially been totally abandoned today). You can describe your solution methods in pseudocode based on the customer / end user's native language. The problem is that most programmers either refuse to do so, calling it doing the work twice (i.e. pseudocoding and programming), or it is just sort of an act of courtesy: When the customer meeting is over, all the pseudocode is thrown away and the programmers do it how they see it fit, not the way the customer and pseudocode indicated. To me, communicating with the customer / end user is equally or more important than communicating with workmates. And fact is that even when I discuss program code with some other Norwegian workmate, we speak in Norwegian. Usually, we will even use Norwegian words for coding terms such as 'metode', 'variabel', 'løkke' and 'unntak' (exception). If we could write down what we say, it could even be possible to discuss the code with a customer who is not fluent in English!
 Re: Aide pour un programme langage c jschell14-Nov-22 6:06 jschell 14-Nov-22 6:06
 Re: Aide pour un programme langage c trønderen14-Nov-22 9:57 trønderen 14-Nov-22 9:57
 Re: Aide pour un programme langage c jschell28-Nov-22 10:17 jschell 28-Nov-22 10:17
 Re: Aide pour un programme langage c Gerry Schmitz15-Nov-22 7:48 Gerry Schmitz 15-Nov-22 7:48
 Re: Aide pour un programme langage c jschell28-Nov-22 10:20 jschell 28-Nov-22 10:20
 Re: Aide pour un programme langage c Gerry Schmitz28-Nov-22 16:59 Gerry Schmitz 28-Nov-22 16:59
 Re: Aide pour un programme langage c jschell29-Nov-22 6:12 jschell 29-Nov-22 6:12
 Re: Aide pour un programme langage c Gerry Schmitz29-Nov-22 7:12 Gerry Schmitz 29-Nov-22 7:12
 Re: Aide pour un programme langage c jschell30-Nov-22 6:42 jschell 30-Nov-22 6:42
 Re: Aide pour un programme langage c Eddy Vluggen12-Nov-22 10:53 Eddy Vluggen 12-Nov-22 10:53
 Re: Aide pour un programme langage c trønderen13-Nov-22 13:56 trønderen 13-Nov-22 13:56
 Re: Aide pour un programme langage c Gerry Schmitz15-Nov-22 8:03 Gerry Schmitz 15-Nov-22 8:03
 Re: Aide pour un programme langage c Eddy Vluggen12-Nov-22 11:04 Eddy Vluggen 12-Nov-22 11:04
 Re: Aide pour un programme langage c trønderen13-Nov-22 14:03 trønderen 13-Nov-22 14:03
 Re: Aide pour un programme langage c Gerry Schmitz15-Nov-22 8:09 Gerry Schmitz 15-Nov-22 8:09
 Re: Aide pour un programme langage c Richard Deeming14-Nov-22 22:40 Richard Deeming 14-Nov-22 22:40
 Re: Aide pour un programme langage c jschell14-Nov-22 5:46 jschell 14-Nov-22 5:46
 Last Visit: 31-Dec-99 18:00     Last Update: 20-Apr-24 1:31 Refresh ᐊ Prev1234567891011 Next ᐅ

General    News    Suggestion    Question    Bug    Answer    Joke    Praise    Rant    Admin

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.