Tuesday, April 1, 2008

When not to use shell scripts

· Resource-intensive tasks, especially where speed is a factor (sorting, hashing,
etc.)Procedures involving heavy-duty math operations, especially floating
point arithmetic, arbitraryprecision calculations, or complex numbers
(use C++ or FORTRAN instead)

· Cross-platform portability required (use C or Java instead) Complex applications, where structured programming is a necessity (need type-checking of variables, function prototypes, etc.)

· Project consists of subcomponents with interlocking dependencies Extensive file operations required (Bash is limited to serial file access, and that only in a particularly clumsy and inefficient line-by-line fashion)

· Need native support for multi-dimensional arrays
· Need data structures, such as linked lists or trees
· Need to generate or manipulate graphics or GUIs
· Need direct access to system hardware
· Need port or socket I/O
· Need to use libraries or interface with legacy code

6 comments:

  1. You actually make it seem so easy with your presentation but I find this matter
    to be actually something that I think I would never understand.

    It seems too complex and very broad for me. I’m looking forward for your next post,
    I’ll try to get the hang of it! ... My Web : Tips Memilih Jasa Penyewaan Truk Terpercaya di Indonesia

    ReplyDelete
  2. Hallo,


    Gasping at your brilliance! Thanks a tonne for sharing all that content. Can’t stop reading. Honestly!


    I'm a first time user of Python, but I have c++/VB.Net experience. I absolutely dread Python's syntax, but I need to learn it.


    What is wrong with my implementation
    of this switch? Instead of only calling the function of the matching string, it calls all 3.
    Python Code: (Double-click to select all)
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21 def f_3OAK():
    print("Hello1.")
    return False

    def f_4OAK():
    print("Hello2.")
    return False

    def f_5OAK():
    print("Hello3.")
    return False

    def case(s_Input): #My definition of a Case Switch.
    return {
    '3OAK': f_3OAK(),
    '4OAK': f_4OAK(),
    '5OAK': f_5OAK()
    }[s_Input]

    while True:
    case(input("\nPlease enter the win you wish to search for: "))

    Awesome! Thanks for putting this all in one place. Very useful!


    Merci
    Ajeeth Kapoor

    ReplyDelete
  3. I ‘d mention that most of us visitors are endowed to exist in a fabulous place with very many wonderful individuals with very helpful things.
    Python Training in Bangalore

    ReplyDelete
  4. Thank you for sharing wonderful information with us to get some idea about that content
    Aws Training in Chennai

    ReplyDelete
  5. You need to kill time you need entertainment. Refer to our website. Hope you get the most comfort.
    driving directions

    ReplyDelete