Better HN
topnewbestaskshowjobs
Log inSign up

Merad

2,800 karma · joined Mar 14, 2015 (11y ago) · 772 submissions

Submissions

comment 5y ago · link · parent

Can't speak to Spectrum specifically but in a past life I did customer service with a cellular company. Their billing system was set up so that you couldn't update the features on an account (a feature being a data plan or texting plan, for example) unless _all_ of the features on the account were current.

It was a pretty blatant move to push customers off of grandfathered plans. For example this was about 10 years ago when iPhones were becoming popular, and at the time at least there were iPhone specific features for data plan and visual voicemail. So someone upgrading to an iPhone would be forced to give up any grandfathered plans on their account.

comment 6y ago · link · parent

IME most in DI heavy C# code (e.g. Asp.Net Core) you're using classes but those classes are really just a set of named functions bundled together with their dependencies, not unlike a closure. It's not very common to see classes that are stateful.

I've never tried it but I'm fairly certain that most C# IOC containers should allow you to resolve functions if you really wanted to go that route.

comment 6y ago · link · parent

> I'm asking because in all the projects I've been involved with, consuming the backend API always felt like a mess with lots of reinventing the wheel (poorly) and duplication of code. I can't believe in 2020 there's not some kind of library I can call that will give me my backend resources as JSON and transparently handle all the caching, pagination, error handling (translate error responses to exceptions), etc and people have to do all this by hand when calling something like Axios.

If you look at 20 REST API's you'll probably see 30 different patterns for pagination, search/sort, error responses, etc. There have been a couple attempts to standardize REST such as OData but I think it's safe to say that they haven't been very successful. It's kind of challenging to build standard reusable front end tools when everyone builds back ends differently.

comment 6y ago · link · parent

I’ve seen #2 happen once or twice but never did figure out exactly what the person who generated the duplicate commits had done. I suspect that they made some mistakes while rebasing a feature branch.

comment 6y ago · link · parent

Can't speak for the GP but my single biggest complaint about TS is how it's basically a massive set of assumptions layered on top of JS. If the JS types at runtime don't align with your assumptions in TS, the whole house of cards can come crashing down.

comment 6y ago · link · parent

My personal experience with C# and Typescript has been that explicit typing like that rarely provides much value. Explicit typing tells me one thing and one thing only: GetOwner() returns a Person. But when I have questions, they almost always fall into the realm of "details about the GetOwner() method" or "details about the Person type". I honestly am struggling to think of any examples when seeing a variables type answered all of my questions.

Honestly though, this is a tooling problem. There's no reason at all that developers should need to spend time encoding information into the source code that's already known to the compiler, but devs also need to use tools that can feed the compiler's knowledge back to them. Jetbrains Rider (and their Resharper extension for Visual Studio) have a set of options called inlay hints [1] that do this exact thing. Personally I tend to keep most of the type hints turned off because they do add a lot of clutter, but the feature is absolutely invaluable for parameter name hints.

[1]: https://www.jetbrains.com/help/rider/Inline_Parameter_Name_H...

comment 6y ago · link · parent

I like hooks and prefer them over class components, but I think this is a problem. Almost every React developer I know has a poor understanding of how hooks work because it's so fundamentally different from what they're used to. In most simple cases (probably 90+% of the time) you can get away with a flawed understanding of hooks; it doesn't typically bite you until you get into trying to write custom hooks with complex logic and/or side effects. Dan Abramov's dissertation on useEffect is a great example of how much complexity is hidden behind what appears at first glance to be a simple function: https://overreacted.io/a-complete-guide-to-useeffect/

comment 6y ago · link · parent

> you can still buy these blu-ray players and not connect them to the internet.

Unfortunately this is only a temporary solution IMO. Within the next decade I think you'll see these smart devices shipping with built in connectivity that's difficult or impossible to disable, especially if Starlink or other satellite based services really take off.

comment 6y ago · link · parent

With my 72 year old dad I mostly notice tech related things. He's a smart guy, worked in banking and finance his whole career (so used computers pretty heavily) and was really into PCs in the 90s. He was constantly setting up and tinkering with DOS, Windows 3.1, 95, etc. as well as learning to program.

