HNHacker News
TopNewBestAskShowJobs

BFLpL0QNek

571 karma · joined January 20, 2019

submissionscomments
BFLpL0QNek··on How I got involved in the Rust community
My day job uses the JVM heavily. I don’t have issues with garbage collection and don’t mind the languages to much.

I’ve used a bunch of common languages, Python, JavaScript, Typescript, PHP, Bash, Go etc. Not so common languages such as Haskell.

My first choice for personal projects is now Rust.

The memory/borrow checking to me is just a nice benefit I get from using Rust, I don’t use Rust for the borrow checking.

My main reason for Rust is while it’s not as high level as say Java/Python etc I find it is still at a nice level to work with and can be far more expressive with the enums, traits and generics.

The second big reason I use it is my programs end up fast and efficient with little effort.

The third reason is I can get tiny statically linked binaries that just run anywhere with no dependencies.

Reasons two and three mean I can host my applications on the cheapest, most minimal resources available and still outperform other languages on more expensive hosting. Currently my choice is to stick the binary in a Docker image which ends up sub with a sub 10mb docker image then deploy on the smallest 128mb AWS lambda and pay fractions of a cent to host. Services that need to be long running go on the smallest $5-10 vps’s .

The borrow checker can be a pain however I find the compiler error messages really helpful in it often tells you what you should do to fix the problem with plain English error messages and code suggestions.

BFLpL0QNek··on ASX drops plan to replace CHESS with blockchain, writes off AUD $250M
I wonder what this means for Digital Asset https://www.digitalasset.com/.

The ASX brought 5.4% of digital asset and from what I heard, they were a core part of building the system. https://www.ledgerinsights.com/asx-150-million-in-blockchain...

BFLpL0QNek··on Why I Switched from Rust to Go on the Back End
The author is probably compiling inside an x86 container on his Mac M1. Doing anything in an x86 container/vm is extremely slow on the Mac M1 as it’s arm64 not x86. That specific issue is nothing to do with Rust.

Why the author is doing this I do not know.

Rust does cross compilation fairly easily out the box. If the author needs an x86 Docker image they can compile an x86 static binary without Docker then copy the binary in to the container. It’s a trivially simple workflow and you end up with tiny Docker containers.

  FROM scratch
  COPY target/my/binary /bin/binary
  ENTRYPOINT [/bin/binary]
BFLpL0QNek··on New Jersey legislators aim to ban most in-car subscriptions
This is fantastic, I only hope it actually happens and other jurisdictions follow.

KTM motorcycles owned by Pierer mobility, a 1.7 billion dollar company have just started pulling this nonsense.

Their latest motorcycle has “Demo mode”. Demo mode means when you purchase the motorcycle it works for 1500km then you get locked out of functionality that is built in and worked at time of purchase. You only get the previous built in functionality back if you pay KTM more money for a software key to unlock it again.

https://www.motorcyclenews.com/news/new-bikes/ktm-890-advent...

BFLpL0QNek··on So you're using a weird language
Typescript, Golang, Rust are all relatively new. That means only a few years ago they were niche, no one used them. Rust still is niche. They could have died in popularity like the other languages you mentioned have, but they haven’t, it’s impossible to predict what will succeed and what will die.

If you only stay with what is popular nothing new becomes popular.l and you become mediocre.

Popular isn’t always the right choice. There’s the situation things are only popular because they are popular. React seems to fit that now, it’s the default as everyone else is using it even if there’s newer alternatives.

Innovation only happens by doing things different.

Choose what is appropriate, not what is popular or what is new.

BFLpL0QNek··on The end of the manual transmission is near?
There’s a bunch of EV kits appearing for classic vehicles.

It’s looking like if you want an electric vehicle without non of the other nonsense that comes with new vehicles the conversion kits will be the way to go.

BFLpL0QNek··on Agile projects have become waterfall projects with sprints
Even 10-15 years ago I was at a small Thoughtworks event where Martin Fowler was speaking and back then he was using the term “Water-Scrum-Fall” saying most Agile projects he’s seen are waterfall projects wrapped in to two week sprints. At the time Agile/Scrum didn’t have the popularity and only just gaining traction at larger companies.

Today everywhere I work is now “Agile”, doing scrum or similar. It’s all lip service, it’s just another process and ceremonies over the actual spirit and ethos of the original manifesto.

The teams I’ve worked on who didn’t practice agile where actually the most “agile” in the spirit of the manifesto. The teams that did agile, by the book, with the ceremonies and all, dogmatically, doubling down on it, where the least agile in the spirit of the manifesto and not that productive or creative, often micromanaging every tiny detail in a Jira ticket.

BFLpL0QNek··on Would you quit a job three months in?
Yes. You are not invested at two months in. If you are not enjoying it it’s better to leave early if you can rather than suffering hoping it gets better. Follow your senses, two months in should be the honey moon period so it is a bad sign if already asking should you leave.

