Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

Great programmers

Name: Anonymous 2011-09-18 7:43

The difference between a tolerable programmer and a great programmer is not how many programming languages they know, and it's not whether they prefer Python or Java or anything that isn't Lisp. It's whether they can communicate their ideas. By persuading other people, they get leverage. By writing clear comments and technical specs, they let other programmers understand their code, which means other programmers can use and work with their code instead of rewriting it. Absent this, their code is worthless.

Name: tdavis 2011-09-18 7:48

One skill I haven't heard mentioned very often is being able to name things.  Knowing standard names is probably very good.  That's a weakness of mine.  I gained some wisdom -- sometimes, you're better off inventing brand-new terminology instead of using misleading old terminology which isn't accurate.

Name: FrozenVoid 2011-09-18 7:58

>By writing clear comments and technical specs, they let other programmers understand their code, which means other programmers can use and work with their code instead of rewriting it. Absent this, their code is worthless.

Understanding LISP code with comments or without them is the same. I just see a huge seizure-inducing parens field and random words. Plus i have allergy to any form of recursive functions. Its like spaghetti code, but instead of following clear paths of GOTOs you have to decipher the deranged state of the programmer who write the recursive pile of LISP functions calling each other and where do they start? There is no clear, imperative background, since everything is dynamic and often self-modifying. Reading code with macros is even harder.


orbis terrarum delenda est

Name: Anonymous 2011-09-18 8:46

>>3
Great post. Look thick. Solid. Tight. Keep us all updated on your  continued progress with any new ideas or insights. Show us what  you got man. Wanna see how freakin' smart, enlightened, thick and tight you  can get. Thanks for the motivation.

Name: Anonymous 2011-09-18 9:54

>>1
this is so true, I have to admit i don't write good comments but also i cannot read other people source code, unless is trivial it just gets over me

Name: Anonymous 2011-09-18 10:14

bullshit

Name: Anonymous 2011-09-18 10:18

>>3
That's why you have to comment the functions.

Name: Anonymous 2011-09-18 11:18

>>3
I agree about the parentheses, but if you gave it an actual syntax, I would argue that it would be the most readable language ever. Recursion is a great way of representing things, though most of the time you don't even use it because you have higher-order functions. All in all, I have bitch tits.

Name: >>8 2011-09-18 11:28

fuck, never mind, i didn't notice >>3's name and signature. fuck

Name: kodak_gallery_programmer !!kCq+A64Losi56ze 2011-09-18 12:11

>>1

I don't know what's more idiotic. You or that braindead comment. Again, you have no future as a computer programmer. And again, go clean another toilet.

Name: Anonymous 2011-09-18 12:17

>>10
kill yourself you homosexual midget

Name: Anonymous 2011-09-18 14:33

>>1
unless they write everything themselves

like Notch.

Name: Anonymous 2011-09-18 15:29

>>10
and this is what great personalities like Xarn or Frozen_Void got replaced with? some self-proclaimed ``programmer''?!

I'm finally disappointed.

Name: Anonymous 2011-09-18 16:53

Recursion is a dog.

Name: kodak_gallery_programmer !!kCq+A64Losi56ze 2011-09-18 20:28

>>13
I've written a shit load of code for Kodak you uneducated bitch. Now go run along you mental midget.

Name: Anonymous 2011-09-18 20:35

First I thought it was some kind of joke. I thought it was irony, something along the lines of ``Bonzi_buddy_programmer'' or ``Myspace_programmer''. But you're proud of that Bangalore Enterprise Level shite. Aren't you?

Name: Anonymous 2011-09-18 20:37

>>15
You look like a plumber, who is proud about cleaning of shit load of shit from a toilet. And no, programming is no more intelligent than plubming: plumber can build turing complete system of pipes.

Name: Anonymous 2011-09-18 20:40

>>17
But yet you still can't get a programming job.

Name: Anonymous 2011-09-18 20:42

>>18
Cuz I'm above your crap.

Name: Anonymous 2011-09-18 20:45

>>14
I never did read SICP or program in Scheme, is this tail-recursive?

#include <stdlib.h>
#include <stdio.h>

#define lambda(type, ...)            \
  ({                        \
    type (*__lambda_fptr)(__VA_ARGS__);        \
    type __lambda(__VA_ARGS__)

#define lambda_end                \
      __lambda_fptr = __lambda;            \
  })

typedef unsigned long long int fact_t;
#define PRIFACT_T "%llu\n"
typedef fact_t (*factfun) (fact_t, fact_t);

fact_t factorial (fact_t n) {
  factfun lp = lambda (fact_t, fact_t m, fact_t acc) {
    return m ? lp (m-1, m*acc) : acc;
  } lambda_end;

  return lp (n, 1);
}

int main (int argc, char ** argv) {
  printf (PRIFACT_T, factorial (--argc ? atoi (*++argv) : 0));

  return 0;
}

Name: Anonymous 2011-09-18 20:56

>>20
You cant have local function in C/C++.

Name: Anonymous 2011-09-18 20:59

>>21

I know, you also don't have ({ }) expressions and variable argument macros in C. This is GNU-C.

Name: Anonymous 2011-09-18 21:00

Name: Anonymous 2011-09-18 21:03

>>23
I don't really see how that is applicable in this case.
GCC does not use GNU-C to disadvantage its competitors, the extensions are well documented and supported by many other compilers.

Name: Anonymous 2011-09-18 21:07

>>24
Fails to compile with MS C.

Name: Anonymous 2011-09-18 21:10

>>25
That might be because it's a C compiler and not a GNU-C compiler.

Now to the original question, is it a tail recursive function?

Name: Anonymous 2011-09-18 21:12

>>25
everything fails with MS C

Name: Anonymous 2011-09-18 21:12

>>26
Yeah! And MS Internet Explorer is a MS Internet Explorer and not an Internet Explorer.

Name: Anonymous 2011-09-18 21:14

>>28
It's not my problem if your compiler does not compile GNU-C.
If you try to compile Python with a C compiler that will fail too.
I don't know why you're trying to compile a different language with your C compiler, perhaps you have some sort of disease which causes your brain to malfunction.

Name: Anonymous 2011-09-18 21:16

>>29
If you have a disease which causes your brain to malfunction I recommend that you go see a doctor, it might be very serious.

Name: Anonymous 2011-09-18 21:17

>>28
It's not my problem if your browser does not support MS Internet.
If you try to run ActiveX application on Linux that will fail too.

Name: Anonymous 2011-09-18 21:18

>>31
Probably, but I have no interest in running an ActiveX application and I don't make stupid posts about being unable to do so on /prog/ either.

You are stupid.

Name: Anonymous 2011-09-18 21:21

>>31
I think prognosis on brain cancer is better if diagnosed early.

Name: kodak_gallery_programmer !!kCq+A64Losi56ze 2011-09-18 21:22

There's a reason why the various C standards exist...

Name: Anonymous 2011-09-18 21:24

>>32
Yahoo and many other great sites require ActiveX. You must be visit only crappy Linux-world sites.

Name: Anonymous 2011-09-18 21:25

>>35
It compiled fine with mingw on windows.

Name: Anonymous 2011-09-18 21:30

>>36
MS IE runs fine with vmware on linux.

Name: Anonymous 2011-09-18 21:36

Fuck I hate you fucking faggots.

Name: Anonymous 2011-09-18 21:37

>>37
What is your point?

Name: Anonymous 2011-09-18 21:39

Name: Anonymous 2011-09-18 21:54

>>40
You are stupid.

Don't change these.
Name: Email:
Entire Thread Thread List