582 reputation
29
bio website
location Australia
age 28
visits member for 4 years
seen Dec 17 at 3:59

Nearly 4 years into my professional career. Currently working in the health industry. I mainly use Java and Python.


Oct
31
comment Data structures and algorithms for a directed rooted tree with inherited properties?
Come on.. don't just downvote. Tell me why?!
Oct
23
answered Data structures and algorithms for a directed rooted tree with inherited properties?
Dec
3
comment Is logging hours for software work a good idea?
if only the answers could be merged :)
Dec
3
answered Is logging hours for software work a good idea?
Dec
17
awarded  Yearling
Jun
8
awarded  Caucus
May
8
revised Best way to parse a file
added 1145 characters in body
May
7
comment Best way to parse a file
@Spencer Rathbun You encourage me too take a deeper look back into state machines.. I actually like them and remember them fondly. I also like to promote things that I have found have worked well for me before, like OO parsing of messages. The parsing rules here are the structure of the message and I believe they would both work well. however I think the OO approach is simpler.
May
7
comment Best way to parse a file
@Songo.. nope, you would parse independently of the vendor (unless you new who). the parse would be in the INIT of the class. You turn your message into a data object based on the same rules used to construct the message. If you needed to grab something from the message however.. and it is represented differently across your vendors then you would have the different functions yep.. But why do it like that? use a base class and have a separate class for each vendor, overriding only when necessary, much easier. take advantage of inheritance.
May
7
comment Best way to parse a file
it is a message, what states do you need? it would seem that such a message, which is organised in a structure of composites and segments would fit this OO approach perfectly. error handling is done per class and done properly you can construct a parser that is very efficient and extensible. messages such as this lend themselves to classes and functions especially when multiple vendors send different flavours of the same format. An example would be a function in a UNA class which returned a particular value for a specific vendor.
May
7
answered Best way to parse a file
Mar
26
comment Is the 80 character limit still relevant in times of widescreen monitors?
80 is friendly to VMS maybe. Forgive my new age thinking but we should extend the limit where possible and keep it where necessary..
Mar
21
comment is there a formal algebra method to analyze programs?
Ok .. so are these answers or are you just writing comments? this is why we have an answer section peeps.
Mar
19
comment “Do Whatever You Want” License With Attribution
Free Software Foundation licenses are the best :)
Feb
19
comment Recommendation for a database to query records with attributes that are arrays or hashes?
@Marcus - Ok, got it. I would agree UUID would be the way to go then. UUID is perfect when you don't have an underlying guaranteed unique number generator (such as a sequence in most normal cases) .. instead you are making do with a probabilistic one.
Feb
18
comment Recommendation for a database to query records with attributes that are arrays or hashes?
+1 good answer. I would recommend PSQL too. I would however also question Marcus as to why use UUID in such a simple data structure? Perhaps use a SEQUENCE instead by creating the id with BIGSERIAL so the the value is also a bigint. This would also be faster and more efficient.
Dec
17
awarded  Yearling
Sep
10
answered How important is having a mentor or senior developer in the beginning of your career?
Jul
28
comment Dealing with coworkers when developing, need advice
I think this could be formed into a relevant question (rather than be simply closed) which deals with project management and team work which are important aspects of programming and development.
Jul
28
comment best way to quickly stash your cognitive state when you just can't avoid interruptions
I don't know if there is a way to 'save' a perfect 'image' of your ideas at that time. But I will put in key words to help bring back that entire though, and think about that idea and associate it briefly with those words as I write them down. Another idea, when this fails is diagrams, and I did this a lot when programming a 3d engine as a hobby. This way I could visualize my ideas or my final goal, save them on paper and come back and even do better than when I left off.