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

Pages: 1-4041-8081-

Red Flags in a programmer

Name: Anonymous 2015-04-22 21:35

You know you might be dealing with a `coder' when he/she says:

I'd rather not reinvent the wheel

Name: Anonymous 2015-04-22 21:35

I just can't get past all the parentheses

Name: Anonymous 2015-04-22 21:36

I love how succinct python is

Name: Anonymous 2015-04-22 21:42

Hax my anus

Name: Anonymous 2015-04-22 21:44

/polecat kebabs/

Name: Anonymous 2015-04-22 21:51

Allahu Akbar!

Name: Anonymous 2015-04-22 22:12

I just want something that can be deployed on Heroku.

Name: Anonymous 2015-04-22 22:34

Do you keep up with the latest technologies?

Name: Anonymous 2015-04-22 22:42

js is stongly typed

Name: Anonymous 2015-04-23 2:33

>>9
but it is

Name: Anonymous 2015-04-23 2:33

framework

Name: Anonymous 2015-04-23 5:42

>>1
ESTABLISHED BEST PRACTICE

This behavior is by design.

Name: Anonymous 2015-04-23 13:17

#include <void.h>

Name: Anonymous 2015-04-23 15:09

I prefer linked-lists over simple arrays.

Name: Anonymous 2015-04-23 19:40

>>10
Prove it, Javashit kike.

Name: Anonymous 2015-04-23 22:10

>>15
* C is weakly, statically typed
* SML is strongly, statically typed
* js is strongly, dynamically typed

Name: Anonymous 2015-04-23 22:15

* js is strongly, dynamically typed

Name: Anonymous 2015-04-23 23:31

>>16
* js is strongly, dynamically typed
What the fuck.

Name: Anonymous 2015-04-24 0:54

There are ten kinds of people in the world xD

Name: Anonymous 2015-04-24 3:43

curl | sudo bash

Name: Anonymous 2015-04-24 7:00

>>16
But dynamic typing is a special case of static typing.
Thus, JS is strongly, statically typed.

Name: Anonymous 2015-04-24 11:01

>>16
js is strongly, dynamically typed
>>> [] + {}
"[object Object]"
>>> {} + []
0
>>> [] + 0
"0"
>>> 0 + []
"0"
>>> {} + 0
0
>>> 0 + {}
"0[object Object]"

Nerd please, that's not how you strongly type :3

Name: Anonymous 2015-04-24 11:59

js is typed by retards

Name: Anonymous 2015-04-24 11:59

js is typed by retards

Name: Anonymous 2015-04-24 12:57

If JS is typed by retards, what retards type about retards typing in JS? Did i broke the type system by typing about retards that type about retards typing in JS?

Name: Anonymous 2015-04-24 13:54

dynamic typing is a special case of static typing.

Name: Anonymous 2015-04-24 14:06

>>1
When they are uppity and social, or when they are smug on trivial stuff.

Name: Anonymous 2015-04-24 14:50

Name: Anonymous 2015-04-24 15:15

>>26
Also, you need to read your PFPL.

Name: Anonymous 2015-04-24 20:57

>>28
I've used unityped languages and never felt constrained by them, so I guess I'm not really understanding the point of his tant.

Name: Anonymous 2015-04-24 21:07

Name: Anonymous 2015-04-24 21:47

>>30
I used to think like that too. In fact everyone in the programming language theory used to think like that too. The only explaination is that type researchers are capable of mindcontrolling and brainwashing with their Hurry-Coward correspondence

Name: Anonymous 2015-04-25 3:00

check 'em dubs

Name: Anonymous 2015-04-25 3:23

>>31
What about a textboard cum wiki?

Name: Anonymous 2015-04-25 9:28

>>32
Nice bullshit, man.

Name: Anonymous 2015-04-25 9:58

“Dynamic” languages can take more space (and allow more errors) in describing the overall filter, but it’s a conceptual space more easily traversed by folks who really don’t need to think much about their programs and who follow an operational model

In other words, "dynamic" typing is for coders who dun wanna tink too much about deir shitcode. Somehow I'm not surprised.

Name: Anonymous 2015-04-25 14:07

>>36
and while you sit there wanking to your code purity, I'll be getting shit done

Name: Anonymous 2015-04-25 14:22

>>36
that's not even remotely true

Name: Anonymous 2015-04-25 14:31

>>37
Static typing is what helps get shit done, not the "I'll let the compiler ignore all the type errors so they blow up at runtime at an undefined point in the future" shit-language.

Name: Anonymous 2015-04-25 15:23

>>39
What the fuck is a type error anyway?

Name: Anonymous 2015-04-25 15:29

Open a CL REPL and input:

(+ 5 "aaa")

You'll get something like

debugger invoked on a SIMPLE-TYPE-ERROR in thread ...

That, my friend, is a type error. In a unityped languge Common Lisp. And no matter how "dynamic" a language is, it will still be vulnerable to type errors, because not every value supports all possible operations.

Name: Anonymous 2015-04-25 15:53

>>35
It's a real thing, my fella /prog/rider! The Hurry-Coward correspondence, that is. Whether you are aware of it or not, it's controlling your mind.

Name: Anonymous 2015-04-25 16:02

>>41
But why would you do something like that in an actual program? It doesn't make any sense.

Name: Anonymous 2015-04-25 16:10

>>43
Because you can't keep the types of everything in your head, especially if the project is big, or you're refactoring stuff.

For example, once I wrote a function where I mapped another function over a list. Then some time later I decided that this mapping action should be moved to another function lower on the call graph, but I forgot to delete the first occurence. So I was doing a perfectly type-correct map on a list, except I was doing it in twice on different levels in the call graph! A unityped language would've let this slide, and it would explode at runtime, when the execution would've gone down that particular codepath. But with Haskell, I knew of this error before the code was even recompiled, let alone run.

Name: Anonymous 2015-04-25 16:14

>>43
Let's say you have the function foo and the function bar. Is it possible to call foo(bar("anus"))? Or maybe it's possible to call bar(foo("anus"))? They could be totally incompatible, though. But with a non-unityped language, you can know that without looking at their implementations, and without running your code, hell - without even compiling anything. With a "dynamic" craplanguage, on the other hand, you're like a blind man crawling aroung on your knees.

Name: Anonymous 2015-04-25 16:43

I didn't think I would post seriously in such a /g/-ridden thread, but please refer to On understanding types, data abstraction, and polymorphism[Cardelli, Wegner 85] for a lighter-than-TAPL but thorough treatment on types and why we need them.

Name: Anonymous 2015-04-25 17:33

A type may be viewed as a set of clothes (or a suit of armor) that protects an underlying untyped representation from arbitrary or unintended use. It provides a protective covering that hides the underlying representation and constrains the way objects may interact with other objects. In an untyped system untyped objects are naked in that the underlying representation is exposed for all to see. Violating the type system involves removing the protective set of clothing and operating directly on the naked representation.

Violate my naked anus.

Name: Anonymous 2015-04-25 17:54

>>47
Queers like you will be the first to die on the day of the rope.

Name: Anonymous 2015-04-25 18:03

>>47
Very smooth reading, and at the same time informative and precise without being overly technical. Thanks.

Name: Anonymous 2015-04-25 18:14

Does /prog/ think dynamic typing has its place on some specific applications? I, for one, wouldn't use a statically typed scripting language.

Name: Anonymous 2015-04-25 18:21

>>50
It has its place below 1000 LOC, yeah. Though multi-typed languages can be used there just as well if they're interpreted.

Name: Anonymous 2015-04-25 19:16

>>50
go ahead faggot

Name: Anonymous 2015-04-25 19:24

Go stick a dildo up your asses type queers, fucking wanking over types instead of writing interesting programs.

Name: Anonymous 2015-04-25 20:47

Dynamic typing is for toy scripts.

Name: Anonymous 2015-04-25 21:11

Dynamic typing is for dildo scripts.

Name: Anonymous 2015-04-26 2:11

Dynamic dildo is for scripting typists.

Name: Anonymous 2015-04-26 13:59

You know you might be dealing with a `cudder' when he/she says:

