Luigi Thirty posted:I got to listen to someone in the next cube over bitch all day about how it would make his job (remote support) easier if our application just used reversible password encryption
|
|
# ? Jun 2, 2016 02:13 |
|
|
# ? May 12, 2024 04:36 |
|
raminasi posted:I write plugins for a 3D modeler. explain why letting a dumb bug crash the whole modeler and losing my user's work is preferable to emitting an error message and aborting. Because if your dumbshit plugin is throwing an exception that it doesn't know how to handle locally, it's probably already hosed up the user's work. And unless you have a guaranteed safe rollback available, loudly failing is preferable to introducing silent corruption that the user might not notice until it's far too late to correct.
|
# ? Jun 2, 2016 02:26 |
|
RPC over HTTP
|
# ? Jun 2, 2016 03:24 |
|
Jabor posted:Because if your dumbshit plugin is throwing an exception that it doesn't know how to handle locally, it's probably already hosed up the user's work this isn't true at all, though. the overwhelmingly common workflow is "user pushes button -> plugin crunches some numbers -> plugin updates in-memory document with results of number crunching." if an exception gets thrown during number crunching, then i can either tell the user "uh apparently that button doesn't work right now, you should probably email us about this" or just blow everything up around them, and i know which one my users prefer. (is it possible that an unanticipated exception indicates unexpected and incorrect mutation? sure. but in all the bugs i've found and fixed here, i can't think of a single one of those.) and i still haven't heard any explanation for who's supposed to be handling the unhandled exception if i can't do it. how do you even write a crash handler without being able to catch arbitrary exceptions? you've gotta get the stack trace from somewhere!
|
# ? Jun 2, 2016 03:36 |
|
i am working on a go thing and i needed to store some common sql queries so i made a crappy cache object that i just passed around between things. then i realized it should probably be threadsafe so i added some thread safety and now i have basically rolled my own cache. anyhow, i'm not a total idiot so my conclusion is "i guess i need a cache" so I googled for the most popular go in-app cache thing and it has almost exactly the same api as the one i stupidly put together over the last day or two. like i will just have to change a few things. sometimes it's nice to be reminded that maybe i do know what i'm doing
|
# ? Jun 2, 2016 03:49 |
|
so what's this scala i've been hearing so much about? looks like them trying to make something to ween java devs off oop into a more functional mindset? anyways it looks cool, can anyone recommend a tutorial? or preferably like a course or something
|
# ? Jun 2, 2016 03:50 |
|
scala is the java open beta
|
# ? Jun 2, 2016 03:52 |
|
MALE SHOEGAZE posted:i am working on a go thing nope
|
# ? Jun 2, 2016 03:53 |
MALE SHOEGAZE posted:i am working on a go thing and i needed to store some common sql queries so i made a crappy cache object that i just passed around between things. then i realized it should probably be threadsafe so i added some thread safety and now i have basically rolled my own cache. Let me tell you about my triple for loops recombining complex numbers
|
|
# ? Jun 2, 2016 03:54 |
|
can someone tell me how the heck to deploy an asp.net core app to windows server 2008 / iis 7.5 it runs fine on linux but i have no idea how to get this thing working on windows. come on microsoft
|
# ? Jun 2, 2016 03:56 |
Asymmetrikon posted:can someone tell me how the heck to deploy an asp.net core app to windows server 2008 / iis 7.5 "my people need me, " Shaggar mutters, rolling in bed
|
|
# ? Jun 2, 2016 03:57 |
|
Just deploy straight to the cloud with Microsoft Azure™
|
# ? Jun 2, 2016 04:09 |
|
HoboMan posted:well turns out i'm even dumber than i thought you're not dumb if you don't understand abstractions by reading about them without actually using them imo
|
# ? Jun 2, 2016 04:27 |
|
fart simpson posted:you're not dumb if you don't understand abstractions by reading about them without actually using them imo agreed. this is why programming education is generally heavier on project work than lectures. i learned way more from implementing various abstractions badly over and over before getting a working program than from a week of lectures on, say, log-structured file systems.
|
# ? Jun 2, 2016 04:55 |
|
fart simpson posted:you're not dumb if you don't understand abstractions by reading about them without actually using them imo it was a hasty explanation and i cut a lot of things out too with a made up syntax too for me it was hacking together arrows that made it click but tbh a lot of this functional stuff is just design patterns but coming from a completely different programming style this may or may not help https://vimeo.com/98922027 as it contains erik meijer
|
# ? Jun 2, 2016 08:41 |
|
the whole Contravariance is the Dual of Covariance Implies Iterable is the Dual of Observable bit is but neat as heck
|
# ? Jun 2, 2016 08:44 |
|
HoboMan posted:so what's this scala i've been hearing so much about? looks like them trying to make something to ween java devs off oop into a more functional mindset? a new scala course is starting on coursera in 5 days so lucky you: https://www.coursera.org/learn/progfun1 scala isn't really to wean java devs off OOP, in reality it's an exploration of how tightly integrated oop and fp concepts can be intertwined
|
# ? Jun 2, 2016 09:29 |
|
Condiv posted:a new scala course is starting on coursera in 5 days so lucky you: https://www.coursera.org/learn/progfun1 its also bad
|
# ? Jun 2, 2016 09:33 |
|
fart simpson posted:its also bad nah, scala is good
|
# ? Jun 2, 2016 09:38 |
|
Condiv posted:nah, scala is good things i hear about scala is that the performance overhead for some of the features it introduces come at such a cost at runtime (slow or unpredictable performance), that as you write scala in production it starts to resemble java. one with a nicer syntax i'm told, even if you do get quite close to java. the random bits bolted onto java are starting to lower the burden of writing in java now too. let's not talk about sbt this is a polite conversation
|
# ? Jun 2, 2016 10:12 |
|
Share Bear posted:java [...] dependencies [...] logging in my experience: DEHUMANIZE YOURSELF AND FACE TO BLOODSHED
|
# ? Jun 2, 2016 10:26 |
|
instead of scala, use java 8 with lombok. there, now you have the good parts without any of the flaming garbage heap scala buries them in
|
# ? Jun 2, 2016 10:39 |
|
Condiv posted:scala isn't really to wean java devs off OOP, in reality it's an exploration of how tightly integrated oop and fp concepts can be intertwined You should use C# and F# for this. F# is really really nice.
|
# ? Jun 2, 2016 10:39 |
|
Charlie Mopps posted:You should use C# and F# for this. F# is really really nice. f# without the manual declaration/file order micromanagement bullshit would basically be the perfect pl
|
# ? Jun 2, 2016 10:48 |
|
Charlie Mopps posted:You should use C# and F# for this. F# is really really nice. mono and the c# thing ms released for linux are quite slow compared to java, so a jvm language is what I use. if i ever did use mono i'd code in f# if i could though.
|
# ? Jun 2, 2016 10:51 |
|
Soricidus posted:f# without the manual declaration/file order micromanagement bullshit would basically be the perfect pl
|
# ? Jun 2, 2016 11:22 |
|
most of the scala love I see around here is for akka
|
# ? Jun 2, 2016 11:50 |
|
uncurable mlady posted:most of the scala love I see around here is for akka I been using rxjava/rxscala in a project recently it's pretty cool
|
# ? Jun 2, 2016 11:52 |
|
Soricidus posted:f# without the manual declaration/file order micromanagement bullshit would basically be the perfect pl I strongly disagree, but you'll be happy to hear the language design team has decided to throw a bone to spaghetti lovers https://github.com/fsharp/FSharpLangDesign/blob/master/RFCs/FS-1009-mutually-referential-types-and-modules-single-scope.md
|
# ? Jun 2, 2016 12:12 |
|
MALE SHOEGAZE posted:i am working on a go thing and i needed to store some common sql queries so i made a crappy cache object that i just passed around between things. then i realized it should probably be threadsafe so i added some thread safety and now i have basically rolled my own cache. or, and bear with me here, no one else knows what they're doing either
|
# ? Jun 2, 2016 13:22 |
|
Wheany posted:in my experience: DEHUMANIZE YOURSELF AND FACE TO LOGBACK
|
# ? Jun 2, 2016 13:29 |
|
Are there still any red hat employees in here
|
# ? Jun 2, 2016 13:59 |
|
Soricidus posted:instead of scala, use java 8 with lombok. there, now you have the good parts without any of the flaming garbage heap scala buries them in still doesn't have pattern matching/partial functions, sum types, or typeclasses. there are more things that might be more dubiously useful, but lack of pattern matching alone is a deal breaker for me, and as far as I know frege is the only other JVM language that has as good or better pattern matching than scala. frege will be a better choice than scala eventually but for now it's still in the 'its own compiler is the biggest thing written in it, still working on the standard library" stage. lombok maybe gets Java 8 90% of the way to being kotlin
|
# ? Jun 2, 2016 14:21 |
|
our logging configuration is broken again by ~~ something ~~ if i make a deliberate syntax error in logback.xml, mvn jetty:run will barf all over the console if i leave logback.xml as it was, i get a nice log about it being discovered and logging being configured the next output is code:
i think this is the 4th time i'm doing this during this project after i get it working, if anyone breaks the logging again, i will literally flay them
|
# ? Jun 2, 2016 15:25 |
|
kugutsu posted:still doesn't have pattern matching/partial functions, sum types, or typeclasses. frege has an sbt plugin! https://github.com/earldouglas/sbt-frege i'm getting an itch to try frege out
|
# ? Jun 2, 2016 15:52 |
|
Soricidus posted:f# without the manual declaration/file order micromanagement bullshit would basically be the perfect pl
|
# ? Jun 2, 2016 16:32 |
|
in C: why does char ** cast to void * but not to void **, that's kind of annoying. is there some strict aliasing poo poo i'm supposed to be aware of i mean, sure i can throw a (char **) cast in there but this probably throws a warning for a reason and i'd rather not be visited by the spooky scary ghost of undefined behaviour
|
# ? Jun 2, 2016 16:53 |
|
Mr Dog posted:in C: char** is a pointer to a char*, void* is a pointer to Something. since a char* is Something, a char** is a void* a void** meanwhile is a pointer to a void*, which char** is not
|
# ? Jun 2, 2016 16:55 |
|
void ** doesn't make much sense to me since I'm guessing that someone would try to use it to keep track of a 2d array. however, you can't do pointer arithmetic on void pointers which also means you can't index into this structure. maybe i'm wrong on why the spec doesn't allow what you're trying, but that seems like a reasonable guess to me. edit: ^^^ that makes more sense ^^^ Star War Sex Parrot fucked around with this message at 17:04 on Jun 2, 2016 |
# ? Jun 2, 2016 17:01 |
|
|
# ? May 12, 2024 04:36 |
|
no, I get it, every line of code in C++ is, basically, a monad. it takes all variables, functions, etc. visible in the scope as inputs, and copies them to outputs, possibly modifying them, sometimes introducing new variables, sometimes erasing them if it's the end of a scope. I remember this from my computer science fundamentals course, every line of code being a function over all the variables that returns all the variables, with modifications, was one of the things I remember the best, but could never find a practical use for so I guess the "monadic" way to implement optional/nullable in C++ would be exceptions, which skip the "callback" (really a "callforward") and return the error value (the exception object, on the catch site). by making "monadicity" explicit you can do interesting things that normally require non-portable or privileged code, like scheduling/interleaving. I get it thanks tef, it was enlightening. you should give yourself more credit
|
# ? Jun 2, 2016 17:30 |