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

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-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.

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