Web browsers should be written in x86 assembly.

Name: Anonymous 2015-04-27 17:46

>>1
Any form of smileys in text, comments.
In context it often looks like forced smile in the middle of horror show.

Name: Anonymous 2015-04-27 20:44

>>58
;^)

Name: Anonymous 2015-04-28 5:09

The words windoze,winblows,winsucks,winshit etc

Name: Anonymous 2015-04-28 5:10

>>60
wangblows

Name: Anonymous 2015-04-28 13:27

>>60
M$

Name: Anonymous 2015-04-28 15:32

>>60
wincucks

Name: Anonymous 2015-04-28 19:16

>>60
What about Shindows?

Name: Anonymous 2015-04-28 19:25

Being all talk and no action.
That's a big red flag.

Name: Anonymous 2015-04-28 20:27

using the phrase codemonkey.

Name: Anonymous 2015-04-28 20:35

Using the word overhyped.

Name: Anonymous 2015-04-28 23:06

>>14
simple arrays
insertion of an item requires copying (sizeof(array)-pos)*sizeof(element) memory

Name: Anonymous 2015-04-28 23:15

>>68
Whom are you quoting, mongoloid?

Name: Anonymous 2015-04-29 0:08

>>69
I was quoting >>14
the second line was his internal though process while making the conclusion that arrays are simple

Name: Anonymous 2015-04-29 2:35

>>69
back to jp with that meme

Name: Anonymous 2015-04-29 2:41

>>71

back to my anus with that big delicious cock

Name: Anonymous 2015-05-04 3:11

when they try to change the entire language a project is in the second they can't immediately think of how to implement something in the language the project is already in.

Name: Anonymous 2015-05-04 18:38

when they use noob languages instead of something much more appropriate because they "don't want to make it hard for beginners to contribute"

Name: Anonymous 2015-05-04 21:01

>>71
back to g with that fake quote

Name: Anonymous 2015-05-04 21:12

>>71
It's not a meme. He wouldn't ask who you were quoting if you had used the feature correctly.

Name: Anonymous 2015-05-05 19:09

A friend of mine, a well known computer scientist, once said that any properly designed programming language does not need macros. I tend to agree strongly with that sentiments. Macros are hacks.

Name: Anonymous 2015-05-06 1:07

>>76
back to jp

Name: Anonymous 2015-05-07 2:06

>>77
People say stuff like that, and then they go on to make parser generators, xml reader writers, coder generators, when they could have leveraged it all from the language itself.

Name: Anonymous 2015-05-07 20:03

>>78
Please talk about programming, thanks.

Name: Anonymous 2015-05-07 20:39

>>80
who are you quoting?

Name: Anonymous 2016-12-07 6:25

considered harmful

premature optimization is the root of all evil

code re-use

Name: Anonymous 2016-12-07 8:29

Stop telling all these non-coders our codewords!

Name: Anonymous 2016-12-07 9:00

it's less about single words/phrases, more about patterns:
- blanket statements that either treat something (e.g. OOP, type safety, unit testing) like a silver bullet or condemn some features (e.g. goto, global variables, constructors) to hell - this indicates a cargo cult approach and blindly repeating of programmer memes instead of actually thinking for yourself and trying to evaluate why those things are considered good/bad and why they are/aren't appropriate in solving your problems; this is the most common with enterprise and web developers but it's not like others are immune (see: functional purity zealots banging their heads against the wall to design pure video games, pure networking and pure device drivers, not realizing that the lack of state makes those particular things counter-intuitive and inelegant)
- excessive focus on design patterns and avoidance of basic language features because they're not 'robust' enough - those things might be useful in some cases but if every single thing they do requires complex layers of abstraction and indirection, maybe the language they chose simply isn't the right tool for the job
- complaints about the repetitive nature or programming - if you keep doing the same shit over and over again, you're doing something wrong; either you can't use the language well enough or you're both using a boilerplate-heavy langage (e.g. java, seeples) and are unable to automate your work; automation is seriously underrated, it allows you to be more productive than co-workers while shitposting on /prog developing your own interesting projects
- securityfag bonus #1 - conflating encapsulation with security - where does this meme even come from?
- securityfag bonus #2 - insisting on broken crypto because it's not yet epxloitable in practice - it's not yet exploitable in practice but it will be soon, attacks are not getting worse with time

Name: Anonymous 2016-12-07 12:50

type safety
Indeed, it is not a silver bullet. It is however a golden bullet.