I did similar recently. The job wasn’t what I was looking for, highly senior team in titles but much more junior / immature in reality than I’m used to and thought I was joining. It felt like a significant step down work wise and as the team was new it had a bunch of new team forming issues I had no time for as I’m a head down and work person. It was a shame as the work itself had potential to be really interesting and the company itself was very good with fully remote, every second Friday of the month off, quality of life perks etc etc.

Leaving early meant loosing RSU’s wasn’t an issue as I could make the difference back in a new salary. If I stuck around for the initial 12 month cliff for 40% RSU’s vesting I’d probably of hated each day, effecting my performance and then in the end leaving before the 12 months anyway but with a greater loss as wouldn’t of been able to make the difference back on higher salary vs RSU’s with time invested.

BFLpL0QNek··on I still love PHP and JavaScript
Ok, it makes scaling technically easy with horizontal scaling for the web tier, ignoring the DB.

In practice it makes scaling hard for financial reasons if you require 128MB+ per request. A 32GB server will struggle with more than 256 concurrent requests at 128MB+ per request. A 32GB server is an extremely large server for such low request numbers.

If you can bring the memory usage down stateless works well. I use a bit of rust on aws lambda with the lowest memory settings so pay fractions of a cent and can handle more traffic than I ever need. I do set up persistent connection pools for the life of the lambda and only bootstrap once to bring down latency per-request but treat it as an ephemeral horizontal scaled service.

BFLpL0QNek··on I still love PHP and JavaScript
> it's stateless by design (much easier to scale)

I noticed being stateless made it difficult to scale for any complex app. It’s been 7-10 years since I used it but Drupal used 60-128MB+ plus per request. As it was stateless it had to do a full bootstrap for every request coming in, set up a new database connection, module discovery etc, all which was heavy to do for every request. Most people scaled Drupal by putting Varnish in front preventing the origin from being hit so not really scaling Drupal as such, varnish is taking off some load where it can.

Drupal is probably the extreme though. If you have a simple app with a few scripts, light use of a DB it’s not to bad. I’ve heard it’s come on a lot in the past 10 years and Laravel. I certainly had less issues using PHP than I do with JavaScript.

BFLpL0QNek··on The Dhall Configuration Language
I like Dhall for what it gives you with type safer etc but the compile times are extremely slow on a large project and type signatures can get real long/hard. It is bit of a Dhall monolith though ;)
BFLpL0QNek··on New cars will stop drivers from speeding under European laws
It’s near impossible to buy a new car that doesn’t have some “smart” feature. Sadly electric is synonymous with “smart” features so it’s only going to get worse.

Things like ABS, radar controlled cruise control for distance, blind spot mirrors, auto levelling mirrors are all fine in my book, even heads up display for speed. Blind spot mirrors should be regulated as a requirement on all new vehicles.

The connected GPS’s, mobile connections, digital touch displays all seem a backwards step, especially the new thing manufacturers are doing by installing hardware but soft locking the feature until you pay extra.

BFLpL0QNek··on Kubernetes is a red flag signalling premature optimisation
Apache Spark can use Kubernetes as a scheduler out the box. I don’t know if op is using Spark.

A lot of data tools are starting to target Kubernetes directly as a runtime so using them with GKE/EKS is a bit simpler as it’s officially supported, allows to run locally and on the cloud with no vendor lock in.

ECS in a scaling group works well if your app is stateless but as soon as you scale workers dynamically, do service discovery, orchestration, you end up building some of the features Kubernetes provides.

BFLpL0QNek··on Ask HN? Which tech stacks are popular in China?
I know little about China but briefly worked with a smart Chinese developer and what they said has always stuck with me.

They left China as it was to hard to find a job. There’s 1.4 billion people with lots now highly educated. With so many highly educated people the competition is huge so the best thing they could do is leave as less competition. This is coming from someone who was smart saying the competition was huge, to much.

If it’s true or not I don’t know. There is 1.4 billion people and from what I see it seems big on tech but as westerners and huge langauage/cultural differences where pretty out the loop.

BFLpL0QNek··on Atlassian is 20 years old and unprofitable
> Atlassian has somehow become the Benjamin Button of the tech sector — profitable as a startup and loss making as it has matured.

They where profitable, they didn’t need funding the only funding they took was for staff to sell some of the equity.

Them now making a loss I think is more a deliberate choice, not a business failure. They could of continued as they where making $$$ but instead choose to go from 700 people at ipo to near 7k today for pretty much the same product suite.

Those 7k people have to be working on a lot of stuff behind the scenes, building on existing products and maybe yet to be released products. Atlassian always said they where big on long term investment. I’m sure they could be profitable if they wanted but then would need to massively cut the long term investment.

I’m not to worried about Atlassian. Every large org I worked at is run off Jira. I do regret not selling a small parcel of TEAM at the end of last year though when it was over $440usd a share

BFLpL0QNek··on I analyzed more than 7M developer jobs
15 years ago doing JavaScript or Python you’d be classed as a low tier web developer on the bottom of the pay scale.

Searching the job market the past year everything is JavaScript or Python because of the low barrier of entry. With the demand to hire high numbers of people and lack of people, these roles are now at the top of the pay scale.

Maybe it’s AU specific but if I was to take some specialised role requiring deep knowledge and experience, not using JavaScript or Python, I’d be on at least 20% less than a role essentially knocking out a ReactJS frontend or NodeJS crud services.

It’s dilemma I had the last year. Recruiters phoning with somewhat highly specialised roles that interests me, talent pool is extremely small for the roles, only to be told that the pay is at minimum 20% less than what’s available for nondiscript JavaScript/Python roles. Unfortunately for me I need to enjoy work or suffer mentally, and while I have used JavaScript, Python, insert name of frontend/backend framework in either language, extensively, it feels like torture having used better and knowing I can do better.

BFLpL0QNek··on Zendesk acquired for $10.2B; turned down $17B offer earlier this year
I think they’ve been a few problems with Zendesk before the downturn.

They had a shareholder revolt on the proposed Survey Monkey / Momentive acquisition earlier in the year and a following proxy battle.

There product seems fine and valuable. I guess they are suffering with investors wanting returns and to dominate the market rather than just be a business that ticks along.

BFLpL0QNek··on Laddering a Chimney (1978) [video]
A bygone era. I have fond memories of going to similar building sites/factories in north west England, 4-5 years old with my old man before I was old enough to go to school. Sitting on the wheel arch at the back of a rusty old van amongst loose tools/building materials bouncing around, being taken up some rickety scaffolding being told stay away from the edge, careful on the ladder, passing tools while my old man worked stood on stacked milk crates several floors up.

Today that’d never happen and you’d be sat in front of a judge. 30-40+ years ago where certainly different times in working class nw England. Maybe it’s because I grew up in it but looking back, back then it seems work was work, not pushing Jira tickets, one on ones, 360 degrees, agile, navigating office politics just to get shit done.

There’s a complete series about Fred on YouTube, well worth watching.

BFLpL0QNek··on A year with the Elgato Stream Deck
I hated the touchbar but interested by the Stream Deck.

With the touchbar I really missed having the fixed set of tactile keys for sound/media control, screen brightness.

I also found I was fat fingering the Touch Bar to much due to my clumsy typing and naturally resting hands on the function keys.

I ended up disabling the Touch Bar only keeping sound and brightness icons.

The biggest disadvantage to the Touch Bar was ergonomics, loosing frequently used tactile keys, the position, needing to look down to see what you are pressing and the ease of fat fingering keys by mistake.

The concept is good but the implementation didn’t work on a laptop. The stream deck looks to be a bit more ergonomic, you can position it somewhere convenient, the keys are on an angle so easier to see, I imagine the big tactile buttons also work well.

Disliking the Touch Bar I’d also highly likely by an Apple external touchbar with tactile keys if it was sized similarly to an external number pad I could tilt up on an angle.

BFLpL0QNek··on Lessons learned as a software developer turned project manager
Noticed this to and it’s not great. The person is spread to thin and there’s a lot of different skills to do each role well.

The best project manager I had was a film producer moonlighting as a pm between films. The film producing experience, tight deadlines, tight budgets, scheduling, lots of cross functional teams, bringing them together at the right time etc really carried over well.

BFLpL0QNek··on Why isn’t there a decent file format for tabular data?
Isn’t Apache Arrow an in memory format that the various DataFrame libraries can standardise on to interact with each other? inter-process communication (IPC)?

My understanding is your raw data on disk is still a format such as Parquet, but when you load that Parquet in to your application it’s stored as Arrow in-memory for processing?

BFLpL0QNek··on Why isn’t there a decent file format for tabular data?
You want to search for “DataFrame” libraries.

Another commenter mentioned Spark, Panda’s is another popular one, not used it but think it’s lighter weight where Spark is more for large distributed computation even though can run locally.

There’s a bunch of these tools which lets you treat parquet files as tables doing joins, aggregations etc.

BFLpL0QNek··on Post-incident review on the Atlassian April 2022 outage
You can do a soft delete, setting a flag (expire date), have apps ignore records with an expire date then a scheduled job to delete all items with the expire date set with a value less than current time.

Alternatively move the deleted data to a temporary location and then delete the temporary location after a short period of time.

Or better combine both patterns where expired rows get moved to a temporary location before hard deleting a period of time after.

