HNHacker News
TopNewBestAskShowJobs

parksy

1,026 karma · joined January 12, 2014

submissionscomments
parksy··on Show HN: I built a fake VS Code to browse live cricket score in office
I remember dad's computer at work had Leisure Suit Larry on it with a boss screen. Must have been mid 80's. Also that golf game that spoke to you (I think the Simpsons riffed on it).

Probably most PCs were in offices at the time so it makes sense I guess.

parksy··on Why I Hate Frameworks (2005)
Thanks, I took a lot of flak from my colleagues and it was always treated like this wart on the outskirts of our COE. The only other options required discarding two month's work and refunding the client, or investing another few weeks building a bespoke PDF generator for this one use-case. I never really saw it as a heroic exercise, just had to think of a way to save everyone's time, money, and reputation in the fastest, safest, most reliable way possible.

I never got a compliment for the solution (just a "okay if you think we can make it work go ahead", and afterwards a "nice work, let's hope it doesn't break") so this is a first. Thanks again.

parksy··on Why I Hate Frameworks (2005)
Good point, it was a long while ago and I was definitely using COM objects. The network interface was handled by Apache with PHP scripting. I stand corrected, thanks :)
parksy··on Study: Recycled Lithium Batteries as Good as Newly Mined
Intuitively I agree, from a different angle although I don't know about chemistry either, but from a supply chain perspective, for generations it's all been about optimising delivery to a consumer. Supply lines point directly at households and beyond that point it's a bit of a dark web. Random piles of crap end up... somewhere?

If the consumer became a supplier of raw recyclable materials, and those materials had value, they deserve to be compensated, and will probably be more engaged in the sorting and quality control processes. I drink a lot of beer - that makes me a great supplier of ready-made glass bottles to anyone that wants them. Rather than bulk collecting a random pile of potentially recyclable material, here's a bunch of sorted glass bottles each quarter. Anyone that can hook into that kind of idea and find some kind of economy of scale might make a killing.

parksy··on Study: Recycled Lithium Batteries as Good as Newly Mined
Source?
parksy··on Why I Hate Frameworks (2005)
I hated React when I had to jimmy it into a Drupal website, I loved it when I was doing React + Redux on a data-driven project.

Pre-shopify, I loved Magento when we were just building basic eCommerce websites. I hated it when we had to provide bespoke functionality to suite various niche business purposes because rarely did any of the community plugins work well together, and life became a routine of building custom intermediary plugins that resolved the conflicts - but at least Magento had a way to resolve conflicts between plugins.

I loved Doctrine when I could define my object model with simple block comments. I hated it when the client's business model enforced an object model incompatible with Doctrine's, and we had to extend Doctrine to allow for it.

