|
salted hash browns posted:if it was ~~java~~ i would just serialize the object no probs yeah seriously, just use GSON I even customized it so that it can take json that has a value code:
code:
|
# ? Oct 22, 2012 10:10 |
|
|
# ? May 9, 2024 15:55 |
|
tef posted:although, here is a fun question code:
|
# ? Oct 22, 2012 10:39 |
|
Gazpacho posted:given a linked list (forward links only) and unsigned integer return the node that far from the end. my initial instinct would be to go through the list reversing every link, then tracing back undoing your work + remembering which one was the nth. O(n) but hacky... e: actually that's probably worse than literally just looping through to count how many links there are then looping through to find the nth. never mind...
|
# ? Oct 22, 2012 11:27 |
|
tef posted:although, here is a fun question json is just unstructured text. it can be both whatever type the producer/consumer wants and not a type at all.
|
# ? Oct 22, 2012 14:26 |
|
or if you're litterally just asking what tool to use to make it eaiser, then the answer is java (duh). json is still poo poo and you should be using xml w/ schema instead since anything not written by you will have a much easier time w/ serialization.
|
# ? Oct 22, 2012 14:28 |
|
why are you even worrying about that if java is so great. just put whatever you want into an array and pass it to java's json_encode()?
|
# ? Oct 22, 2012 14:33 |
|
tef posted:so, if people want to do this terrible thing. what should they do? Just explode everything out into objects. JavaScript code:
Python code:
|
# ? Oct 22, 2012 15:25 |
|
Zombywuf posted:Just explode everything out into objects. but what calendar is that ?!
|
# ? Oct 22, 2012 15:56 |
|
Tiny Bug Child posted:just put whatever you want into an array and pass it to java's json_encode()?
|
# ? Oct 22, 2012 16:29 |
|
Zombywuf posted:Just explode everything out into objects.
|
# ? Oct 22, 2012 16:49 |
|
drat kids can get through a serialization discussion without the word 'endian' getting tossed around
|
# ? Oct 22, 2012 16:59 |
|
JawnV6 posted:drat kids can get through a serialization discussion without the word 'endian' getting tossed around yeah it's great, by using inefficient as hell decimal utf-8 encoding because it's 2012 and computing power is basically free
|
# ? Oct 22, 2012 17:06 |
|
Cocoa Crispies posted:yeah it's great, by using inefficient as hell decimal utf-8 encoding because it's 2012 and computing power is basically free you sound like a node "programmer"
|
# ? Oct 22, 2012 17:11 |
|
Cocoa Crispies posted:yeah it's great, by using inefficient as hell decimal utf-8 encoding because it's 2012 and computing power is basically free this and it is easier to gzip poo poo, rather than spend your time bitpacking if you want to get something small over the wire. the other nice thing is that by using human bits, it's harder to gently caress up parsing.
|
# ? Oct 22, 2012 18:32 |
|
MononcQc posted:but what calendar is that ?! Julian. I'll be in my grave before I recognize the bastard child that is the Gregorian calendar.
|
# ? Oct 22, 2012 20:50 |
|
rotor posted:Julian. I'll be in my grave before I recognize the bastard child that is the Gregorian calendar. Oy vey, the Jewish Calendar gets no love! And What about the French republican Calendar?!
|
# ? Oct 22, 2012 20:54 |
|
i use the jouleian calendar never know watt day it is
|
# ? Oct 22, 2012 20:55 |
|
JawnV6 posted:i use the jouleian calendar erg, these puns are terrible.
|
# ? Oct 22, 2012 21:09 |
|
rotor posted:Julian. I'll be in my grave before I recognize the bastard child that is the Gregorian calendar. pfft, calendars. real men use TAI epoch seconds. timezones, leap seconds, and the rest of the human garbage that is time can gently caress off.
|
# ? Oct 22, 2012 21:10 |
|
try the grey gorean calendar, every day is depressing and filled with whipcracks
|
# ? Oct 22, 2012 21:11 |
|
I just use a chunk of plutonium for radiometric dating i know what day it is by when i die from radiation poisioning
|
# ? Oct 22, 2012 21:13 |
|
tef posted:this and it is easier to gzip poo poo, rather than spend your time bitpacking if you want to get something small over the wire. if you do use binary: http://armstrongonsoftware.blogspot.com/2008/07/ubf-and-vm-opcocde-design.html joe armstrong posted:In fact the byte code for PLUS should be 43 in all byte coded VMs - there should be laws that make it a criminal offense for the opcode to be anything other than 43 - thus it is written - there will of course, be a problem with the opcode for TIMES - if you are familiar with your ASCII codes then you should understand why.
|
# ? Oct 22, 2012 22:23 |
|
I wish UBF(1-3) caught on It's a nifty little thing.
|
# ? Oct 22, 2012 22:51 |
|
hackers UBF
|
# ? Oct 22, 2012 23:24 |
|
Learnable Programming by Bret Victor How to make programming learnable with examples and Shaggar-esqe opinions.
|
# ? Oct 22, 2012 23:26 |
|
That processor of yours should be very very hot and make them fans spin very fast.
|
# ? Oct 22, 2012 23:30 |
|
tef posted:let's assume you have to use json for a format. (on the basis that for some reason, people love json, even though it is poo poo for what i'm about to ask, cos no-one ever got fired for using json). JSON schema is a thing and Google have a nice example.
|
# ? Oct 23, 2012 00:19 |
|
wolffenstein posted:Learnable Programming by Bret Victor bret victor has a breathtakingly inflated opinion of his own importance and it bothers me slightly that people let him get away with it the guy gave an hour long speech earlier this year in which he demonstrated some example programs hes written. this comprised half an hour of casually-scripted pseudo-spontaneous "oh i wonder what would happen if" moments designed to make using his software appear effortless and intuitive, followed by half an hour of thoughtfully spewing platitudes in order to elevate his computer programs into a fully fledged philosophy for living one's life not content with this, he then, from his newly-erected visionary podium, without so much as a whiff of self awareness, compares himself to tesla and englebert, and suggests his personal life philosophy (wanting to improve software usability) is like 19th century feminist elizabeth cady stanton's desire to overcome social injustice the mans a loving intellectual fraud and i wish people would stop cleaning his anus out with their tongues Rufus Ping fucked around with this message at 01:22 on Oct 23, 2012 |
# ? Oct 23, 2012 01:08 |
|
AWWNAW posted:I have to interview a developer tomorrow what sort of coding test should I give them coding tests are stupid and a waste of time ask real questions that require paragraph-length answers about concepts that are crucial to your business and or your project not only will this reveal whether or not the individual actually understand those concepts--as opposed to is he or she merely able to poo poo out some crummy code on command--but it will also demonstrate whether the candidate posesses actual communication skills which are too often sorely lacking best of all it saves everyone the indignity of trying to draw curly braces on a white board and no trick google questions about light switches or escaping from a blender or you will surely burn in hell forever
|
# ? Oct 23, 2012 01:33 |
|
if you need to ask specific development questions, ask real world ones and expect real world solutions. ex: Q: You have a csv file that you need to need to read and then load into a database. how do u do? A: grab a csv deserializer off of maven, use it to load the data into ur classes, spit the data into procs via mybatis. if they start writing code for a csv parser get up and leave.
|
# ? Oct 23, 2012 01:38 |
|
bret victor posted:In his influental essay No Silver Bullet, Fred Brooks makes the case that software is inherently "invisible and unvisualizable", and points out the universal failure of so-called "visual programming" environments. I don't fault Fred Brooks for his mistake -- visual programming is indeed worthless. But that's because it visualizes the wrong thing. holy lol
|
# ? Oct 23, 2012 02:27 |
|
herp derp, if only we could see what that terrible library is doing in the form of endless lists of numbers and abstract drawings then we all could be programmers
|
# ? Oct 23, 2012 02:31 |
|
Csv parser is literally 20 lines of java. 40 if you hand code the dfa. Depending on some janky lib doesn't get you anything other than a headache when you need to parse something the lib won't.
|
# ? Oct 23, 2012 02:32 |
|
Milkie Galore posted:bret victor has a breathtakingly inflated opinion of his own importance and it bothers me slightly that people let him get away with it
|
# ? Oct 23, 2012 02:41 |
|
Nomnom Cookie posted:Csv parser is literally 20 lines of java. 40 if you hand code the dfa. Depending on some janky lib doesn't get you anything other than a headache when you need to parse something the lib won't. wrong as heck. you're going to end up with something that suits your one need at the time before you move on to another project at which point you'll come back with another case that you missed in your first parser attempt. so you'll end up spending 10 times as long trying to hit all the edge cases and still not having something that works as well as an open sores that autists have spent the last couple of years maintaining and improving to the point that its gonna do everything you'll ever need and be bug free. people who refuse to reuse code, even simple stuff, are the worst and cause all of the headaches.
|
# ? Oct 23, 2012 02:46 |
|
Milkie Galore posted:bret victor has a breathtakingly inflated opinion of his own importance and it bothers me slightly that people let him get away with it i dunno, never met him. quote:the guy gave an hour long speech earlier this year in which he demonstrated some example programs hes written. this comprised half an hour of casually-scripted pseudo-spontaneous "oh i wonder what would happen if" moments designed to make using his software appear effortless and intuitive, followed by half an hour of thoughtfully spewing platitudes in order to elevate his computer programs into a fully fledged philosophy for living one's life i dunno, he kinda said 'it's annoying when you can't see what you're doing, so let me make an example of what it might be like if you could' quote:not content with this, he then, from his newly-erected visionary podium, without so much as a whiff of self awareness, compares himself to tesla and englebert, and suggests his personal life philosophy (wanting to improve software usability) is like 19th century feminist elizabeth cady stanton's desire to overcome social injustice i felt he was suggesting to the audience that they could strive to make changes in life rather than simply refining their craft. he also said 'i'm not saying I am these people', eh. quote:the mans a loving intellectual fraud and i wish people would stop cleaning his anus out with their tongues i dunno, he seems to want to get people to try and change things rather than just refine their turd polishing. then again, I kinda liked his earlier essay so i was already receptive to his ideas.
|
# ? Oct 23, 2012 02:47 |
|
HORATIO HORNBLOWER posted:coding tests are stupid and a waste of time not as much as interviewing people who can't code for poo poo. quote:ask real questions that require paragraph-length answers about concepts that are crucial to your business and or your project yep, but if you're asking these questions you kinda want to filter out people quickly. quote:and no trick google questions about light switches or escaping from a blender or you will surely burn in hell forever yep.
|
# ? Oct 23, 2012 02:49 |
|
Shaggar posted:if you need to ask specific development questions, ask real world ones and expect real world solutions. ex: Q: You have a csv file that you need to need to read and then load into a database. how do u do? A: grab a csv deserializer off of maven, use it to load the data into ur classes, spit the data into procs via mybatis. if they start writing code for a csv parser get up and leave. people have been trained to show they understand something by implementing it in an interview you kinda have to ask a leading question if you want to get the 'of course i'd loving google it' answer
|
# ? Oct 23, 2012 02:51 |
|
Shaggar posted:wrong as heck. you're going to end up with something that suits your one need at the time before you move on to another project at which point you'll come back with another case that you missed in your first parser attempt. so you'll end up spending 10 times as long trying to hit all the edge cases and still not having something that works as well as an open sores that autists have spent the last couple of years maintaining and improving to the point that its gonna do everything you'll ever need and be bug free. an entirely correct shaggar post?? i feel honoured to have witnessed this
|
# ? Oct 23, 2012 02:58 |
|
|
# ? May 9, 2024 15:55 |
|
Shaggar posted:if you need to ask specific development questions, ask real world ones and expect real world solutions. ex: Q: You have a csv file that you need to need to read and then load into a database. how do u do? A: grab a csv deserializer off of maven, use it to load the data into ur classes, spit the data into procs via mybatis. if they start writing code for a csv parser get up and leave. like 9 lines of perl, dude
|
# ? Oct 23, 2012 03:07 |