|
Flat Daddy posted:there wasn't enough OOP lol
|
# ¿ Mar 24, 2016 19:21 |
|
|
# ¿ May 11, 2024 18:21 |
|
BattleMaster posted:well if the function doesn't ever return null then the problem being discussed wouldn't happen so there's no reason to check it in that case
|
# ¿ Mar 25, 2016 12:53 |
|
BattleMaster posted:it's up to you to know what a function is supposed to return before you call it, like i don't see how this is controversial, how do you even program if you just go "durr hurr i don't know what this function does *calls it anyway*" well duh, it's so loving easy!
|
# ¿ Mar 25, 2016 13:14 |
|
BattleMaster posted:yep are you saying that your code has never had a nullpointerexception?
|
# ¿ Mar 25, 2016 14:30 |
|
BattleMaster posted:i've never programmed anything serious in a language with exceptions
|
# ¿ Mar 25, 2016 14:36 |
|
Java code:
i mean i guess i have to after it bites me, but what is the level of due diligence here when implementing a TurdConsumer for the first time?
|
# ¿ Mar 25, 2016 15:10 |
|
CRIP EATIN BREAD posted:intellij will yell at you that a implementor of the interface doesnt also have the @NotNull annotation. i know, but i was kind of implying that the non-compliant butt comes from some external source, even though i just implemented and instantiated one myself in the example. i really didn't feel like creating a di framework just for another yospos turd joke.
|
# ¿ Mar 25, 2016 15:28 |
|
CPColin posted:^^^ If you defensively check for null anyway, Eclipse will complain about unnecessary code. so does idea which you can then suppress with //noinspection ConstantConditions
|
# ¿ Mar 25, 2016 15:53 |
|
Bloody posted:what the gently caress you can exit the do-block early using break code:
|
# ¿ Mar 25, 2016 16:40 |
|
CRIP EATIN BREAD posted:thats a pretty common pattern when you dont have goto. also if you have goto, but have heard the phrase "Go To Statement Considered Harmful" from the year 1968
|
# ¿ Mar 25, 2016 17:11 |
|
BattleMaster posted:i've used goto twice in embedded applications. the first was in a parser and was essentially identical to the do { } while (false) thing so that it could exit with common cleanup code even if there was an error (this saved a nontrivial amount of program space on my 8-bit micro with 32 kb of program space over other solutions, and i actually needed those bytes for other things). the other was to break out of nested switch blocks in the command packet handler for a usb device stack. just use gotos when you need them. back when dijkstra wrote his letter, goto was the only choice, there was no do-while loop to use instead.
|
# ¿ Mar 25, 2016 19:02 |
|
eschaton posted:there were plenty of real structured languages by then, not just Lisp but also languages like Algol-60 oh yeah? well gently caress you and your "facts"
|
# ¿ Mar 26, 2016 11:05 |
|
Soricidus posted:for example, right now i'm parsing html with regular expressions mods, ban this chucklefuck
|
# ¿ Mar 31, 2016 07:57 |
|
hey speaking of terrible uis, can you recommend any mockup/wireframe tool? i looked at moqups, since it was the first hit on google, and it seems pretty good. well, better than our current process of "draw colored rectangles on a powerpoint slide" at least.
|
# ¿ Apr 2, 2016 08:35 |
|
Maluco Marinero posted:moqups ain't so bad, it's good because it forces low fidelity, so you can focus on the ideas rather than the exact execution (which you'd do in sketch or something) yes, that's one reason why i like it. like you can see that the element is a date field, but people don't think that it's basically done.
|
# ¿ Apr 2, 2016 15:20 |
|
uncurable mlady posted:I use balsamiq for wireframes off to a great start
|
# ¿ Apr 2, 2016 15:23 |
|
Bloody posted:holy poo poo i parsed a line
|
# ¿ Apr 4, 2016 16:32 |
|
HoboMan posted:oh god, if you forget the var in your variable declaration javascript not only doesn't complain but assumes you want a global variable? "use strict";
|
# ¿ Apr 5, 2016 06:04 |
|
HappyHippo posted:dont do this, just do if(buttFunc === undefined) only do this if you have to check that buttFunc is specifically undefined. you can't call it anyway if it's null, false, 0 (edit: or NaN), so you are probably not interested in it being undefined, but "falsy" Wheany fucked around with this message at 06:08 on Apr 5, 2016 |
# ¿ Apr 5, 2016 06:06 |
|
I don't know if javascript: the good parts has had newer editions, but if it hasn't, remember that it describes the situation like 5 years ago. a lot has happened since then.
|
# ¿ Apr 5, 2016 06:11 |
|
Jabor posted:Though to be fair, you also can't call it if it's like, 2. true. but if(something) is idiomatic.
|
# ¿ Apr 5, 2016 06:20 |
|
JawnV6 posted:of all the goofy corners of C to copy well it's not like c where everything is actually an int, it's just that everything coerces into any other type automatically (not really)
|
# ¿ Apr 5, 2016 10:59 |
|
|
# ¿ Apr 7, 2016 13:26 |
|
i love c hashtag
|
# ¿ Apr 7, 2016 19:20 |
|
akadajet posted:js devs don't like to document poo poo, so i'm always trudging through source code to figure out what api's are available or they document poo poo only superficially, so it looks like good documentation at first
|
# ¿ Apr 8, 2016 05:52 |
|
hey speaking of Car extends Vehicle, i remember people talking about nethack's creature types and how one creature can polymorph into another type with different weaknesses and strenghts and such, and because of that, CaveTroll extends Troll extends Creature doesn't really work. so how would you check for a monster's weakness for petrification when the player hits it with a cockatrice corpse without going all code:
|
# ¿ Apr 8, 2016 06:00 |
|
oh, and i meant to say that you are allowed to use any language you want. the discussion back in prehistoric days was about reimplenemting it in c++ using oop because that was a relatively new and hot thing.
|
# ¿ Apr 8, 2016 06:36 |
|
whoops, too slow
|
# ¿ Apr 8, 2016 06:37 |
|
MononcQc posted:I agree with this post. Acceptable/Tolerable is easy; if you're lucky enough your users are going to dive in the source and be ready to do work to get the information they need. If you have decent docs, the users can find everything in there, but they have to read through stuff. But that's just decent. communication usually fails, except by accident
|
# ¿ Apr 8, 2016 15:45 |
|
i managed to draw a bunch of textured rectangles in opengl es on android after spending about 3 days on it. ama
|
# ¿ Apr 10, 2016 17:02 |
|
HoboMan posted:i mean i can just google poo poo, but i am getting the creeping feeling i have some unknown unknowns here. imagine a blinking gif that says "just code" be interested enough in programming that you sometimes read a book or watch a video learn from you mistakes. have facepalm moments when looking at code. make something for yourself, even if it's some dumb thing like a greasemonkey script that alerts you when a thread on sa is ripe for snypin'.
|
# ¿ Apr 11, 2016 06:24 |
|
#justprogrammerthings
|
# ¿ Apr 11, 2016 06:39 |
|
Bloody posted:lol if u cant just leave when ur sick of the poo poo we use punchcards. well not literally, but a web form where you have to click on a button when you arrive and leave. this is separate from the timesheets where you still need to go type your hours you can be drat sure that i loving beeline for the login button as soon as i come in from the front door. and after i click the logout button, i leave behind a cartoonesque dust cloud where i was standing.
|
# ¿ Apr 13, 2016 11:40 |
|
Maluco Marinero posted:Javascript frameworks never change. the exact opposite, really
|
# ¿ Apr 13, 2016 11:57 |
|
If it needs structural changes to the db, rest interface and ui, the default estimate is 2 weeks.
|
# ¿ Apr 13, 2016 18:48 |
|
#noestimates
|
# ¿ Apr 13, 2016 18:49 |
|
i like functions that return functionsJavaScript code:
|
# ¿ Apr 14, 2016 15:53 |
|
farts.reduce(function() {return "toot"})
|
# ¿ Apr 14, 2016 16:13 |
|
Notorious QIG posted:again because it's a simple example to demonstrate the general gist of what im talking about you have to use "butt" and "fart" as your variable names or us terrible yospos programmers will think you're posting production code.
|
# ¿ Apr 15, 2016 07:49 |
|
|
# ¿ May 11, 2024 18:21 |
|
Notorious QIG posted:what if i write enterprise code for the fartbutt industry are you hiring? i'm willing to relocate
|
# ¿ Apr 15, 2016 15:26 |