Sponsored Content
The Lounge What is on Your Mind? Can anybody learn how to code? Post 302905217 by bakunin on Tuesday 10th of June 2014 10:14:44 AM
Old 06-10-2014
Quote:
Originally Posted by rbatte1
banunkin, Do you mean the "If those foreigners don't understand, just shout louder" brigade?
Not exactly. What i mean is the "i want everything in a foreign land to be exactly like i am used to at home" - which begs the question "why go to a foreign land in first place". I live in Frankfurt/Main right now. At the corner there is a nice little italian restaurant i like to visit for dinner. The restaurant is run by a married couple: she - doing the service - is speaking some odd mixture of german and italian, which passes for "cute". He (the cook) is speaking no german at all. They have 3 daughters, all married to italians, they talk only in italian, they never spend their vacation anywhere else than Italy (precisely, they say "at home"), albeit already living for 25 years in Germany, etc..

I couldn't spend my life that way. I know not a single word of japanese, but if i would be forced to live in Japan, I'd try to speak japanese as fluently as possible. I would not dine exclusively in austrian restaurants and i would clothe myself like the japanese people do. If this includes kimonoes or something else foreign to me, then so be it.

It is the same with programming languages. For instance: of course it is possible to use C-like pointer structures in PASCAL - it is just cumbersome, inefficient and PASCAL is not really made to use memory like that. Of course it is possible to program around FORTRAN math functions (in fact i had to maintain such a program once - i still have nightmares from that) in a bid to outperform them: it is highly improbably, though, to succeed and there is a good chance to just produce tons of unreadable, unmaintainable and outright shitty code.

There are some tenets every programmer, regardless of his toolset should observe: simplicity, encapsulation, proper indentation, well-defined interfaces, .... But then, there are some innate strategies, structures, ways to deal with certain problems special to every programming language. One can argue if object orientation is a good programming paradigma or not - but if you think it is not, then you should not use Oberon or Modula 2 but stick to PASCAL, even if it is not well suited for large software projects. But I'd prefer to debug a well-written PASCAL-program over a poorly-written Oberon-program.

bakunin
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Where to Learn About HP-UX

can someone give me the link to any site that deals on HP-UX system administration?? Please do not refer me to buy or borrow any books, i just need a free site to learn some quick info from (1 Reply)
Discussion started by: TRUEST
1 Replies

2. UNIX for Dummies Questions & Answers

I want to learn!

Hiya, yes im new to all of this! But want to learn how to use Unix etc, iv been thinking about doin a course but desided im better off learning by my self with help from the people who really no what there doin...you guys! I can install Linux, like redhat, mandrake, susie server edition and so... (5 Replies)
Discussion started by: epic.admin
5 Replies

3. Programming

Learn C or C++

Hi, Apologies if this question has been asked before. I would like to know which language is better to learn in terms of programming in unix? is C dying out and being replaced by C++ or is it a combination of the 2 or just mainly C? Thanks C19 (2 Replies)
Discussion started by: c19h28O2
2 Replies

4. UNIX for Dummies Questions & Answers

How to learn UNIX?

Hey everybody, I am a 25 year old web programmer in Malaysia. I am not hapy with my line of work and I want to do something more. I know asp.net,asp,php and jsp.But they dont really land me in a good promising job wich I realy love. I am more interested in Oracle DBMS. now to be a DBA in Oracle... (7 Replies)
Discussion started by: shounak
7 Replies

5. UNIX for Dummies Questions & Answers

I Want to Learn HP-UX!

What's the best free system to learn HP-UX on? The closest system, hardware requirements and installation instructions. I'm a newbie but determined. Any tips would be great. (6 Replies)
Discussion started by: networkguy
6 Replies

6. Red Hat

Want to learn RedHat

I Want to learn Red hat Linux at free of cost, can any one help me, I am zero in unix. (7 Replies)
Discussion started by: Mustaq
7 Replies

7. UNIX for Dummies Questions & Answers

Best way to learn UNIX

Hi, I am the ultimate noob when it comes to UNIX. Apart from a few basic thing like ls -l and mkdir (and that really is about as good as it gets) I know absolutely nothing about UNIX and I want to learn it and get better! I'm sure like with most things, just getting stuck in and trying... (3 Replies)
Discussion started by: thebdj
3 Replies

8. UNIX for Dummies Questions & Answers

Want to learn

Hi I know only basics of UNIX and i want to know that how can i become a good troubleshooter in unix adminstartion or shell scripting.... i am just a newbie to Unix ..i do not have programming skills as well. Your suggestions are welecomed. (1 Reply)
Discussion started by: nattynitin
1 Replies

9. What is on Your Mind?

You too can learn how to code in a day! ;oO

I am not passing a comment, just waiting to read yours... ;oD Decoded: learn to write computer code in a day - Telegraph Decoded | Technology made human | On Demand, Enterprise, Masterclass (6 Replies)
Discussion started by: wisecracker
6 Replies
GETPRIORITY(2)						      BSD System Calls Manual						    GETPRIORITY(2)

NAME
getpriority, setpriority -- get/set program scheduling priority SYNOPSIS
#include <sys/time.h> #include <sys/resource.h> int getpriority(int which, int who); int setpriority(int which, int who, int prio); DESCRIPTION
The scheduling priority of the process, process group, or user, as indicated by which and who is obtained with the getpriority() call and set with the setpriority() call. Which is one of PRIO_PROCESS, PRIO_PGRP, or PRIO_USER, and who is interpreted relative to which (a process identifier for PRIO_PROCESS, process group identifier for PRIO_PGRP, and a user ID for PRIO_USER). A zero value of who denotes the current process, process group, or user. Prio is a value in the range -20 to 20. The default priority is 0; lower priorities cause more favorable scheduling. The getpriority() call returns the highest priority (lowest numerical value) enjoyed by any of the specified processes. The setpriority() call sets the priorities of all of the specified processes to the specified value. Only the super-user may lower priorities. RETURN VALUES
Since getpriority() can legitimately return the value -1, it is necessary to clear the external variable errno prior to the call, then check it afterward to determine if a -1 is an error or a legitimate value. The setpriority() call returns 0 if there is no error, or -1 if there is. ERRORS
Getpriority() and setpriority() will fail if: [ESRCH] No process was located using the which and who values specified. [EINVAL] Which was not one of PRIO_PROCESS, PRIO_PGRP, or PRIO_USER. In addition to the errors indicated above, setpriority() will fail if: [EPERM] A process was located, but neither its effective nor real user ID matched the effective user ID of the caller. [EACCES] A non super-user attempted to lower a process priority. SEE ALSO
nice(1), fork(2), renice(8) HISTORY
The getpriority() function call appeared in 4.2BSD. 4th Berkeley Distribution June 4, 1993 4th Berkeley Distribution
All times are GMT -4. The time now is 10:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy