|
unixbeard posted:is the term 'white space' inherently exclusionary? yes. it is intended to convey that demons, which have no corporeal form and thus no physical color, are excluded from that portion of the code and thus cannot cause any bugs there. unfortunately it also keeps the cherubim (quoque ac seraphim) out as they also have no spatial extent
|
# ? Aug 30, 2013 14:26 |
|
|
# ? Jun 4, 2024 04:50 |
|
unixbeard posted:is the term 'white space' inherently exclusionary? white space should be word filtered to liebensraum
|
# ? Aug 30, 2013 14:32 |
|
gucci void main posted:yeah
|
# ? Aug 30, 2013 14:34 |
|
please don't quote sulk !!!
|
# ? Aug 30, 2013 14:36 |
|
tef posted:this sorta dogma ridden hand writing over a confused language feature is possibly why go didn't include them According to their FAQ it seems to me that the reason they don't like exceptions is the same reason as most people who don't like exceptions: quote:Why does Go not have exceptions?
|
# ? Aug 30, 2013 14:40 |
|
Stringent posted:white space should be word filtered to liebensraum lebensraum. liebensraum would be room to love
|
# ? Aug 30, 2013 14:45 |
ughh indeed!!! their setup script is a pos tsspos, you might say
|
|
# ? Aug 30, 2013 14:50 |
|
blinkzorz i like to write tryget functions for that question you asked a couple of pages ago rather than exceptions. i'm probably about to be jumped on for it being bad practice or something but it makes me consistently happycode:
|
# ? Aug 30, 2013 15:02 |
|
tef posted:if you read higher order perl (or you know what "0 but true" is for in Perl), you'd know what the semipredicate problem is and how exceptions can be used I know your stance on exceptions in general, but what if you have different classes of exception handling mechanisms available for each of these cases? What about languages that may support exceptions, option types, tagged values, multiple return values, signals, continuations and/or whatever mix of them that exists? I understand it's very well possible to have a favorite one (say option types), and to pretend that you have to pick only this one in ideal cases, but when faced in a language that offers more than one way to do it, can you still affirm only one of them is the one true form to be used for all cases available? "One true form of exception handling", to me, sounds as reductionist of an approach as "one true form of concurrency", "one true programming language paradigm", or whatever. This is to say, it's perfectly fine to be opinionated about it and kitchen sink languages might be terrible, but there will be areas where one or more of them is better than some single other. The general principles for fault tolerance require Separation of Concerns vis. Error Encapsulation (make sure that the contagion doesn't spread), Fault Detection (make sure that you know that someone is infected), and Fault Identification (you have ebola, son). Error encapsulation (and this applies equally to modules, components, systems, architectures, organizations) is invariably best done at the lowest level possible, which invariably breaks #3 and #4 (fault detection and identification). Treating all error conditions / exceptions with the same mechanism will generally ensure that you pick similar stances on encapsulation vs. detection and identification for all error conditions / exceptions, unless you decide to be extra careful about all of that. Using multiple mechanisms will allow you to pick, case by case, which one you feel is worth breaking depending on the nature of the fault and what your specific application or system requires. Option types are pretty awesome, but they're not blanked replacements for other mechanisms IMO. Context is king.
|
# ? Aug 30, 2013 15:02 |
|
i give up i am too dumb to computer
|
# ? Aug 30, 2013 15:40 |
|
where i stand on exceptions - i hate non local exits - option types are nicer for the semi predicate problem - goal directed evaluation is lovely - i'd rather have isolated proceses and a die statement to wind up the stack, which cannot be caught
|
# ? Aug 30, 2013 15:41 |
|
tef posted:a quick survey, who has read the paper on exceptions ? do you happen to have a copypasta of papers that everyone should have read? if so, copy/paste it plz same to you mononcqc, you seem pretty educated about the theoretical side of things too
|
# ? Aug 30, 2013 15:43 |
|
prefect posted:i use black backgrounds in my editors, but i've been saying "white space" all this time indent using semicolons
|
# ? Aug 30, 2013 15:44 |
|
tef posted:where i stand on exceptions Ah yeah, that makes more sense to me then. - option types allow for the encapsulation-at-the-lowest-level part, and if you don't handle them, they can bubble up to help with detection/identification. - die statement is a choice to go straight ahead for isolation (not spreading poo poo with side-effects outside of isolation/detection) - using processes helps isolation especially well with that there's a level above 'option types all the way down like they're turtles' in that ideal case, which is okay with me then. Move along
|
# ? Aug 30, 2013 15:46 |
|
boss key posted:blinkzorz i like to write tryget functions for that question you asked a couple of pages ago rather than exceptions. i'm probably about to be jumped on for it being bad practice or something but it makes me consistently happy this isn't really something you'd throw an exception on. trygets are also kind of a hack in languages w/ null. ex: in c# doing dictionary[key] will throw an exception if the key doesn't exist, so you can either do dictionary.contains(key) and then dictionary[key] which costs u 2 lookups, or you can use dictionary.tryget(key, out value) which internally does it in one lookup. this prevents you from getting nulls out of the dictionary. in java map.get(key) will return null if the key doesn't exist, but it will do so in one lookup. at that point you have to check for null. its C# code:
Java code:
|
# ? Aug 30, 2013 15:55 |
|
tef posted:where i stand on exceptions exceptions aren't non-local exits option types don't fulfill the same role as exceptions dying is rarely the correct way to handle an exception
|
# ? Aug 30, 2013 15:58 |
|
dying with isolated processes basically means "oops part of my system failed" and instead of pretending everything is fine and handling an exception you don't know how to handle locally, you just let that part die and isolate it from the rest. The rest of the system can then detect that failure and decide what to do with it: retry, report, log, abort, kill more poo poo that depended on it, etc. you're separating concerns (your consumer can't affect the process that died, just know it failed), you're going for the encapsulation of errors (the part that failed doesn't unwind the stack of everything that didn't fail, only its own, so the others can keep going if their operations were unrelated), you assume you have error detection (because you want to know other isolated processes died, and could be logging it for humans too), and you can do fault identification (because the other process isn't related and you might have a stack trace that gets reported on the side by the system away from the consumer's path, which may eat the exception and move along anyway). processes and signals for exception handling is fairly sweet and has a lot of neat semantics. They're not mutually exclusive with classical exceptions or option types for local handling of faults within each of the isolated processes. MononcQc fucked around with this message at 16:09 on Aug 30, 2013 |
# ? Aug 30, 2013 16:06 |
|
Shaggar posted:exceptions aren't non-local exits poop poop poop poop butt butt poop poop poop butt butt
|
# ? Aug 30, 2013 16:11 |
|
poop, butt, poop butt, poop-butt? poop poo-poo butt poo, buttpoo, poobutt. buttbutt. butt? butt butt butt, butt poop poo poo butt butt butt butt; butt butt butt butt butt
|
# ? Aug 30, 2013 16:12 |
|
fungah, shaggared again!
|
# ? Aug 30, 2013 16:13 |
|
https://www.youtube.com/watch?v=CX4Hd5UI7nM
|
# ? Aug 30, 2013 16:22 |
|
unixbeard posted:This is the best book if you want to learn about how unix works http://www.amazon.com/Programming-Environment-Addison-Wesley-Professional-Computing/dp/0321525949 ignore the advanced part though, it gets into details for sure, but starts off pretty introductory apue is the introductory text on "how to use unix APIs" there is seriously nothing easier i recommend it to everyone if only so you can read strace output properly
|
# ? Aug 30, 2013 16:28 |
|
gucci void main posted:yeah lol osx and vim if you are writing anything except objC, it's time to get on the linux and viper-mode bandwagon
|
# ? Aug 30, 2013 16:29 |
|
why would i want emacs to pretend to be vim when i can just use vim
|
# ? Aug 30, 2013 16:35 |
|
Bloody posted:why would i want emacs
|
# ? Aug 30, 2013 16:43 |
|
can text editors be our new argument tia
|
# ? Aug 30, 2013 16:43 |
|
vim supremacy
|
# ? Aug 30, 2013 16:44 |
|
Bloody posted:why would i want emacs to pretend to be vim when i can just use vim because vim is less extensible and involves fighting with dumb poo poo for basic features viper- and evil-mode exist to let you use your vim keybindings in a more flexible place p.s. i still use vi but it is really "notepad for unix", not for editing code
|
# ? Aug 30, 2013 16:57 |
|
Notorious b.s.d. posted:because vim is less extensible and involves fighting with dumb poo poo for basic features this sounds false i slapped in a couple basic plugins trivially and it does like everything i want now
|
# ? Aug 30, 2013 16:58 |
|
sublime text 3 suits all of my text editing needs on osx
|
# ? Aug 30, 2013 16:58 |
|
Posting Principle posted:can text editors be our new argument tia on what planet text editors arguments can possibly be new
|
# ? Aug 30, 2013 17:01 |
|
Zlodo posted:on what planet text editors arguments can possibly be new
|
# ? Aug 30, 2013 17:04 |
|
Otto Skorzeny posted:lebensraum. liebensraum would be room to love ah, thanks!
|
# ? Aug 30, 2013 17:08 |
|
Zlodo posted:on what planet text editors arguments can possibly be new earth
|
# ? Aug 30, 2013 17:09 |
|
Posting Principle posted:can text editors be our new argument tia what text editor does bizarro superman use?
|
# ? Aug 30, 2013 17:14 |
|
*looks up from IDE* wait, you can do that, you can edit code files like they're just text? whoa
|
# ? Aug 30, 2013 17:15 |
|
jooky posted:sublime text 3 suits all of my text editing needs on osx lol closed source hobby project have fun with those timebombs when the maintainer gets bored
|
# ? Aug 30, 2013 17:27 |
|
Notorious b.s.d. posted:because vim is less extensible and involves fighting with dumb poo poo for basic features vi is definitely "notepad for unix" in that its so terrible that only an idiot who uses Linux could think it was a good idea.
|
# ? Aug 30, 2013 17:29 |
|
jooky posted:sublime text 3 suits all of my text editing needs on osx Linux is so bad that some distros even have paid text editors. incredible
|
# ? Aug 30, 2013 17:29 |
|
|
# ? Jun 4, 2024 04:50 |
|
the yospos forecast calls for a heavy shaggaring throughout the labor day weekend
|
# ? Aug 30, 2013 17:34 |