|
the stupidest, most useless coworker i ever had had a phd in computer science and was previously the cto at a small tech company
|
# ? Mar 22, 2015 02:38 |
|
|
# ? May 23, 2024 04:28 |
|
I haven't interviewed at a good place that did not throw me into a gauntlet of 4-7 sessions at ~1 hour each. The places that were shorter were either complete red flags for other reasons or let me go early because I obviously failed the first few.
|
# ? Mar 22, 2015 07:28 |
|
a friend of mine applied to a job and they gave him a take home exam on opengl. i read some of the questions and it was the kind of poo poo only a device driver developer would care about (super specific stuff). this was a mobile game development position using cocos2d and unity oh and the the exam was commissioned to some german company
|
# ? Mar 22, 2015 09:35 |
|
a while ago i was asking about the sanity of inserting Tcl in the tool chain for a project. the best solution i arrived at was to use tcljava to wrap the data up in a plain old java object. but, it turns out i can also parse the data source as a Lisp list, i got the go-ahead to use Common Lisp + Hunchentoot instead of Java Jerry Bindle fucked around with this message at 17:58 on Mar 22, 2015 |
# ? Mar 22, 2015 17:52 |
|
wow you are a sadist you just hate your coworkers
|
# ? Mar 22, 2015 18:04 |
|
yes and yes i haven't committed to the CL idea yet, still considering tomcat+java. i've got a pro-con list going, right now the biggest CL con is "will never be able to hand off project"
|
# ? Mar 22, 2015 18:23 |
|
that's not a con it's job security. wait aren't you the guy who was thinking about bundling a java tcl interpreter just to interpret a tcl list literal (which is just like, {1 2 3} or whatever) and now you've moved on to doing the whole thing in CL? lol. have fun.
|
# ? Mar 22, 2015 18:41 |
|
who's going to do code review?
|
# ? Mar 22, 2015 18:43 |
|
choosing between a range of obscure languages instead of just writing a trivial parser is appropriate behavior for this thread
|
# ? Mar 22, 2015 18:44 |
|
how to parse a tcl list in java: step 1 - choose a cl implementation
|
# ? Mar 22, 2015 18:45 |
|
what would be The Right Way to parse a Tcl list in java? i'm aware that there is some kind of flex/bison java API's, but defining a grammar etc seems like a lot more work than using a Tcl interpreter.
|
# ? Mar 22, 2015 19:20 |
|
Subjunctive posted:who's going to do code review? some back ground info about me might help explain my terrible ideas, i have an EE degree and work with a bunch of other EE havers. our software projects are either embedded apps, or internal tools. so the code reviews are "does it work? ok good job"
|
# ? Mar 22, 2015 19:24 |
|
as an EE teriblecoder i am obliged to tell you that you should really get some non-EE eyes to look at your stuff you will thank yourself later
|
# ? Mar 22, 2015 19:32 |
|
maybe that's why they're in the terrible programmer thread
|
# ? Mar 22, 2015 19:36 |
|
Barnyard Protein posted:what would be The Right Way to parse a Tcl list in java? i'm aware that there is some kind of flex/bison java API's, but defining a grammar etc seems like a lot more work than using a Tcl interpreter. this, but the opposite
|
# ? Mar 22, 2015 21:02 |
|
Barnyard Protein posted:what would be The Right Way to parse a Tcl list in java? i'm aware that there is some kind of flex/bison java API's, but defining a grammar etc seems like a lot more work than using a Tcl interpreter. idk, it seems like a lot less work to me. you just have to read a list like {1 2 3 4} right?
|
# ? Mar 22, 2015 21:10 |
|
this would probably be pretty trivial in antlr i dunno.
|
# ? Mar 22, 2015 21:22 |
|
fart simpson posted:idk, it seems like a lot less work to me. you just have to read a list like {1 2 3 4} right? nah, Tcl lists can be used to form trees. i posted this example before, here it is again for reference. code:
Jerry Bindle fucked around with this message at 21:34 on Mar 22, 2015 |
# ? Mar 22, 2015 21:27 |
|
Barnyard Protein posted:nah, Tcl lists can be used to form trees. i posted this example before, here it is again for reference. global replace {} with <list></list> and then treat it as the xml it should have been in the first place
|
# ? Mar 22, 2015 21:35 |
|
rrrrrrrrrrrt posted:this would probably be pretty trivial in antlr i dunno. antler looks like it'd be very useful to know how to use, thanks
|
# ? Mar 22, 2015 22:03 |
|
Barnyard Protein posted:nah, Tcl lists can be used to form trees. i posted this example before, here it is again for reference. ok so you have to parse {1 2 3 4} but it can be recursive. doesnt seem to actually change very much
|
# ? Mar 23, 2015 01:02 |
|
there's no need to even bother with antlr, lisp S-expressions are a format specifically designed for minimum parsing there are pre-existing lisp plist parsers for java. when i googled it i found where people had done it as a "hello world"-type exercise. ridiculous overkill
|
# ? Mar 23, 2015 02:00 |
|
Soricidus posted:global replace {} with <list></list> and then treat it as the xml it should have been in the first place shaggar???
|
# ? Mar 23, 2015 02:03 |
|
Notorious b.s.d. posted:there's no need to even bother with antlr, lisp S-expressions are a format specifically designed for minimum parsing yeah this is like babys first parser
|
# ? Mar 23, 2015 02:10 |
|
Soricidus posted:global replace {} with <list></list> and then treat it as the xml it should have been in the first place lmfao
|
# ? Mar 23, 2015 02:13 |
|
uncurable mlady posted:shaggar??? xml is so good that scala, aka java++, has xml literals
|
# ? Mar 23, 2015 06:34 |
|
Bloody posted:xml is so good that scala, aka java++, has xml literals this is still really funny
|
# ? Mar 23, 2015 06:40 |
|
uncurable mlady posted:shaggar??? lol i did that too when i first read it
|
# ? Mar 23, 2015 09:52 |
|
Soricidus posted:global replace {} with <list></list> and then treat it as the xml it should have been in the first place
|
# ? Mar 23, 2015 15:34 |
|
comin from a big scripting and apache webserver background stuff like embedding a webserver in your app is crazy poo poo still don't know what the hell to do with maven really, it's an xml document evaluated as a script or some poo poo
|
# ? Mar 23, 2015 16:29 |
|
actually that's exactly what it isn't. the xml is a definition of your project and the required plugins to build it. all the code is in the plugins and that separation of concerns makes for far more manageable builds. build scripts are the worst.
|
# ? Mar 23, 2015 16:30 |
|
Embedding web servers totally makes sense if your platform is able to do it in non-idiotic ways.
|
# ? Mar 23, 2015 17:32 |
|
MononcQc posted:Embedding web servers totally makes sense if your platform is able to do it in non-idiotic ways. what is "non-idiotic"
|
# ? Mar 23, 2015 18:08 |
|
basically using java and tomcat. altho it might be easier to just use jetty or a shared tomcat instance.
|
# ? Mar 23, 2015 18:10 |
|
im trying to think of a scenario where I'd do it that way and the only thing i can think of is if im running a single java process with tomcat and other servers like maybe jms or something but idk why I'd do it that way.
|
# ? Mar 23, 2015 18:13 |
|
Share Bear posted:comin from a big scripting and apache webserver background stuff like embedding a webserver in your app is crazy poo poo jetty is actually even easier than embedded tomcat
|
# ? Mar 23, 2015 18:36 |
|
Share Bear posted:what is "non-idiotic" code:
|
# ? Mar 23, 2015 18:36 |
|
uhhhh is it ever ok to pass the oauth token between clients? i.e. i have a website that authenticates with oauth and gets an access token from google, does something, then passes this access token to the server in a form field, and the server then does something on google this feels really skeevy to me but i'm not seeing it condemned as horrifying like i'd expect
|
# ? Mar 23, 2015 20:23 |
|
EVGA Longoria posted:uhhhh is it ever ok to pass the oauth token between clients? why not have google redirect (after the authentication) to some view where you can do whatever you need to on the backend, why go from google -> page -> backend
|
# ? Mar 23, 2015 20:25 |
|
|
# ? May 23, 2024 04:28 |
|
Valeyard posted:why not have google redirect (after the authentication) to some view where you can do whatever you need to on the backend, why go from google -> page -> backend it's the google picker basically, if you select an actual "Google Document" which was written on google drive, it lets you just download it from a url, no authentication or anything if you select something uploaded to google drive, you have to make a call to the export function to get a copy of the file the front end has to make all of the API calls to start (to actually pick the file) the backend is only involved in the case they select an uploaded file, at which point it needs to make an api call to retrieve the file the client could handle all the downloading and sending of the files, but that seems like a really big waste (especially on mobile) some existing code does this, which is why i'm asking. it would solve a lot to just use that code, but passing oauth tokens around skeeves me out
|
# ? Mar 23, 2015 20:32 |