Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
AWWNAW
Dec 30, 2008

Tiny Bug Child posted:

it's been said that php is just a wrapper around a bunch of c functions and that's kind of true. in a way, it's c for the modern era of the web. it's easier to work with and all the useless stuff like pointers is stripped out

MALE SHOEGAZE posted:

i wish your posts were untyped!!

Adbot
ADBOT LOVES YOU

Dessert Rose
May 17, 2004

awoken in control of a lucid deep dream...

MALE SHOEGAZE posted:

i wish your posts were untyped!!

oh gently caress

Athas
Aug 6, 2007

fuck that joker
Dynamic typing can be OK.

Implicit conversions can be OK.

But they are never OK together.

PHP is stupidly typed.

bobbilljim
May 29, 2013

this christmas feels like the very first christmas to me
:shittydog::shittydog::shittydog:

MALE SHOEGAZE posted:

i wish your posts were untyped!!

karms
Jan 22, 2006

by Nyc_Tattoo
Yam Slacker

JewKiller 3000 posted:

the "distinction" between strong and weak typing is nowhere near as important as the distinction between static and dynamic typing (the latter is not typing). and as other posters have explained, strong/weak typing are not very well defined, so such terms are avoided in the literature. but when it does appear, the term "weak typing" applies invariably to C

or maybe PHP, but PHP is not a programming language. it's a set of functions that you can call, but should not

:cry:

cinci zoo sniper
Mar 15, 2013




http://www.foreverscape.com/art/2015/america-offline/

comedyblissoption
Mar 15, 2006

Athas posted:

Dynamic typing can be OK.

Implicit conversions can be OK.

But they are never OK together.

PHP is stupidly typed.
they are still bad individually when you need to maintain and extend programs that take longer than a month to make

dynamic typing much moreso than implicit conversions

comedyblissoption fucked around with this message at 15:12 on Jun 13, 2015

comedyblissoption
Mar 15, 2006

also it feels like every single line of C code is out to murder you with subtle yet catastrophic failure scenarios and security compromises and overflow

this includes the code you can't see in the preprocessor in some library somewhere b/c of C's horrible module system

lol

Bloody
Mar 3, 2013

c is cool and good

cinci zoo sniper
Mar 15, 2013




comedyblissoption posted:

also it feels like every single line of C code is out to murder you with subtle yet catastrophic failure scenarios and security compromises and overflow

this includes the code you can't see in the preprocessor in some library somewhere b/c of C's horrible module system

lol
i guess this is why rust was made, right?

comedyblissoption
Mar 15, 2006

thats not an understatement btw

it's every single line of code

triple sulk
Sep 17, 2014



I would rather become really good with C than really good with Rust because jobs using C actually exist.

Bloody
Mar 3, 2013

and c is really good and useful

qntm
Jun 17, 2009

comedyblissoption posted:

thats not an understatement btw

it's every single line of code

thanks to macros, even a line of code containing a single right-brace can leap up and strangle you

cinci zoo sniper
Mar 15, 2013




by the way, what's up with go? saw today some article "why golang is doomed to succeed" and realised that i have no clue about it.

is it some new php or something?

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord
it's a garbage collected c with better syntax

also the package system isn't bad

Bloody
Mar 3, 2013

it is deprecated Google garbage

Soricidus
Oct 21, 2010
freedom-hating statist shill

Symbolic Butt posted:

also the package system isn't bad

import "github.com/definitely/trustworthy/code"

qntm
Jun 17, 2009

Bloody posted:

deprecated Google

but you repeat yourself

Wheany
Mar 17, 2006

Spinyahahahahahahahahahahahaha!

Doctor Rope
C is cool because like every third statement you write actually has undefined behavior that works with your compiler by chance.

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

Symbolic Butt posted:

it's a garbage collected c with better syntax

also the package system isn't bad

you forgot to mention the absolutely terrible type system

it is the worst type system I've ever used.

comedyblissoption
Mar 15, 2006

kalstrams posted:

by the way, what's up with go? saw today some article "why golang is doomed to succeed" and realised that i have no clue about it.

is it some new php or something?
http://yager.io/programming/go.html

