|
when I was seventeen i wrote some bad PHP i wrote some bad PHP blogging software on a slackware box for my own flash toon comedy website when I was seventeen
|
# ? May 16, 2013 07:27 |
|
|
# ? May 16, 2024 19:10 |
|
When I was only three My momma said to me "Don't go hanging with the web devs Or you're gonna learn PHP"
|
# ? May 16, 2013 11:56 |
|
killed by cock block
|
# ? May 16, 2013 11:57 |
|
THC posted:last summer I worked at a C# shop which swears by K&R style. but nobody could figure out how to stop ReSharper autocorrecting to Allman style. So every time I checked in code I had to K&R-ize it first i see it in the resharper options, languages > c# > formatting style > braces layout
|
# ? May 16, 2013 11:59 |
|
prefect posted:i see it in the resharper options, languages > c# > formatting style > braces layout keep in mind this is a shop dumb enough to not use allman so they cant exactly be expected to be able to navigate menus
|
# ? May 16, 2013 14:25 |
|
Bloody posted:keep in mind this is a shop dumb enough to not use allman so they cant exactly be expected to be able to navigate menus don't make me cut you
|
# ? May 16, 2013 14:26 |
|
Doc Block posted:And what, pray tell, is the Shaggar-approved brace style? all man style, hard tabs only (duh)
|
# ? May 16, 2013 14:45 |
|
Doc Block posted:
cool ugly unreadable crap
|
# ? May 16, 2013 14:47 |
|
Shaggar posted:cool ugly unreadable crap when all the braces are on lines by themselves, things get stretched out vertically and my eyes have trouble understanding them
|
# ? May 16, 2013 14:48 |
|
Also, tabs are 4 spaces, saved as hard tabs. 8 spaces is acceptable, depending on the language.
|
# ? May 16, 2013 14:55 |
|
everyone just get a bigger monitor if u're complainnig about how much space poo poo is taking up on ur screen god drat
|
# ? May 16, 2013 15:28 |
|
hi cam how is your imac doing?
|
# ? May 16, 2013 15:51 |
|
Doc Block posted:real men use the K&R One True Brace Style this is almost correct, but opening braces never go on their own line
|
# ? May 16, 2013 16:27 |
|
Tiny Bug Child posted:this is almost correct, but opening braces never go on their own line
|
# ? May 16, 2013 16:31 |
|
Tiny Bug Child posted:this is almost correct, but opening braces never go on their own line Maybe if you're writing in a babby p language, but in Real Programming Languages, when writing functions & methods the opening brace goes on its own line.
|
# ? May 16, 2013 16:43 |
|
|
# ? May 16, 2013 16:53 |
|
I never had to use braces, perfectteeth crew represent
|
# ? May 16, 2013 17:11 |
|
GNU Order posted:I never had to use braces, perfectteeth crew represent BRACES EVERYWHERE
|
# ? May 16, 2013 17:13 |
|
code:
|
# ? May 16, 2013 18:47 |
|
indent plan
|
# ? May 16, 2013 19:00 |
|
nrook posted:
why, in order to run some external program, do i have to get involved with something in "system.diagnostics"? that seems like the wrong place for "i want to execute something"
|
# ? May 16, 2013 19:06 |
|
lol is that a windows thing? can't be worse than NSTask
|
# ? May 16, 2013 19:22 |
|
prefect posted:why, in order to run some external program, do i have to get involved with something in "system.diagnostics"? that seems like the wrong place for "i want to execute something" you're diagnosing a hole in the .net framework, obviously
|
# ? May 16, 2013 19:44 |
|
Shaggar posted:well yes if you're a terrible developer that happens, sure. but if you cant properly deal w/ checked exceptions ur a huge idiot. there is literally no way to "properly deal with checked exceptions." the key to safe exception handling is centralization. every process/app domain/whatever should have a centralized handler responsible for managing control flow based on exception type/data/context. the good part about checked exceptions is that they provide information regarding what exceptions may be thrown, which helps get the logic in your centralized handler right the first time. the bad part about checked exceptions is that it encourages bad exception handling practices by forcing you to deal with exceptions throughout your code. the good is greatly outweighed by the bad since proper design all but eliminates the need for conditional logic based on exception type.
|
# ? May 16, 2013 19:56 |
|
Tiny Bug Child posted:this is almost correct, but opening braces never go on their own line agreeing with tbc Hellsworn Barn posted:there is literally no way to "properly deal with checked exceptions." the key to safe exception handling is centralization. every process/app domain/whatever should have a centralized handler responsible for managing control flow based on exception type/data/context. the good part about checked exceptions is that they provide information regarding what exceptions may be thrown, which helps get the logic in your centralized handler right the first time. the bad part about checked exceptions is that it encourages bad exception handling practices by forcing you to deal with exceptions throughout your code. the good is greatly outweighed by the bad since proper design all but eliminates the need for conditional logic based on exception type. disagreeing with someone who's disagreeing with shaggar (which is practically the same as agreeing with shaggar) this day is off to a terrible start!
|
# ? May 16, 2013 20:04 |
|
forcing you to handle exceptions is always the right choice. if someone eats the exception or handles it lazily then you can point right at their code and tell them their fired. if you don't force people to handle exceptions then they will just ignore them completely and let them bubble up the stack beyond where they could have been handled. at that point you have to dig through the code and documentation to find where it was thrown and where it should have been handled.
|
# ? May 16, 2013 20:06 |
|
you're not forced to handle exceptions though, the whole point is that any line can throw one so you don't have to be explicit which one. checked exceptions are a poor implementation of option types.
|
# ? May 16, 2013 20:11 |
|
now shaggar has to argue against making error handling explicit and enforced by the compiler, to a level where you can clearly see where errors are returned and how they are handled. and then make an argument that doing that in a way so broken even microsoft wouldn't touch is better
|
# ? May 16, 2013 20:13 |
|
|
# ? May 16, 2013 20:13 |
|
oh I forgot shaggar wants checked exceptions and not option types because he's anti union
|
# ? May 16, 2013 20:14 |
|
Wouldn't you rather either instead of option.
|
# ? May 16, 2013 20:21 |
|
tef posted:you're not forced to handle exceptions though, the whole point is that any line can throw one so you don't have to be explicit which one. nah option types would be an awful, overcomplicated way to do error handling. exceptions are easy to deal w/ and checked exceptions ensure that developers deal with them instead of ignoring them.
|
# ? May 16, 2013 20:24 |
|
MY NON LOCAL CONTROL FLOW
|
# ? May 16, 2013 20:29 |
|
Shaggar posted:checked exceptions ensure that developers deal with them instead of ignoring them. i want to believe
|
# ? May 16, 2013 20:30 |
|
even the java library doesn't make effective use of them
|
# ? May 16, 2013 20:30 |
|
prefect posted:i see it in the resharper options, languages > c# > formatting style > braces layout Yeah, tried that, they had some other plugin that was loving it probably. It was a bad job
|
# ? May 16, 2013 20:33 |
|
tef posted:even the java library doesn't make effective use of them You are probably thinking of Java 1.0-ish stuff that is all uniformly awful in every single way. Most of the newer stuff uses unchecked exceptions, but the usage of checked exceptions for environment faults and unchecked for programmer fuckups is p. consistent.
|
# ? May 16, 2013 21:07 |
|
tef posted:oh I forgot shaggar wants checked exceptions and not option types because he's anti union close thread, a better post than this cannot be made
|
# ? May 16, 2013 21:12 |
|
Shaggar posted:handles it lazily you know what's really lazy? bad fuckin design
|
# ? May 16, 2013 21:28 |
|
|
# ? May 16, 2024 19:10 |
|
JewKiller 3000 posted:close thread, a better post than this cannot be made i can't remember who i stole it from either
|
# ? May 17, 2013 00:34 |