|
horse mans posted:op here's som code i wrote for you hth i refactored your horrible code
|
# ¿ May 7, 2013 23:59 |
|
|
# ¿ Apr 29, 2024 19:52 |
|
Mr SuperAwesome posted:.net reflector is cool because you can disassemble real code that people sell and you realise the people writing it were fuckin nuts try diving into the framework code...
|
# ¿ May 8, 2013 00:04 |
|
Bloody posted:whats wrong with singletons please don't blackball me static data
|
# ¿ May 8, 2013 00:50 |
|
JG_Plissken posted:whats wrong with static data please don't blackball me static things can't be changed and software that can't change is generally pretty lovely!!
|
# ¿ May 8, 2013 06:14 |
|
nosql nosql NOSQL
|
# ¿ May 8, 2013 22:33 |
|
Pro tip: always catch exceptions and log them straight away you can't trust that calling methods will catch it in fact you should have exception handling and logging in literally every method everywhere!
|
# ¿ May 8, 2013 22:54 |
|
chumpchous posted:Jquery is p easy it's the functions nested within functions nested within functions from js that I don't really get stop whatever you're doing and go read up on closures.
|
# ¿ May 12, 2013 16:17 |
|
Doc Block posted:LOL if having everything be an anonymous type is considered good code in C#. B-b-but I saved myself a split second of typing, who cares about readability! i like var and make a point of using it everywhere and updating existing code to use it in favor of explicitly typed local variables.
|
# ¿ May 12, 2013 16:23 |
|
this is a dumb argument
|
# ¿ May 12, 2013 16:48 |
|
are you fuckers serious about checked exceptions
|
# ¿ May 13, 2013 21:38 |
|
no i do not shaggar and no i do not like checked exceptions
|
# ¿ May 13, 2013 21:42 |
|
OBAMA BIN LinkedIn posted:when a trivial error can kill your program then you should drat well have to make sure that is what you intended checked exceptions don't solve this problem they make it worse.
|
# ¿ May 15, 2013 00:36 |
|
Checked exceptions, won't compile without the throws clause:code:
code:
code:
|
# ¿ May 15, 2013 01:44 |
|
or even better code:
|
# ¿ May 15, 2013 06:49 |
|
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 |
|
Shaggar posted:handles it lazily you know what's really lazy? bad fuckin design
|
# ¿ May 16, 2013 21:28 |
|
webservices are bad
|
# ¿ Oct 3, 2013 18:25 |
|
notorious bsd i don't think you've thought this through
|
# ¿ Jun 14, 2014 19:57 |
|
what if demand on your services is not constant (e.g. high demand one day a month)? what about network saturation? what about latency? what about durability?
|
# ¿ Jun 14, 2014 20:23 |
|
|
# ¿ Apr 29, 2024 19:52 |
|
Notorious b.s.d. posted:lol if you think you can answer these questions more effectively with a poorly-understood distributed setup running on someone else's hardware who said anything about someone else's hardware?
|
# ¿ Jun 14, 2014 21:31 |