GDPR says you have to delete data when requested. As far as I know you have 30 days to acknowledge the request and up to 60 days to action the request. It’d be completely reasonable to do a soft delete for 7-14 days before doing a hard delete to prevent these kind of errors.

BFLpL0QNek··on Ask HN: Cloudflare Pages vs. Netlify vs. Others?
Only used Cloudflare pages so can’t compare to others.

I found it super simple, a frictionless developer experience, very generous free tier, good payed tiers.

The integration with workers and some of the other services such as kv, object storage, durable objects means you can build way more than just static websites on it.

Cloudflare seems to be moving pretty fast building out a compelling platform. I see workers/pages as Heroku next gen. It is still early days for them though.

I liked what I saw so much I purchased Cloudflare shares.

BFLpL0QNek··on Ask HN: Anyone else is tired of all the corporate bs?
I don’t think this is the problem. As OP says they are working a 40hr+ week but the work can be done in much less.

The work itself isn’t the issue, it’s the fluff around the work. Meetings, agile ceremonies, office politics/playing the game. There was a book on it, Bullshit jobs.

My current situation is I’m in the easiest job I’ve had, fantastic package, working the slowest I’ve ever worked with no manager pressure, no “what you doing, where’s the product”. With that it’s burning me out daily. Agile ceremonies, splitting hairs on non important details bike shedding, not delivering, no product in twelve months, everything needs a meeting, a design doc, and unanimous agreement from the team.

It’s killing me. I want to work hard and I want to build things and see things used. Essentially I’m sat twiddling thumbs knowing I am not working at my best because the culture/process is stopping me from actually doing the real work, the product features that customers pay for.

BFLpL0QNek··on When hiring developers, have the candidate read existing code
Skipping pr’s is not equal to skipping code review.

If you pair, there’s two sets of eyes, to commit both pairs have to sign a commit. You can also organise a demo/quick mob session before commit. Then there’s a level of trust in your teammates.

PR’s are great for open source projects as act as gatekeeper so not everyone can commit freely. If you need to gate keep your team members then I’d question the strength of your team.

The best teams I worked on who delivered working code fast, efficiently even when they are some of the most complex projects I worked on committed straight to trunk, had a very good build pipeline (super import) and worked closely together for review. The standards where extremely high yet the general feeling was it was less dogmatic, micromanaged or kept behind a gatekeeper.

The projects I’ve worked on with dogmatic pr’s generally failed to deliver anything in any amount of reasonable time. The prs where dogmatic as more junior teams get caught up in superficial things such as names, package structure, syntax preferences rather than what the pr actually does.

BFLpL0QNek··on When hiring developers, have the candidate read existing code
I like this approach.

Far to often I’ve interviewed at places and been grilled by the interviewer only to find out when you start the quality isn’t great, what you where grilled on you won’t be working on “as that’s to hard” or “we don’t do that” despite being grilled on it and the level of skill not to great they just want senior people. It’s the bait and switch.

At least being taken through existing code you know what you are getting yourself in to. Also looking at the current open pull requests and closed pull requests to see the standard and speed of delivery. Bonus points for no PR’s and trunk driven development as that shows a very mature team.

My simpler interviews have often been with companies that have held a higher bar than the ones with tougher interviews. Those companies have often been sink or swim though and if you don’t make the grade you’ll be kicked out pretty quick. My last company had a reputation for new starts disappearing and not great that way, but the team was probably the strongest bunch of people I’ve ever worked with as only do good survived.

BFLpL0QNek··on Ask HN: Does a static site need anything more than a simple VM running a server?
You don’t need a VM for static sites.

As others have said, you can just drop it in S3.

The other alternative is Cloudflare pages. It’s cheaper than s3 with a generous free tier. I find it less hassle than uploading to s3. Git commit, git push, a few moments later it’s deployed on a global CDN.

Both options will be cheaper than running a VM and maintenance free.

BFLpL0QNek··on Atlassian: We estimate the rebuilding effort to last for up to 2 more weeks
Not much on this on the internet.

Gray•Duffy, LLP Settles Two Massive International Data Loss Claims Arising From Computer Server Failures

Arc Touch, Inc. vs. Atlassian PTY, Ltd

http://m.grayduffylaw.com/?url=https%3A%2F%2Fgrayduffylaw.co...

https://www.theregister.com/2012/05/09/atlassian_cloud_stora...

BFLpL0QNek··on Atlassian products have been down for 4 days
You would expect that, damage limitation. If rolling out a fix you would want to roll it out to your smallest customers first to verify then incrementally roll it out to more/larger customers as your confidence increases. Especially if it’s anything data/db migration related as some comments hint at and the mention of possible data loss being minimum in one of their official responses suggesting something data related.

On the status updates I guess they can’t say more other than they are working on it. Saying more at this time might open them up to other issues considering a lot of businesses are run off moving Jira tickets around today.

← PreviousPage 2 of 4Next →