goto, global variables
But these have no reason to be used.

Name: Anonymous 2016-12-07 12:58

>>85
But these have no reason to be used.
goto is not necessary but may be useful for low-level optimization, e.g. in kernel code. global variables are useful for stateful programs with a global state - you can put everything in scopes but it will still function like global variables.

Name: Anonymous 2016-12-08 1:11

>>86
global state considered harmful

Name: Anonymous 2016-12-08 1:29

>>86
goto considered convenient for handling error cases in a single code path within one function

Name: Anonymous 2016-12-08 14:50

>>87
Then stop using your computer as a giant state machine!

Name: Anonymous 2016-12-08 14:59

>>87
global state considered helpful for when the problem is best modelled with a state machine. emulation is an obvious example - you could write a purely functional CPU (after all you don't need state to have TC) but you'd just be designing something labyrinthine and inefficient which offers no advantages over just having state.

Name: Anonymous 2016-12-08 19:19

>>87
mfw the functional programmer imperatively writes his haskell files to the global state that is his hard disk

(^:

Name: Anonymous 2016-12-08 22:04

>>87,89-91
Any kind of system has "global state". "Global state" means the state of the whole system.

If the CPU only generates heat and doesn't do any other communication, it still has global state.

I don't think something without global state can possibly exist. Try to describe it. If you can describe it, it has global state.

Name: Anonymous 2016-12-08 23:29

I only eat kosher

Name: Anonymous 2016-12-09 0:23

>>92
slippery slope, soon you could say the evil act of writing to a file is part of global state too, because you may delete it eventually so it's akin to RAM.

Name: Anonymous 2016-12-09 0:52

>>94
What if it's a swap file?

Name: Anonymous 2016-12-09 1:33

>>90
you could write a purely functional CPU (after all you don't need state to have TC) but you'd just be designing something labyrinthine and inefficient which offers no advantages over just having state.
A purely functional CPU could solve the halting problem.

Name: Anonymous 2016-12-09 8:17

>>92
statelesness is an abstraction, although it's often a useful one

Name: Anonymous 2016-12-10 13:07

Why not rewrite it in Rust?

Name: Anonymous 2016-12-10 13:59

>>98
Check 'em

Name: Anonymous 2016-12-10 16:15

>>90
after all you don't need state to have TC
I don't see how that is possible.
At the very minimum you would need some sort of state to keep track of where you are on the tape.

Name: Anonymous 2016-12-10 22:02

>>100
The tape is an abstraction, although it's often a useful one.

Name: Anonymous 2016-12-11 3:29

LISP is a great language to write powerful and concise programs.

Name: Anonymous 2016-12-11 3:56

>>102
Clojure is not a LISP.

Name: Anonymous 2016-12-11 13:23

>>100
lambda calculus?

Name: Anonymous 2016-12-12 21:36

>>101
Regardless of what you use, you need some 'where am I'-state, otherwise you could never do any kind of looping construct.

Name: Anonymous 2016-12-12 22:19

>>105
Any looping construct can be transformed into recursion.

Name: Anonymous 2016-12-13 1:33

TRUMP WON
/prog/ BTFO!!!!

Name: Anonymous 2016-12-13 1:33

TRUMP WON
/prog/ BTFO!!!!

Name: Anonymous 2016-12-13 9:45

WARNING! TRIPS INCOMING

Name: Anonymous 2016-12-13 9:59

[+] Preparing to check'em...

Name: Anonymous 2016-12-13 10:00

[+] Trip check success!

Name: Anonymous 2016-12-13 19:28

[-] SEGMENTATION FAULT: Core dumped

Name: Anonymous 2016-12-14 7:14

>>112
did you just write a SIGSEGV handler to change Segmentation fault (core dumped) to [-] SEGMENTATION FAULT: Core dumped? how enterprise of you

Name: Anonymous 2016-12-14 7:44

>>113
a three line handler is considered enterprise
I guess you're in for a surprise
https://www.gnu.org/software/libsigsegv/

Name: Anonymous 2016-12-14 7:54

>>114
three line handlers by themselves are not enterprise but they're a bit of a red flag. kinda like classes which are just wrappers and layers of indirection around other classes - they add up over time until most of the code basically does nothing.

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