|
Space Whale posted:We walked through the code together (tribal knowledge, woo!! gently caress writing poo poo down!) and he kept apologizing for how bad the code was. i do this every time i show someone any code i've written.
|
# ? Aug 22, 2016 20:43 |
|
|
# ? May 25, 2024 13:28 |
|
Space Whale posted:I thought consulting was glamorous not "oh my gooooood why didn't you call us sooner." On the flip side I feel better about my code. lol
|
# ? Aug 22, 2016 20:44 |
|
'i know its bad, i know, sorry, this part is especially gross'
|
# ? Aug 22, 2016 20:44 |
|
common issue in creative fields: more quickly developing an eye for what is good/what is bad than developing the skills to create something good. if you're lucky, after years of effort you may be capable of creating things that you consider to be good
|
# ? Aug 22, 2016 20:45 |
|
This isn't his code, as in he wrote it. He did not. This is the mess we're fixing though.
|
# ? Aug 22, 2016 20:46 |
|
wait then why is he apologizing for it
|
# ? Aug 22, 2016 20:50 |
|
Bloody posted:wait then why is he apologizing for it He had some knowledge of it and a lot of stuff that isn't documented (biz rules, accounting formulas, bla bla bla) and he had to impart it and walk me through it, otherwise it's basically super slow spelunking and deciphering.
|
# ? Aug 22, 2016 20:52 |
|
echinopsis posted:what is this? something forgeniers get to remote work from their hut in mongolia yes it's some e-commerce system made in php. it's... not very nice to work with but eh I've seen worse.
|
# ? Aug 22, 2016 21:09 |
|
so the api i am now lead dev on is secretly just a wrapper for a another api that no one even knew about by a wrapper i mean the endpoints in it literally just call endpoints for a different api e: i'm really at a loss for what to do about this HoboMan fucked around with this message at 21:54 on Aug 22, 2016 |
# ? Aug 22, 2016 21:41 |
|
Symbolic Butt posted:yes so what do ya do? janitor websites or handle transcations
|
# ? Aug 22, 2016 22:02 |
|
HoboMan posted:so the api i am now lead dev on is secretly just a wrapper for a another api that no one even knew about Get paiiiiiiiiid
|
# ? Aug 22, 2016 22:08 |
|
Replace it with Apigee, or is the service supposed to reimplement those features?
|
# ? Aug 22, 2016 22:15 |
|
MrMoo posted:Replace it with Apigee, or is the service supposed to reimplement those features? lol no, it's literally an api for our api
|
# ? Aug 22, 2016 22:29 |
|
CPColin posted:Get paiiiiiiiiid different internal api that no one is developing because the ohter api was masking it so the fact it exists fell though the cracks
|
# ? Aug 22, 2016 22:31 |
|
like this is dumber than i could have possibly ever imagined
|
# ? Aug 22, 2016 22:37 |
|
The closest I have seen is having a C++ API wrapped by a C API being wrapped by an open source C++ API because the C API was old and they introduced C++ to simplify the internal code and reduce memory leaks but no one wanted to introduce a new API to support. C++ source was popular due to ABI breakage on compilers.
|
# ? Aug 22, 2016 22:40 |
|
hahahaholy poo poo i found the "hidden" api. this server is literally making an http request to itself
|
# ? Aug 22, 2016 22:54 |
|
HoboMan posted:hahahaholy poo poo i found the "hidden" api. this server is literally making an http request to itself ultimate code reuse
|
# ? Aug 22, 2016 22:57 |
|
im a little slow but this is also useful in multithreaded contexts, ie thread A will never change the object so it wants it const to enforce that, but thread B may be simultaneously changing the object. thread A needs to know that it may change (volatile) but also that it's not allowed to do the changing itself (const)
|
# ? Aug 22, 2016 23:36 |
|
GameCube posted:*reading visual studio express 2005 build output, in idiot undergrad voice* cannot assign to a variable that is const? what the gently caress? *selects the word "const" by holding trackpad button with one finger and dragging over it with the other, code compiles* wow computers are loving bullshit, why would they include a word that just makes your code not compile *submits homework assignment, gets wasted at 6 pm on a tuesday* speaking of which i was trying to read some code today from one of our interns and he had a member variable i that he used as a loop variable anywhere he used as a loop and for some reason every single method had the following line in it: code:
|
# ? Aug 22, 2016 23:37 |
|
"the compiler yelled at me about unused variables (before i wrote the actual loop) without that!"
|
# ? Aug 22, 2016 23:40 |
|
HoboMan posted:hahahaholy poo poo i found the "hidden" api. this server is literally making an http request to itself yesssss
|
# ? Aug 22, 2016 23:48 |
|
HoboMan posted:different internal api that no one is developing because the ohter api was masking it so the fact it exists fell though the cracks Oh nice that's way better!
|
# ? Aug 23, 2016 00:19 |
|
new version of android apparently has some java 8 support. you can use lambdas on projects targeting back to android 2.3 but some of the other features require targeting the new api # time to learn me a lambda i guess
|
# ? Aug 23, 2016 01:59 |
|
well the player has a throttle in my 3D game now so that's something
|
# ? Aug 23, 2016 02:00 |
|
Lutha Mahtin posted:new version of android apparently has some java 8 support. you can use lambdas on projects targeting back to android 2.3 but some of the other features require targeting the new api # lambdas own functional programming owns
|
# ? Aug 23, 2016 02:05 |
|
HoboMan posted:hahahaholy poo poo i found the "hidden" api. this server is literally making an http request to itself please never stop posting.
|
# ? Aug 23, 2016 02:35 |
|
oauth2 is poo it's surprisingly difficult to make a well-layered implementation of an oauth2 provider but then maybe i'm just a terrible programmer at least it's not oauth1 where you had to do a bunch of cryptographic shite yourself because oh no what if somebody breaks your TLS encryption and we want to delude ourselves that all hope of security isn't already lost
|
# ? Aug 23, 2016 02:56 |
|
MALE SHOEGAZE posted:loving owned for like 5 hours in stage because i didn't know java has its own CA trust process people bitch and whine about containers and flatpak et al but java doing its own dumb ssl stuff is terrible and gets a pass because??
|
# ? Aug 23, 2016 05:53 |
|
Mr Dog posted:oauth2 is poo just use the oauth2 stuff built in to .net. if you need a more sophisticated workflow, checkout identityserver3 (or 4 if ur on .net core).
|
# ? Aug 23, 2016 06:08 |
|
my stepdads beer posted:people bitch and whine about containers and flatpak et al but java doing its own dumb ssl stuff is terrible and gets a pass because?? that's because it's cross platform! you could be using it on an os that doesn't have a cert store! hobbesmaster fucked around with this message at 06:41 on Aug 23, 2016 |
# ? Aug 23, 2016 06:33 |
|
windows
|
# ? Aug 23, 2016 06:39 |
|
AWWNAW posted:ultimate code reuse class hierarchy look like a dishrag
|
# ? Aug 23, 2016 06:57 |
|
Lutha Mahtin posted:new version of android apparently has some java 8 support. you can use lambdas on projects targeting back to android 2.3 but some of the other features require targeting the new api # just press ctrl-space and let the ide do it. no learning required
|
# ? Aug 23, 2016 07:36 |
|
like seriously button.addClickListener( <ctrl-space> and the ide will suggest "event -> {}"
|
# ? Aug 23, 2016 07:39 |
|
HoboMan posted:hahahaholy poo poo i found the "hidden" api. this server is literally making an http request to itself a few months ago i wrote a script that would delete itself from the service that ran it before exiting it actually worked pretty well
|
# ? Aug 23, 2016 07:56 |
|
Wheany posted:<ctrl-space> wish this was like predictive text where you could mash repeatedly until there's a whole function
|
# ? Aug 23, 2016 07:56 |
|
Progressive JPEG posted:a few months ago i wrote a script that would delete itself from the service that ran it before exiting if only the nsa had done the same
|
# ? Aug 23, 2016 07:57 |
|
so it seems object oriented C, and especially my beloved use of superclasses at non-zero offsets, is technically broken as it violates strict aliasing. basically nobody can agree on what C code compiles to anymore. there are two proposals for dialects of C that make intuitive sense and privilege the programmer's needs over the compiler writer's: boringcc: https://groups.google.com/forum/m/#!msg/boring-crypto/48qa1kWignU/o8GGp2K1DAAJ friendly c: http://blog.regehr.org/archives/1180
|
# ? Aug 23, 2016 11:35 |
|
|
# ? May 25, 2024 13:28 |
|
fritz posted:class hierarchy look like a dishrag
|
# ? Aug 23, 2016 12:59 |