I tried making a game from scratch many times over the years. From writing my own assembly pixel routines (draw a line without gaps... that's a fun challenge), to decoupling logic from rendering, custom double-buffering, etc. At the end of the day, fuck it, Unity does everything I need much more efficiently than I have the time to figure out.

Unless you're doing really low-level embedded (and even these day's there's off the shelf hardware with frameworks rather than bit-bashing IO ports), having no framework at all is usually worse than having "a" framework. Want to build an entire game engine from scratch or why not just use Unity? If you have a good reason and can justify the cost of doing the stuff Unity does yourself, just to achieve the stuff Unity can't do, then go for it!

Like I guess, I don't hate frameworks, but I don't LOVE them either. Pick the tool for the job. I hate jingoism, where someone will tell you Redux is the only way we're going from now on because functional reactive programming is Jesus, or we've decided from now on the project will use webpack, even though it's been working fine for a decade using a different build strategy. Oh and we need to convert the APIs to GraphQL instead of OpenAPI on no budget, it's your fault for not understanding best practices duh...

parksy··on Why I Hate Frameworks (2005)
As a web developer in the open source, PHP (YUCK) environment, the single time DCOM has been useful for me was an insurance company who had a government-mandated PDF document they had to send to customers.

Could we just generate a document in plaintext? No. It had to be pixel perfect dummy. And PDF!

Could we just recreate a pixel-perfect HTML to PDF template? No. That would take weeks and the client only budgeted a few hours.

So I asked, how do they do it currently. And they sent over a mail-merge MS Word template. We said, hey, so, we use PHP, open source, Linux. TOO MANY WORDS WE'RE PAYING YOU TO MAKE IT WORK.

Could we use the template in an open source framework compatible with the PHP solution we'd built? Yeahhhhhhhh... but no. The open source framework mangled the fonts, layout, and the PDF rendering was bodgy to say the least.

And yes, we went back and asked really, trully, honestly, does the government really give a shit if this document is not formatted exactly the same as whatever law they apparently passed said it had to look like.

No dice.

So we could have used any language I guess, but we were familiar with PHP. PHP has a DCOM extension that only works on Windows. So I spooled up a Windows Server instance (firewalled within the DC of course) and installed XAMPP and did a bunch of config to ensure it stayed updated automatically and rebooted every night at 1am. A small PHP script on the Windows server provided an API the website could call at any time. The Windows PHP endpoint had an unzipped DOCX, the script would copy the folder, search-and-replace based on API inputs, zip it up as a new DOCX file, opened in Word with DCOM to save as a PDF which was then streamed back into the website's logic all in the same POST request that a client submitted.

It was a kludge, I could think of other ways to do it today, but at the arse-end of a project with an apparent doomsday requirement suddenly dropped in the mix, in the end it took about three days to implement when at the time we were facing a crisis.

So yeah, give DCOM some flak I guess because it failed to launch but it saved one small project for one small insurance company.

Edit to add: That solution ran for years without issue until the company merged with a larger healthcare provider.

parksy··on Remote sensing reveals Antarctic green snow algae as important carbon sink
I think I get what you're saying, and I think I agree - generally I defer to the advice of people who are experts in a field for that reason - it's your profession and what you do for a living. I'm a computer programmer / software architect with a side interest in chaos theory. While I understand models and algorithms so I get complex dynamical systems, my domain knowledge is decidedly NOT climate science - I spend more time pushing pixels at the end of the day.

Similar to the recent / ongoing pandemic, there's tons of variables and I've made a similar argument to people who decry in a mocking tone the "scientists" with their "agendas" etc... like dude these are people individually who devoted ten years of education and research MINIMUM learning about one specific thing.. BEFORE they were taken seriously enough to even get a job. Pushing pixels and shovelling dirt are both important and necessary, but when it comes to complex matters, listen to the person who made a lifetime commitment to studying that thing. I get it, and apologies if I somehow sounded like I was brushing that away. As you say, I'm just curious.

So anyway I'll take this all with a grain of salt. Seems interesting but as you imply it's a bit overhyped. It's just another small wheel within an intricate mechanism of gears and the overall swing of the machine is to hotter temperatures, more carbon dioxide, nothing changes, the overall trend is still clear. As I say, I was probably too drunk to hit reply, but I'm glad I did.

Thanks for the reply, it gave me a chance to pause and reflect.

parksy··on Remote sensing reveals Antarctic green snow algae as important carbon sink
(edit: but I almost forgot - it would be mindblowing if it turned out the Earth was somehow tuned to bring itself back to some average. The millions of different chemical combinations and seasonal variations all mediated by the ecosystem - which seems rather fragile but what if it was brutally rigid. I guess it's had a couple of billion years to gear itself up?)
parksy··on Remote sensing reveals Antarctic green snow algae as important carbon sink
No for sure I'm strongly of the mind that greenhouse gases do their job in creating a greenhouse, which increases temperature over time (which means more energy in the global system, which means everything from stronger storms to longer droughts...)

As a layperson I've read about the Vostok cores and understand how closely correlated CO2 concentrations and dust are as proxies for global temperature. Also I've read up on how phytoplankton essentially are the reason we have oxygen to breathe, so there are risks like ocean acidification that could kill us all regardless of temperature.

If some of those little buggers can give us an out or at least give us a longer grace period to sort our stuff out, I want in.

parksy··on The Food Timeline
Gotta give respect to the people who collated and maintained this list, that can't have been easy.

Is there a reason why some links like "Water" take me off to another organisation's website or am I just missing things? (edit: I am guessing it's just an older site and no one is around to take care of it anymore?)

This is a great resource and I hope I get a chance to spend more time reading through it.

parksy··on Remote sensing reveals Antarctic green snow algae as important carbon sink
In which case I would have to take a step back and think about the world for a bit. Is there a possibility when it gets warmer / more carbon rich, the carbon-hungry microbes go to town, reducing temperatures (*eventually, maybe not over time periods important to humans?)

If the world's microbiome is geared to maintaining (rather than merely existing in / responding to) temperatures and atmospheric gas ratios within a fine margin that would be noteworthy.

I've probably drunk too much and it's too late at night for this conversation to be honest. I probably shouldn't have even pressed "reply".

parksy··on First Ever Image of a Multi-Planet System Around a Sun-Like Star (2020)
Oh don't remind me of JWT. I'm actively pretending it doesn't exist until it gets results because if anything happens, I mean there's different degrees of disaster but in terms of... you know let's just pretend we never mentioned it.
parksy··on First Ever Image of a Multi-Planet System Around a Sun-Like Star (2020)
That was fascinating. I guess problems of scarcity / economics mean we can't just launch a spherical shell of satellites into the 500ish AU orbit of the sun, not to mention the data retention requirements but man that would be even more awesome just to be able to synthesize an image at any point in the 100ly range... One can only dream I guess, but even just a single image of a single planet's surface would blow everyone's mind I think, so string of pearls it is! Please happen.
parksy··on Something weird is happening on Facebook
Already done, parents are still on there as it's the best way to connect with people they went to school with 50 years ago, as far as I can tell Facebook is burning through the younger ages and it's going to end up a digital retirement home, already well on the way.
parksy··on Show HN: Time travel debugger for web development
Cheers for the heads up on cypress, not sure how I've missed it but I've added to my reading list and I'll be doing a deep dive. I'm using redux on my current side project and loving being able to scrub through state changes.

My angle on this thread is that I don't have much control over the frontend frameworks and usually when I land in an enterprise integration job a lot of the broader architecture is already in place - longer term I can have some influence but generally debugging involves numerous stakeholders. A tool like replay seems useful because most testers / users are reporting issues from their direct experience using the frontend, and being able to record and scrub through their interactions would be a massive timesaver, in lieu of setting up custom testing frameworks etc.

I get what you're saying though, and I'll definitely check out cypress, just wanted to add some context.

parksy··on Show HN: Time travel debugger for web development
It's definitely a well-considered approach. I don't have to care about the framework that's been used or set up a custom proxy to capture and replay / simulate API actions, you're literally recording system-level calls and that would be extremely valuable for replaying those annoying edge-case race conditions that seem nigh-impossible to track down without significant effort at replicating exact steps and timings.

I mentioned in my other comment about Windows support, but even better if you could do something like browserstack, where I could just direct users to a URL where in the backend you guys are running the replay browser, but from their perspective they're just "using the website", that would be a killer feature. "Here, go to this URL and make the bug happen again, as soon as it happens click the little bug icon" - wouldn't have to convince an IT department to allow custom software on their COE, I could foot the bill and pass it on in my invoices so don't need to convince their accounting to approve licensing, etc, and you wouldn't need to compile OS-specific clients...

Anyway I digress, really cool stuff and thanks for expanding a bit on how it works, taking something so low-level as syscalls and wrapping it up in a user-friendly interface is no mean feat - good luck!

parksy··on Show HN: Time travel debugger for web development
That's a big selling point for me, props to the engineering team for accommodating this, I work mainly on integrations and the trickier bug reports are weird edge cases that involve a lot of getting specific descriptions of what happened and replicating it manually on a sandbox so as not to impact API calls, getting on the phone to talk through exactly what they're doing, asking for screenshots via email, clarifying conflicting understanding of in-house terminology etc. You know the story.

Being able to get them to record the exact process and scrub through it at my leisure without having to worry about hammering APIs would be a massive timesaver, replication is about 90% of the time taken to fix a bug, while the fixes themselves are usually trivial. Not having to worry about accidentally replaying a bugged-out API call is a huge plus.

In my case the major hurdle I can foresee is the majority of my enterprise-level clients use Windows and a brief look at the website says currently there's only Mac / Linux support for the replay browser. What's the timeline on Windows support?

The only other thing I can think may be an issue is that the recordings are cloud-based and a lot of the clients I deal with are finnicky about exfiltration and governance, and would be a lot more comfortable self-hosting where possible. Is that possible or on the roadmap?

This looks like a super useful tool to add to the toolbelt for sure, I would love to have all my clients using something like this to report issues. Nice work all!

parksy··on Show HN: Time travel debugger for web development
In my line of work I've found the most difficult issues to debug are asynchronous dependencies on API actions. How nicely does replay work with POST data, if I scrub back and forth will I retrigger POSTs or is the request/response captured and emulated in the replays? If replay handles this nicely then I'm very very interested in adding it to our workflows.
parksy··on 8 Bits of history: My first game is still available on the internet
I'm also in Australia, most of my mates had C64 or Amiga, but my parents (possibly by being English) got the Amstrad. I only ever came across one other kid with an Amstrad (his family had the 464 tape variant). I agree it was rare here.

Next time I visit my folks I'll check out and see if they have any of my old disks. I doubt anything survived this long but your post has planted a seed of nostalgia.

parksy··on 8 Bits of history: My first game is still available on the internet
When you said you got rid of your Microbee stuff, does that mean some collector found and preserved your code years later? That's pretty dang awesome.

I had a bunch of old Amstrad games I wrote in the 80s that I'll probably never see again. Silly little text adventures mainly, also learned binary by poking character maps... a bit sad they're almost certainly lost forever except for dwindling memories in the haze of childhood, super cool to see some of this stuff being preserved for cultural value if anything.

parksy··on Thoughts of work invaded my life until I learned how to unplug
I can only share my experience, if it's relevant and helps that's great, but as always everyone has different circumstances so take it with a grain of salt.

As someone who grew up never able to accept failure (I remember my first B in high school quite vividly), this fear drove a lot of my anxiety in my 20's and 30's. Fear can be helpful as a survival tool that warns of danger. Anxiety can be hugely motivating but it will eat away at you, like having your own inner Gordon Ramsay screaming at you 100% of the time to be better.

Some advice never worked for me in the past like "foster a work life balance by doing x, y and z" or "these simple automations will free your mind from work" etc - that kind of prescriptive steps-to-success stuff was like putting a bandage on a burning house, just completely the wrong remedy for what I had going on.

I have been getting monthly CBT with a clinical psychologist for the past year and it's been wonderfully helpful. I see it like taking your mind in for a tune up at the brain-garage. Sometimes you'll wonder if that oil change was really necessary and grumble at the expense, other times a simple oil change will dislodge something that was held together by old gunk and you'll need to spend some extra time to replace a worn out part or two, but afterwards you'll be running a lot more efficiently.

Another thing that has helped was simple meditation, nothing spiritual, just setting aside quiet time each day to sit still, disconnect, and focus on calming the mind. It might seem counter intuitive to draw on that house fire analogy to sit still in the midst of it all, but think of meditation or therapy as a fire extinguisher instead and it makes more sense.

It's really tough to advise because we're all different, however the way I see it now, there's an entire profession of people who specialise in debugging minds, finding a therapist I could gel with and making serious time for it helped me, possibly saved my life even. It might be the best investment in myself I've ever made.

Good luck with the launch, sorry to hear you've been having a difficult time of it, it definitely isn't easy.

parksy··on For precision, the sapphire clock outshines even the best atomic clocks
Perhaps we could "shotgun" a swarm of tiny cubic reflectors, literally just use a controlled explosion to scatter them through the solar system, then track their movements to spot hidden objects. Some may even be drawn in and attach to otherwise dark objects by gravity, allowing them to be more easily tracked.

I'm guessing the issue with that other than the technical challenge would be filling space with too much noise?

parksy··on Time to retire the CSV?
There are better formats but the change needs to come from the top down, I can't see it working from the grass roots. Put it this way, I'm not going to turn around and refuse a non-technical client who volunteers at a non-profit because they can only give me data in Excel rather than whatever I decide the superior format is, or tell them it's impossible when the next developer will click a few buttons and have me taken for a fool, nor will I push hard to sell them up on a data mapping service or cloud pipeline if it's well outside their needs or budget. Unlike topics like web accessibility that's easy to argue on its morals and ethics, or mobile first that's easy to argue based on market share and audience reach, refusing to work with an organisation's data because you don't like the very simple, very established format is a very tough sell. If Excel could natively export to JSON, that's what I'd ask for, or their custom-built website from the 00's had a clean REST API, then it wouldn't even be a discussion.

There are workarounds for sure; VB macros, unzip XSLX and parse the XML, write scripts to automate Excel-to-whatever using DCOM, or import into an intermediary service and re-export into the format de-jure, but that all takes time and costs money too, and often causes confusion when even spoken about. Asking for a CSV takes a couple of seconds and is easily understood by most people. Anyone experienced with importing / manipulating CSV data can deal with the variance in delimiters and escape sequences without major issues. It's a headache at times but easier than the alternative of alienating or confusing clients who are looking for a simple solution to whatever issue they have today.

On the other hand once the data is in the target system, if they're still asking for CSV exports I do probe to ask why, and try and figure out if there's a better way. Reporting is the usual reason, and plenty of the CRMs I work with have built-in reporting that can replicate and improve upon whatever spreadsheet they are using, and have APIs that can interface with cloud-based reporting services. But there's a lot of inertia against change in most small-to-medium organisations, not everyone is a data expert and you can't sell someone something they can't use or understand. Ultimately people win, and the solution ends up being a balance of hopefully incremental technological improvements that they can still integrate into their day-to-day. Not every organisation is able to undergo a full digital transformation with time, budgets, and skills at hand.

I agree with the sentiment but I'd hate to see a future where everyone's locked into proprietary ecosystems - not that that is what's advocated for in the post, but we have CSV because that's what the big platforms seem to allow, not because they don't know there are better options. There's no technical reason Excel couldn't export to WordPress or SuiteCRM. Take CSV away and it gets harder, not easier, to move between platforms.

parksy··on LeafletJS: a JavaScript library for interactive maps
The first time I used it was to map parks and facilities for a state parks department, must have been in the early 2010s?

The design and data called for thousands of nested POIs all searchable by a range of filters (facilities, activities, etc), with pop-up info boxes and automatic clustering groups, with a custom layer from their XML-based geoserver full of park boundaries (polygons) which could filter the POIs within. By design this all required a round-trip to their geoserver which did a spatial query. The specification pushed one of the more popular JS mapping heavyweights of the day (I forget which) which due to the specific mix of required features ended up being painful, slow, janky, and with mobile-responsive becoming the frontend de-jure, a battle against nested layers of opinionated templating abstractions, all of which added up to a couple of hundred KB of dependencies and endless fragile callback-induced race-conditions, slow round-trips to their geoserver, and XML parsing issues. The mapping became a blocker on the project as the weeks wore on - hammer down one gopher, and another head would pop up. Design compromises were being considered to get the job over the line.

Enter Leaflet which was considered risky and new at the time, but on a whim and my own time I threw together a quick demo and got permission to spend a few days on it. I replaced weeks of frustrating spaghetti code and rebuilt a faster and more stable solution in a couple of days, polished it up after getting the "nod" and the site was finally ready to launch a couple of days later. Leaflet enabled the solution by being compact, only did the thing it was designed to do and didn't interfere elsewhere, and the plugins were tiny, did their job, and did it much more transparently. The main thing I had to do was transform their XML into GeoJSON on our webserver (their backend had only rudimentary GeoJSON support at the time - I think their internal teams either refused or were not allowed to update it?).

Anyway didn't mean to write a mini-blog post shilling Leaflet, it's a great library, my first experience of it was that it saved a seemingly doomed project, it does exactly what it says on the box and not much else, which is perfect when it's just a small component of a much larger and more complex project. It's my first go-to for interactive map rendering and even non-map stuff, like zoomable gigapixel photos.

parksy··on OpenAI Codex
From what I've seen the technology can fuse together a remarkable range of outputs, but all of them are essentially fused together from within the training set. If there were enough examples of AI opponents, it conceivably could do it since most game AIs are some form of state machine combined with a degree of statistical analysis and pathfinding (for mobile AI actors). It would "just" be replicating existing patterns.

As I understand it, it would take a dramatic leap from this kind of interpolation to being able to extrapolate and "self improve". So far I haven't seen anything that convinces me we're close to this, but again I'm not close to the wheel on the research side of things.

parksy··on OpenAI Codex
> do you really think it could lead in that direction?

If you asked me 20 years ago, or even 10, I'd have said it was total science fiction. I wouldn't have been able to imagine how to do it. If you asked me 5 years ago, I'd have vaguely said something about AI, half jokingly. At the time I thought perhaps the models could be trained so we can do test-only development and let AI trained on formal test cases generate endless code until all tests pass, but I didn't really imagine it would be possible to get a computer to take freeform written English (even in a tightly controlled manner) and produce functioning code.

Over the past couple of years I have seen increasingly fluent demonstrations and tried a few myself, and I have fallen off the fence and I think that with the pace that machine learning and AI assisted programming keeps advancing, this outcome is all but inevitable, as far fetched as it seems.

I was messing with the OpenAI sandbox over the weekend and it helped me generate several game design concepts from prompts similar to my post above that I could see myself being interested in building and playing. It's not difficult to imagine down the line with a few more advancements in this tech that the generated design could then instruct the code generator, fetch the assets, and stage the environment for a player or user to enter without ever touching a line of code.

I'm not close enough to the research itself know which of those problems are hard and which are easy, so I don't know if we'll see the first totally AI-generated "proto-holodeck" tech demo in the next 5 years, or the next 20 years, but I can't see it being more than 50 years away, and something tells me with the pace of things it will be much sooner than that, assuming we're all still around at the time to enjoy it.

parksy··on Astronomical Engineering: A Strategy for Modifying Planetary Orbits (2001)
12000 years from now, Cockbert Roachstein, upon examining the peculiar dynamics of a passing moonlet, sets the scientific and philosophical community clicking and chirping with controversy on the suggestion that a mysterious ancient intelligence designed the scheme keep the planet's temperature in equilibrium as the sun heats up...

"You mean to suggest a bunch of *click* _monkeys_ could steer the planet? Those creatures-in-the-dust who couldn't even survive _radiation_? You are hereby sentenced for *chirp* roach-heresy."

parksy··on OpenAI Codex
This is just nascent technology leading toward something like this:

"Computer, I want to play a game."

"Okay, what will the game be?"

"I want to be a starship captain, give me a cool space ship I can explore the galaxy with"

"Okay... like this?"

"Not quite, make the galaxy more realistic, with real stars and planets. Also make it 3d. I want to be the captain inside the ship."

"How about now?"

"Cool, and there should be space stations I can visit near planets, and I can fly my ship to stars with hyperspace. Make it so I have to trade for fuel at the space stations, maybe I need to mine asteroids or search derelict space ships for treasure. I want to play with my friends too, they can have their own ships or walk around my ship."

"Done, was there anything else?"

"Yes, add different alien races to some of the star systems, and make some of them have alliances. I want to talk to the aliens about their history and culture. Sometimes aliens are unfriendly and we'll have space battles if talking doesn't work. Make it so I can command a fleet and call for reinforcements."

"Processing... Done. Anything else?"

"Actually this is boring, can we start over?"

"Game erased. Please provide new prompt."

parksy··on Ask HN: Senior Software Engineer to Engineering Manager
I found it very difficult (edit - after being promoted internally). The company I worked for wasn't huge, probably a small team by comparison to many here of ~30 mainly developers, some designers, and a couple of PMs.

As the senior developer I'd designed most of the in-house tooling and trained most of the staff, then laid out team structures and project workflows. Over time our clients became more sophisticated and I found myself drawn more to pre-sales architecture / engineering / estimating, hiring, performance management, etc.

I was given the title of CTO, and more of my time was spent on product strategy, aligning technical strategy with business goals etc. Lots of spreadsheets, lots of modelling and planning. This would have been fine but I never was fully able or allowed to let go of my previous role. I was still the "guy" when it came to build systems, git merge conflicts, server issues, etc, and the company could never justify replacing my old role while I was still on the books.

This was stressful mainly because of context switching and workload. I was happiest when I could focus on one role or the other for extended periods. Having to wear both hats eventually wore me down, as it was hard to constantly keep the big picture in mind while having to focus on minute details like which version of SASS we should be running across our projects, or manning the support helpdesk after hours.

Switching to a new company lets you walk into a new role without the history - you might be less likely to be chased up to provide critical support or jump on the tools while you're trying to wrap your head around a 5-year digital transformation strategy for a federal contract. I switched to freelancing though so I can't speak to making the switch from experience, just what it was like to move up within a company.

Your mileage may vary, and as others commented it comes down to company culture.

← PreviousPage 4 of 10Next →