These days he is limited to the basics on his PC: email in outlook, checkbook in Quicken, basic web browsing... and he often runs into trouble with them. I'm on TeamViewer about once a month helping with something. He also has an iPhone and iPad but can just barely do the basics on them, watching him try to use them is just painful. Some of that is due to crappy modern UX, especially on the iDevices, but his ability solve tech problems and deal with unexpected situations has dropped off a cliff the last few years. Age is coming for us all...

comment 6y ago · link · parent

Nah, this is from my day job so it's a proprietary closed source thing. Supposedly the CI speed issues are because the CI has to start with cold caches every run (we use Gitlab pipelines that run in docker containers) whereas the IDE has the caches on hand. Something about the way our devops has set up the Gitlab runners makes enabling shared cache much hard than it should be so I haven't had the chance to test that. I don't think I ever tried limiting it to only changed files, that's worth a shot.

comment 6y ago · link · parent

ReSharper's formatter is pretty good, but you do have to pay to use it in the VS IDE and it's kind of slow. The service I'm working on at present is fairly small (20k LOC) and formatting the entire solution takes about 5 minutes in the IDE or 30 minutes in CI. :/

comment 6y ago · link · parent

I think the overwhelming majority of users don’t want to deal with this kind of detail. IMO most people would end up using some kind of preset that matched their preferred bubble.

comment 6y ago · link · parent

One I like to go back to is the micro-kernel scheduler written in assembly I did for a grad school project: https://github.com/mbcrawfo/avr-kernel/blob/master/kernel/co...

It seems so much more interesting than the web stuff I do today.

comment 6y ago · link · parent

Yep, I’m fair skinned (Scots-Irish heritage) and live in the US south (North Carolina). If I’m very careful to build up my sun exposure all spring I can tolerate moderate amounts of sun without burning... but if I went out tomorrow for even an hour in direct sun anywhere near mid-day, I’d have a major sunburn. I’ve been more careful to use sunscreen for the last decade or so after seeing my dad’s experience with skin cancers. His aren’t the “serious” kind but basically every time I see him he has fresh scars from having cancerous spots cut or burned off. No thanks.

comment 6y ago · link · parent

Yeah, it’s not exactly a common problem. I’ve only seen it come up in that scenario when two people with different casing habits try to share a branch.

comment 6y ago · link · parent

I make a branch named 'feature/ABC-123', do some work, and push to the server. You want to take over my branch so you do a fetch then run the command 'git checkout feature/abc-123'. You will check out my branch, but when you go to push back to the server you're going to be push a new branch with a lower case file name unless you realize what has happened and know that you need to run 'git push origin feature/abc-123:feature/ABC-123' to push your changes to the existing remote branch.

comment 6y ago · link · parent

You don't need an extension for this, you can go into about:config and flip dom.event.clipboardevents.enabled to false.

comment 6y ago · link · parent

> And they are not reliable in practice.

I'm curious what you mean by this. I agree that when a revolver experiences a mechanical malfunction it's usually serious and the gun is probably done until a gunsmith takes it apart. But that type of malfunction is extremely rare.

comment 6y ago · link · parent

A predicate is really just a test that accepts an input and produces true or false. The expression only becomes necessary when you want to translate the predicate somehow (e.g. to SQL).

comment 6y ago · link · parent

IMO the only question now is how long it takes the rest of the country to follow suite. Here in NC our governor announced the closing of all public schools on Friday, but I've heard from several friends that in my city (Raleigh) the downtown bars and restaurants were pretty much at normal capacity this weekend. I don't think the general public is going to truly take this seriously until they're told that they have to.

comment 6y ago · link · parent

We have a 4 million LOC ~15 year old monolith made by about 10 people that would like to have a word with you.

comment 6y ago · link · parent

In the early 2010s I worked for Fiserv, who at the time provided "online bill pay" services to about 80% of US banks (I don't recall if they're in Canada or not). The overwhelming majority of the bank customers using that service held beliefs similar to what you expressed... it's an online payment through my bank, why on earth would it be a paper check?? They were wrong. The really fun thing about that system was that the customer had absolutely no way to tell what kind of payment the system was going to send to a given payee. A payment that processed electronically for years could suddenly go as a physical check for any number of reasons. Maybe the customer changed something that was slightly incorrect... maybe they should have changed something but didn't... maybe the system just had a hiccup that day.

