|
Bloody posted:heres a question: why should i ever give a single gently caress about functional programming and/or how is it relevant to things i give a single gently caress aobut why fp is important: mutation or in-place update is an optimisation for code, for memory and time efficiency, but it's actually harder to do well, not throwing away old data can make it easier to debug, test, and write. even shaggar should know this if they've done any amount of database janitoring and stored procedures. (hey, isn't it recommended in java to defensive copy return values to stop things outside of objects mutating their values and attributes) unfortunately most fp languages have decided that fp is too easy and so have found incredibly convoluted ways in which to do it. meanwhile, objects were envisioned as separate entities communicating with messages, but in reality objects are frequently used so each procedure can have a different and unique selection of globals attached to it. "how do we pass a bunch of globals around? objects!" one of the best examples of what an "OO" system should actually look like: a number of separate objects (processes), communicating with message passing, encapsulating functionality of a larger program. hey, it's erlang, look a functional programming language is more OO than the so called object ones. anyway, the problem with saying "functional programming" is that it's about as well defined as OO. it isn't so much FP vs OO, but things like: stateless vs stateful code. compile time type checking vs runtime type checking. early vs late dispatch. declarative code vs imperative code. abstract data types vs methods. nominative vs structural typing. and FP and OO are changing definitions all the time as languages grow and develop, and they're stealing from each other.
|
# ? May 11, 2014 06:11 |
|
|
# ? Jun 6, 2024 05:49 |
|
tef posted:why fp is important: mutation or in-place update is an optimisation for code, for memory and time efficiency, but it's actually harder to do well, not throwing away old data can make it easier to debug, test, and write. even shaggar should know this if they've done any amount of database janitoring and stored procedures. (hey, isn't it recommended in java to defensive copy return values to stop things outside of objects mutating their values and attributes) sounds like something someone in marketing would say
|
# ? May 11, 2014 06:17 |
|
raruler posted:Sung to the tune of "The Flintstones" 5
|
# ? May 11, 2014 09:44 |
|
tef posted:why fp is important: mutation or in-place update is an optimisation for code, for memory and time efficiency, but it's actually harder to do well, not throwing away old data can make it easier to debug, test, and write. even shaggar should know this if they've done any amount of database janitoring and stored procedures. (hey, isn't it recommended in java to defensive copy return values to stop things outside of objects mutating their values and attributes) the ironing is that i structure a lot of my modules as housings for independent functions ex: this thing takes in some html and spits out pdf. it has its own internal state for the conversion process and objects help me manage what bits im transforming, but its completely independent of the process calling it. I then stick these out as webservices and blammo lazy scalability
|
# ? May 11, 2014 15:51 |
|
alright so web dev exam is tomorrow and if i get anything less than A this is going to be embarasing https://drive.google.com/file/d/0B-sgrBM004sKVG9CSjB3NXlnOTQ/edit heres last years paper if anyone is interested
|
# ? May 11, 2014 20:24 |
|
> What is a Web Application Framework? > What are the main benefits of using a Web Application Framework? (List two) > Draw and label a brokered system architecture. > What is the Box Model in CSS? Draw and label the Box Model. > What is AJAX? What purpose does it serve? > Draw the AJAX Client/Server Asynchronous Communication Model.
|
# ? May 11, 2014 21:25 |
|
a software development test without the need to write code how innovative
|
# ? May 11, 2014 21:29 |
|
MeruFM posted:a software development test without the need to write code quote:(e) Given these views, describe how you will map URLs to views. Do this either by code is optional
|
# ? May 11, 2014 21:33 |
|
i'm the degree of master of arts (social sciences)
|
# ? May 11, 2014 21:44 |
|
Soricidus posted:i'm the degree of master of arts (social sciences) valeyard's uni is twice as old as your country (the anicent british unis all award MAs for what most places award BSs) coffeetable fucked around with this message at 21:53 on May 11, 2014 |
# ? May 11, 2014 21:48 |
|
Soricidus posted:i'm the degree of master of arts (social sciences) lollin at this
|
# ? May 11, 2014 21:52 |
|
summer diet
|
# ? May 11, 2014 22:03 |
|
Shaggar posted:the ironing is that i structure a lot of my modules as housings for independent functions ex: this thing takes in some html and spits out pdf. it has its own internal state for the conversion process and objects help me manage what bits im transforming, but its completely independent of the process calling it. I then stick these out as webservices and blammo lazy scalability this is basically how i think of high-level objects. i'm building a machine that does something, and i want that machine to hide all the gory bits inside and present a clean interface to the rest of my app. then my app is really just some glue code that sets up the machines in a relevant way for what i'm trying to do.
|
# ? May 11, 2014 22:05 |
if that is distributed information management 3, I don't want to see digital distribution management 1 and 2
|
|
# ? May 11, 2014 22:05 |
|
sounds like functional is navel gazing and not actually useful because everything i touch is stateful as gently caress so
|
# ? May 11, 2014 22:05 |
|
everything can be stateless if you think hard enough the big bang was just a function
|
# ? May 11, 2014 22:11 |
|
yeah let me just build a stateless state machine idiot!!!
|
# ? May 11, 2014 22:19 |
|
Bloody posted:sounds like functional is navel gazing and not actually useful because everything i touch is stateful as gently caress so nah, there are projects that are too big to fit in your skull i like fp because i'm dumb, and its helps simplify plus gently caress using threads directly to do concurrency
|
# ? May 11, 2014 22:20 |
|
Brain Candy posted:nah, there are projects that are too big to fit in your skull threads own
|
# ? May 11, 2014 22:22 |
|
coffeetable posted:valeyard's uni is twice as old as your country
|
# ? May 11, 2014 22:53 |
|
Soricidus posted:actually valeyard's uni is in my country, thanks for playing though welp
|
# ? May 11, 2014 22:55 |
|
Soricidus posted:actually valeyard's uni is in my country, thanks for playing though your country is either 0 years old or infinity years old
|
# ? May 11, 2014 22:56 |
|
technically you're still right though, the uk didn't exist as a single country before like 1700 i think and it probably won't any more soon, thanks
|
# ? May 11, 2014 22:58 |
|
pi calculus is a much better model of computation than lambda calculus, but it looks like code rather than monoids in the category of endofunctors on a topos so academics ignore it
|
# ? May 12, 2014 02:18 |
|
Zombywuf posted:pi calculus is a much better model of computation than lambda calculus, but it looks like code rather than monoids in the category of endofunctors on a topos so academics ignore it i love tapas!!
|
# ? May 12, 2014 02:41 |
|
functional programming is a lot easier than oo
|
# ? May 12, 2014 02:56 |
|
exam was pretty much identical although I couldnt think of two reasons why you would prefer XML over json for data delivery, and I didnt know what design pattern jquery is based on In other news, my university dropped from 4th to 10th in the rankings of CS course in the UK, which is still too high
|
# ? May 12, 2014 12:52 |
|
Valeyard posted:exam was pretty much identical although I couldnt think of two reasons why you would prefer XML over json for data delivery, and I didnt know what design pattern jquery is based on lol * schemas * integers idk if anyone cares what pattern query is built on
|
# ? May 12, 2014 12:59 |
|
Malcolm XML posted:lol mm part h of that paper is dumb i mean does it want the entire osi model
|
# ? May 12, 2014 13:01 |
|
Malcolm XML posted:lol oops yeah schemes that makes sense Malcolm XML posted:mm part h of that paper is dumb i mean does it want the entire osi model I think it was something more like this, although that it still incomplete - actually its missing a lot, i didnt do that lol. we got one of those questions today too
|
# ? May 12, 2014 13:05 |
|
Zombywuf posted:pi calculus is a much better model of computation than lambda calculus, but it looks like code rather than monoids in the category of endofunctors on a topos so academics ignore it as somebody in academia in this field, you're wrong hth pi calc is on the up-and-up and fp people like it because it gives stuff like statically verified dead-lock free message passing
|
# ? May 12, 2014 13:09 |
|
Malcolm XML posted:lol character sets. stream parsers (SAX/StAX) XML is stringly typed so i dunno about integers. you could just as well put an int inside a JSON string and parse it on the receiving end, although XML has better tooling for this. --- jquery is built on the god object pattern ofc
|
# ? May 12, 2014 13:42 |
|
AlsoD posted:as somebody in academia in this field, you're wrong hth Pretty much everything I've seen in this area seems to be pretty niche, yet there seems to be a never ending deluge of papers exploring the curry-howard isomorphism. Have there been any developments on Igarashi and Kobayashi's generic type system for pi calculus recently?
|
# ? May 12, 2014 14:14 |
|
Zombywuf posted:there seems to be a never ending deluge of papers exploring the curry-howard isomorphism. that's because it's loving amazing
|
# ? May 12, 2014 17:27 |
|
Kevin Mitnick P.E. posted:character sets. stream parsers (SAX/StAX) iirc theres a streaming json lib somewhere this poo poo seems to have been written years ago and is totally out of date. xhtml is dead (rip) sgtreaming json exists yeah i guess u could string up integers. maybe something like xslt? literally everything in xml has been recreated for json where it makes sense, except poorly i miss proper schemas.
|
# ? May 12, 2014 17:35 |
|
Made a thing with xml schemas once, it even validated its own output before returning, the guy who wrote the code at the receiving end wrote some VB that did a bunch of search and replaces over it (yeah, O(n*m)) to mangle it into a slightly different format before processing it. The day I discovered that was happening may be the day all hope died in me.
|
# ? May 12, 2014 17:48 |
|
Malcolm XML posted:iirc theres a streaming json lib somewhere json is bad on purpose cause any attempt to make it good would offend its primary users
|
# ? May 12, 2014 17:54 |
|
Zombywuf posted:Made a thing with xml schemas once, it even validated its own output before returning, the guy who wrote the code at the receiving end wrote some VB that did a bunch of search and replaces over it (yeah, O(n*m)) to mangle it into a slightly different format before processing it. how does this make you feel Valeyard posted:
|
# ? May 12, 2014 17:59 |
|
errr wrong thread
|
# ? May 12, 2014 18:03 |
|
|
# ? Jun 6, 2024 05:49 |
|
Valeyard posted:how does this make you feel atleast you know you should feel shame
|
# ? May 12, 2014 18:04 |