comedyblissoption
Mar 15, 2006

http://cowlark.com/2009-11-15-go/

b0lt
Apr 29, 2005

kalstrams posted:

by the way, what's up with go? saw today some article "why golang is doomed to succeed" and realised that i have no clue about it.

is it some new php or something?

it's a language released in 2012 that has static types and yet lacks generics

comedyblissoption
Mar 15, 2006

if you ask about some way to bring map or filter into golang, one of the principal creators of the language may respond to you with
https://groups.google.com/forum/#!topic/golang-nuts/RKymTuSCHS0

rob pike posted:

The modern programmer thinks a newline is a thousand times harder to
type than any other character. If instead you take a newline as only
one keystroke, which it is, the fact that your program might not fit
on one line is a bearable burden.

-rob

to be fair this is tied to the lack of generics

you could desperately try this: https://github.com/tobyhede/go-underscore#map
but then you'd have to ask yourself why are you using golang

oh no blimp issue
Feb 23, 2011

stop no youll summon pram

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

this is also a good demonstration of why rust is good

you get all of the cool features of haskell but you can actually program useful things in it

gonadic io
Feb 16, 2011

>>=

MALE SHOEGAZE posted:

f# is pretty good

you get most of the cool features of haskell but you can actually program useful things in it

cinci zoo sniper
Mar 15, 2013




quote:

go stuff
thanks and yikes

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

b0lt posted:

it's a language released in 2012 that has static types and yet lacks generics

generics own hard

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

Soricidus posted:

import "github.com/definitely/trustworthy/code"

lol I didn't know this was a thing

Sapozhnik
Jan 2, 2005

Nap Ghost

b0lt posted:

it's a language released in 2012 that has static types and yet lacks generics

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

comedyblissoption posted:

if you ask about some way to bring map or filter into golang, one of the principal creators of the language may respond to you with
https://groups.google.com/forum/#!topic/golang-nuts/RKymTuSCHS0


to be fair this is tied to the lack of generics

you could desperately try this: https://github.com/tobyhede/go-underscore#map
but then you'd have to ask yourself why are you using golang

I can kinda see where he's coming from

python has map and filter and they're always used by assholes

I'm not saying that functional programming is bad, it's just that maybe there's something about these features in algol-style languages that I just don't know

Soricidus
Oct 21, 2010
freedom-hating statist shill
the reason why map and filter are bad in python isn't because loops are good enough, it's because loops + generator expressions are good enough

comedyblissoption
Mar 15, 2006

claiming it might be ill-fitting in algol-likes is really weak

C# and even now Java has these features

on top of that they have an interface for these features that you can extend with your own generic data types

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord
I've yet to meet a C#/Java developer who uses those features so idk. MAYBE THIS IS A GOOD THING? (I feel like I'm dangerously sounding like shaggar here)

maybe it's cultural, some python developers try to be way too smart and end up writing spaghetti code with map/filter


Soricidus posted:

the reason why map and filter are bad in python isn't because loops are good enough, it's because loops + generator expressions are good enough

I agree

Blotto Skorzany
Nov 7, 2008

He's a PSoC, loose and runnin'
came the whisper from each lip
And he's here to do some business with
the bad ADC on his chip
bad ADC on his chiiiiip

Symbolic Butt posted:

maybe it's cultural, some python developers try to be way too smart and end up writing spaghetti code with map/filter

how do map and filter obfuscate control flow, pray tell?

comedyblissoption
Mar 15, 2006

using linq in C# is really prevalent

also anyone familiar with SQL has a passing familiarity with map/filter due to the similarity with SELECT and WHERE

i would agree that python has poor support for chaining a bunch of lambdas and higher order functions there so it's gonna look awful and ugly. it looks bad enough in javascript. i would disagree it is spaghetti-ish though.

comedyblissoption
Mar 15, 2006

the average java programmer might yell at you if you use it since it's relatively a very new language feature

Adbot
ADBOT LOVES YOU

Plorkyeran
Mar 22, 2007

To Escape The Shackles Of The Old Forums, We Must Reject The Tribal Negativity He Endorsed

f# is fine too if .net is acceptable

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply