02-18-2017
Naive coding...
"Naive coding."
(Apologies for any typos.)
I came across this phrase a couple of weeks ago and it has made me decide to set off a discussion.
I had never heard of it before but I did some research and discovered that I probably fall into this category.
My phrase is: "I code to work, not work to code!", so therefore I guess when viewing any of my code, pros' must think how primitive some of it looks.
So, what do you guys who code for a living think when you see some attempts of others solving problems and use _brute_force_methods_ for example to solve their coding problems when there are probably more elegant solutions?
Also what is wrong with a naive solution that works for the coder although it may not be anywhere near as fast as another method more obvious to someone else?
The plotting and drawing routines for example on AudioScope can't seem to be done any other way except by _brute_force_...
Comments......
7 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I apologise because I had pasted this question in the newbies forum first (because i am a bit of a newbie) but thought it might be better suited in here
if i have to sepearate parameters can I use this syntax especially the or part (||) and is this correct
if (6 Replies)
Discussion started by: w33man
6 Replies
2. Shell Programming and Scripting
I would like to start coding on my mac, but I'm getting an error when I attempt to execute my script
-bash : testscript: command not found
I have verified that the #! line points to the correct directory.
If you have some insight it would be greatly appreciated!
- D (1 Reply)
Discussion started by: DKNUCKLES
1 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
I am new to pro*C. I have a select statement as
select a.ename,a.sal,a.empno from emp where &n=(select count(distinct(b.sal)) from emp b where a.sal<=b.sal
for this query I have to write a pro*C program. So can you please send me the complete code. Then I will foloow the same... (1 Reply)
Discussion started by: user71408
1 Replies
4. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I have to write a program in Unix to do the following.Given a phrase like george hates john, by... (0 Replies)
Discussion started by: gizmo87
0 Replies
5. Shell Programming and Scripting
HI,
Can some one guide me how to make changes to the script below so that it can load the history of a program to IT server ?
Format of data:
YYYYMMDD065959.dsk.log
YYYYMMDD235959.dsk.log
currently both are loaded together. Need to separate them as above format.
Thanks in advance.
... (1 Reply)
Discussion started by: crazydude80
1 Replies
6. Windows & DOS: Issues & Discussions
HI,
Can some one guide me how to make changes to the script below so that it can load the history of a program to IT server ?
Format of data:
YYYYMMDD065959.dsk.log
YYYYMMDD235959.dsk.log
currently both are loaded together. Need to separate them as above format.
Thanks in advance.
... (2 Replies)
Discussion started by: crazydude80
2 Replies
7. Shell Programming and Scripting
My company has an in house instant messaging system (like WhatsApp) where users can communicate with each other. I currently have code to email me certain items from my Sparc machine running SunOS 5.10. I want what I am emailing myself to now instant message me. The team that created the messenger... (5 Replies)
Discussion started by: shorty
5 Replies
any2ps(1) General Commands Manual any2ps(1)
NAME
any2ps - Converts a file to mule internal code and then to PostScript format
SYNOPSIS
any2ps [-in coding_system] [m2ps_options] < infile > outfile
OPTIONS
Specifies the coding system (in the input file) that needs to be converted to mule *internal* code. By default, the input file is assumed
to be in mule *internal* code, which means that code conversion is not done. Specifies one or more options passed by any2ps to the m2ps
program. Refer to m2ps(1) for a description of these options.
OPERANDS
Specifies the input file to be converted to *internal* code. Specifies the output PostScript file.
DESCRIPTION
The any2ps command is an alternative to running the coco and m2ps programs separately. Like the programs that it invokes, any2ps is
derived from software supplied by the Free Software Foundation.
The any2ps program performs the following operations: Invokes coco to convert the input file from the specified coding system to Mule
internal code (called *internal* code) Passes the converted result, along with the specified m2ps options, to m2ps for processing
The m2ps program then generates the PostScript program file to be printed.
SEE ALSO
Commands: coco(1), m2ps(1), mule(1)
any2ps(1)