Regardless of who makes your bill pay service or exactly how it works, my main advice if you use any bill pay service is to ready the fine print very closely and be sure you understand what you have to do to be covered (late fee reimbursement, etc) if a payment does get screwed up.

comment 6y ago · link · parent

Nullable reference types also feel pretty half baked with EF at the moment. If you have a non-nullable column that you want to represent with a non-nullable property in your EF model, pretty much the only option (the last time I looked) was to configure EF to use a nullable private field and access it through a non-nullable public property. It's a lot of extra work.

comment 6y ago · link · parent

At work our team just finished implementing a filtering library for our web services that's loosely based on OData. The query string value is parsed into an expression tree, then all of the operations on the expression tree are implemented using pattern matching. You could of course implement this with the visitor pattern, but in comparing the two we decided to use pattern matching because it's significantly less verbose and easier to understand.

comment 6y ago · link · parent

Storable | Raleigh, NC | Full-time | Onsite

Senior Quality Engineer: http://storable.applytojob.com/apply/SD1uhksg0F/Senior-Quali...

Senior React Engineer: http://storable.applytojob.com/apply/tSMzGhbayO/Sr-Software-...

Senior Software Engineer: http://storable.applytojob.com/apply/2WcUbJtY0a/Sr-Software-...

Technical Product Owner: http://storable.applytojob.com/apply/BUoCRyfu8c/Technical-Pr...

Storable (https://www.storable.com/) is the leading technology company in the self storage industry. Our Raleigh office is primarily focused on our SiteLink product that enables storage facilities owners to manage and run their business. We're in the wonderful position of having an established (15 years old) and highly successful product, but we're also in the not so wonderful position of having a 15 year old product that's accumulated more than its share of tech debt. :) The company is in the midst making a significant investment to help address that tech debt and ensure our long term success - that's why we need you!

We're primarily a .Net shop, and we have code ranging from VB.Net WinForms apps to containerized microservices that are built with .Net Core 3 and running on Linux. On the web front end side of things, we have an AngularJS web app that we're transitioning to React + Typescript. SQL Server is our primary database.

Happy to answer any questions: michael [dot] crawford [at] storable [dot] com

comment 6y ago · link · parent

The main problem with your approach is that you have full control over your dependencies but no control over their dependencies, unless you're inspecting every single package in your dependency graph to make sure that every one of them targets specific versions in its package.json. Realistically, using package-lock.json and npm ci is the only way to ensure that everyone on your team and your deployments are all working off of the same node_modules folder.

comment 6y ago · link · parent

EV's definitely have an advantage in terms of maintenance, but I suspect it's a bit overstated. Most of the things you listed get checked during normal maintenance and might require replacement or adjustment once or twice during the car's lifetime. The big elephant in the room (and possibly an equalizer) is battery lifetime. How long will the battery really last, and how much will replacements cost?

comment 6y ago · link · parent

If you read the article (what a novel idea!) the author explains that his company was running into heap size limits. The company was preparing to tackle this problem with a combination of extensive refactoring, server upgrades, licensing expensive third party libraries, and delaying new features while all of the above was done. His "optimization" reduced peak heap usage by half, making all the changes unnecessary.

comment 6y ago · link · parent

They use Core today, but SO was using .Net long before Core existed.

comment 6y ago · link · parent

I'm totally in favor of using TS, but I agree that lazy devs can set up an absolute mess when they try to use TS without really learning it. I think probably the fundamental weakness of TS is that you really need a good understand of how it's limited to compile time type checking, and how easily you can set up situations where the actual run time types don't match what you have in TS.

For example, it feels like I'm in a constant battle with some of our front end devs about typing their models correctly... they don't seem to understand that they keep setting up the type system to lie to them. For example, if a property in our API is nullable, then the property will always be present in the json with an explicit null value, so the model should be typed `propName: string | null`... but they prefer being lazy when mocking out data on the front end, so they instead type the model as `propName?: string`. Likewise with properties that are date/times (ISO-8601 strings in the json) they love to use Date as the type for those properties, then everywhere they use that property they end up wrapping it with `new Date()` because "it doesn't work" otherwise. Yikes.

1
141516
26