Better HN
topnewbestaskshowjobs
Log inSign up

devjab

3,171 karma · joined Dec 3, 2022 (4y ago) · 1,076 submissions

Submissions

comment 1y ago · link · parent

I've been in SWE in non-enterprise for decades and right now I'm seated with IT and operations because our two teams total less than 15. The amount of users who open tickets with "I have this issue" and then send a screenshot of some error in a browser with absolutely no context... Not even the full browser image, just a small snapshot of the completely meaningless error... As though they expect the IT support people to just know what they were doing? My twin todlers who haven't learned to speak yet are still somehow better at telling me what is wrong when something is wrong.

I'm always amazed at how friendly the IT support people manage these things.

comment 1y ago · link · parent

Microsoft is still the best IT business partner for non-tech enterprise organisations. The sort of support you get as a tiny company or a private customer, like the stuff from the article, is similar to what you get from a lot of other tech companies. You get to talk with an AI if you're lucky enough that it's not just an automated system. Step into enterprise where Microsoft will call you when something goes wrong. Sure they've moved from old-scool product licenses to Azure, and their partner program is less "outsourced". The platform is still selling products that make it very easy to be an IT operations unit where your IT related corporate titles can tell the rest of the organisation that they are in constant talks with Microsoft who is working hard to resolve the issue.

It's an old tale, but Azure was sort of late to enter the market here in Europe compared to AWS (GCP was never really an option for a lot of sectors due to Google's inability to sell actual products without Big Brother). Anyway, in the early days AWS had terrible support, it was basically like trying to contact Google as a private customer even if you were a major company. Then came Azure and blew it's way into the enterprise sector, partly because Microsoft was already there but also because Microsoft did what they always do, and actually give you people to talk with. 3 months later we had an AWS representative calling us with a similar experience on sale. Google never adopted anything like it, but today AWS is frankly a great experience for enterprise as well.

The last part Microsoft has is that they bundle things. Teams didn't win because it was the best at what it did when it arrived. It won because nobody in non-tech enterprise would want to pay for a Teams alternative when they were already paying for Teams anyway. In Enterprise you don't pay the listing prices that you or I would if we were to buy office365, windows and some Azure services. You instead buy things through a partner program, and then some of the licenses are different than they otherwise would be.

There is no real alternative to it. All of Europe is looking into moving away from USA tech giants now. You can absolutely replace the Office365 platform with something like Open Deks, but you can't do it without having IT operations staff who can do a lot of the things Microsoft would typically do for you. Similarily you can absolutely run things on Hetzner or OVH, but not as easily as you could if you were doing the Azure vendor lock-in.

If it wasn't for the current geo-political situation, Microsoft would continue it's monopoly on non-tech organisations. For a good while anyway. Because ironically one of their strengths was familiarity. It used to be that when you hired someone, they knew Microsoft Office and they knew Windows, but they've lost that edge. Maybe because this blog entry is spot on as far as the private customer experience goes. Today the most frequently asked question from our new employees as far as IT goes is "can I get a mac?".

comment 1y ago · link · parent

We're into Go and SQLC by extension because we write systems with 0 dependencies outside of the standard library. Which is a security and compliance thing.

As far as building something fast, I'm with you. I always reach out for Python with UV, Litestar and Advanced Alchemy when I want to build personal web projects. I don't think SQLC is bad as such, once you've written your SQL you can essentially compile that into a CRUD application which is ready to go. As you've pointed out, however, you'd need to slam something like a GraphQL engine on top of it if you wanted rich quries easily, and you'd still not have the auto-generated OpenAPI that comes with Python web frameworks.

SQLC is for code where you want a low amount (or zero) external depedencies. Which is a very "Go" thing to want. It does scale well, but that requires you to build various CLI tools to help maintain things as well as your own Go modules to add "quality of life" like dynamic routers and get queries for low traffic requests.

I'll try SQLx eventually when I get time to look more into Rust.

comment 1y ago · link · parent

> SQLC - configuration file (yaml/json) - schema files - query files - understand the meta language in query file comments to generate code you want

I would recommend using pg_dump for your schema file which means it'll not be related to SQLC as such. This way it will be easier for you to maintain your DB, we use Goose as an example. In our setup part of the pipeline is that you write your Goose migration, and then there is an automated process which will update the DB running in your local dev DB container, do a pg_dump from that and then our dev container instance of SQLC will compile your schema for you.

The configuration file is centralized as well, so you don't have to worry about it.

I agree with you on the SQLC meta language on queries, I appreciate that it's there but we tend to avoid using it. I personally still consider the meta language a beter way of doing things than in-code SQL queries. This is a philosophical sort of thing of course, and I respect that not everyone agres with me on this. It's hard for me to comment on SQLx, however, as I haven't really used it.

What I like about SQLC is that it can be completely de-coupled from your Go code.

comment 1y ago · link · parent

We've been running SQLC in production for a while now and I'm curious which part of it you found unintuitive? We run ours as a container service within the development environment that will compile your code from a postgres dump file. We've had no issues with it at all after the initial configuration guidelines for SQLC, though the documentation certainly isn't exactly great. Hell, I'm not sure I've ever worked with a better SQL to language tool in my decades so I'm surprised that it isn't working out for you.

That being said, as I understand it, SQLx does something very different. If you want dynamic queries, you'll basically have to build that module yourself. The power of SQLC is that anyone who can write SQL can work on the CRUD part of your Go backend, even if they don't know Go. Hell, we've even had some success with business domain experts who added CRUD functionality by using LLM's to generate SQL. (We do have a lot of safeguards around that, to make it less crazy than it sounds).

If you want fancy Linq, grapQL, Odata or even a lot of REST frameworks, you're not getting any of that with SQLC though, but that's typically not what you'd want from a Go backend in my experience. Might as well build it with C# or Java then.

comment 1y ago · link · parent

I know it's not exactly the same because these tools are for internal use and never see the public, but react native works well while keeping the maintainence at a minimum. I'm not in on the ops site of device control, but our IT installs the APK packages directly through the enterprise control they have, so we don't have to deal with Apple or Google. So I agree with you completely on that part, but cross platform maintainence isn't as hard as it used to be if your toolsets support it.

I did maintain the Apple account for a previous place where I worked though, and holy hell that sucks. Not so much the day to day work, but being from the Scotish part of Denmark, it hurt my soul to pay them money (it wasn't even mine) to use their platform. Not sure if Google is as shit, never tried their store from the developer side.

comment 1y ago · link · parent

I'd argue that it depends on your users. From a business perspective, it's a lot safer for us to release on fridays because failures would not affect a lot of people over the weekend. Of course I do live in a country where you'd have to agree to fix it over the weekend, and if you do, you'd be compensated with new days off + money.

comment 1y ago · link · parent

After a couple of decades in the Danish software industry I've come to accept that there is only trunk-based development (COME AT ME!). Feature branches, set releases and so on are fake safety gaps that people add when they don't trust themselves and/or their developers. These days I view it similar to someone who won't deploy changes on fridays because they fear for their weekend. If you're too afraid to deploy on a friday, then you should not be allowed to deploy on a monday. Similarily, if you're not brave enough to push changes to production, then your changes aren't ready.

Of course I don't actually think there is a religion on how to do these things, but I've never seen any particular quality added by people doing quarterly releases from a feature branch. For the most part I think this part at the very beginning of the article explains a lot of the reason as to why that is:

> When we do trunk-based development, the WIP we commit gets used, before any actual user sees it, by our whole team.

In my eyes all of it comes down to management much more than deployment strategies. The disadvantage of feature branching is that it's very easy for management to cut costs on testing. The disadvantage of trunk-based development is that it requires functional teams of people who can actually work together and accept the "norms".

comment 1y ago · link · parent

Radon gas is a pretty big thing in construction where I live since our underground is mainly boulder clay (which apparently has or leaks or whatever a lot of radon gas). Anyway, In Denmark a little over 5000 get lung cancer every year, and 300 of thouse are from radon gas. Acording to our Kræftens Bekæmpelse (anti-cancer NGO) there may be an additional 25% risk of radon causing lung cancer if you smoke.

Since around 2000, it's been part of building regulations that you gotta build air-gapped foundations in family homes. Those who can measure radon gas are adviced to buy things to fight it, and you can reduce it to basically 0% for little money.

I never really considered it from an advertisement perspective as it's adviced by our government and non-profit NGO's. So there is that, if that helps you.

comment 1y ago · link · parent

> It's interesting to me that you'd go the hassle of hosting your own SharePoint on prem, but leave it internet facing. I would have assumed a the Venn diagram of these organizations to be entirely contained in orgs forcing you to use a VPN.

It likely will be entirely contained, at least in theory. Because is your IT and OT isolated? They should be, but man could I tell you something about the energy and public sectors... Let's just say, that if you're in an organisation with any sort of OT, then you may as well assume that everything you have is facing the internet in some way. I suspect it's frankly like this in any sort of enterprise organisation getting worse the more the org views IT purely as a cost center.

This is why we don't just rely on things like VPNs. Everything we have uses port security (mac-adresses) at a much more ganular level than the VPN does. At least for the parts of our systems landscape where this is possible. With something like SharePoint it's hard to allow specific devices because it's usually something everyone should have some sort of access to. Then you have all the organisations where SharePoint also has some sort of non-VPN access because some CEO level wanted it at one point since they can't be bothered to bring a work PC to their Holiday home.

comment 1y ago · link · parent

I think your point is fair as you can do runtime safety in Go by wrapping Panic, but that's not exactly what Panic is meant to be used for. I guess it's more of a intent vs syntax thing, aside from the part where Panic can be Recover()ed.

You're taking it out of a context of me praising Golang, however, and while I do hate the fact that they didn't just do runtime assertions, it's not like I dislike Go as a whole because of it.

comment 1y ago · link · parent

I worked with C# for a decade and it's become a really great general purpose language. I'd still prefer never to work with it ever again after having worked with Go. This isn't for technical reasons at all, but because Golang is so easy to work with for "people reasons". There are brilliant parts of Go, but the only thing I find myself missing in other languages is the simplistic module isolation, where every folder is a module, every file within the folder is part of it and then you expose functions with capital letters at the beginning of their name. Holy hell did I wish Python had that. Anyway, the thing that makes Go nice to work with over time is the explicity of everything and a lot of the very opinionated decisions. With a piece of Go code I can jump in and immediately know what is going on regardless of who wrote it. With C# I'll often have to go down long "go to definition" paths. Often you will end up trying to figure out just how someone was trying to "fight" the implicit magic of the non-STL Microsoft dependencies they used. Usually because they didn't really understand what they were doing. All of these are human issues and no fault of C# or .Net as such.

Of the few technical advantages Go had for us is that we don't need a single dependency outside of the standard library, which can't live in isolation. We use SQLC and Goose, both are run in containers that only have rights and access on the development side of things.

I'm not sure I would say that Golang has a lot of weird, pointless quirks, but it has opinions and if you happen to dislike them, well... that sucks. I hate the fact that they didn't want runtime assertions as an example, so it's not like I don't understand why people dislike Go for various reasons. I've just accepted that those strong opinions is the reason Go is so productive.

The challenge for us is that it's not exactly as productive as Python. So while you'll need to do a lot of toolchain work to get Python anywhere near Go's opinionated stucture, that is often a better choice if you're not a hardcore software engineering team. At least for us, it's been much easier to get our business intelligence people to adopt UV, pyrefly, ruff and specific VSC configs for their work than to have them learn Go.

I suspect that is why Rust is also doing so well. Go is a better Java/C# for a lot of places, but are you really going to replace your Java/C# with Go if you have dacades worth? If you're not coming from Java/C# will you really pick Go over Rust? I'm not sure, but I do know, Go failed to become a Python replacement for us. It did replace our C#, but we didn't have a lot of C#. Eventually we'll likely replace our Go with C/Zig and Python to keep the language count lower.

comment 1y ago · link · parent

Not necessarily, you can task the AI Agent with writing your tool without the use of external dependencies. Often the tool itself will be absolutely horrible, but this doesn't matter if the output of the tool is fine. As in the case of OpenAPI documentation, you basically get the LLM to write the equivalent of C#'s Swashbuckle (or whatever it's called these days) for your language. What it produces is horrible in comparison to the third party dependencies you would have pulled 5 years ago, but the output is the same.

You can also let it use outside dependencies, but then you're right, then it would make little difference in regards to security.

We figured this out because Go didn't have a "Swashbuckle", and nobody wanted to write the documentation or use codegens to go in the opposite direction. When it turned out to be so easy to use LLM's for these things, it grew into it's own thing in regards to replacing a lot of dependencies. Obviously the LLM is still the dependency, but you can replace all other external dependencies for a lot of things like this. Which means you won't acidentially pull something malicious.

I imagine we're going to see more and more of these in-house dependency replacement tools. Coming from Go, I obviously use SQLC (which is run inside it's own isolated container that is only available for requests from developers and is only updated by hand). If we couldn't run SQLC in total isolation then I imagine we would have had to build our own "SQLC". I haven't tried but I'm pretty confident that you could use LLM's to build a similar (but much worse in quality) tool. In an ideal world, we would have been allocated the resources we needed, but in reality, it would have just made us slower as "IT" is still viewed as a cost center on par with HR except that we aren't even "IT".

comment 1y ago · link · parent

Being in the energy sector dependencies is something we intentionally avoid because we'd actually have to go through and review changes. What has helped this immensely is AI code assistance. One of the primary uses is to use it to write CLI tools for code and config generation in the tool chain. All of it is around making your life easier, without pulling external dependencies.

An example is that we create openapi docs with LLM's. Then we serve them with Go's net/http + FileServer, meaning that we never leave the standard library. Of course the LLM itself is a third party dependency, but when you use it to write CLI tools that then do the code generation, it never actually sees the code. That also means that the quality of those CLI tools are less important, because it is their output that matters.

It only goes so long of course. I'm not sure any of our front-end engineers would want to live in a world where they weren't allowed to use React, but then, their products are treated as though they are external anyway.

Anyway, it's a lot easier to make engineers stop using "quality of life" dependencies when you give them something that still makes their lives easy.

comment 1y ago · link · parent

I ended up replacing my 12 mini with a 6z flip from samsung. The only real annoyance is that Apple hasn't enabled RCS for Danish telecom companies yet. Well that and sand... We'll see how long it lives though. The reason I originally went to apple was because my first smartphone (a galaxy 2) sort of did the planned obsolescence thing exactly the same way my two buddies galaxy 2's did at the time. If the flip lives for 5ish years then I'll likely never go back to apple. Unless they make a phone that will actually fit comfortable in my pockets again.

The little half screen on the flip is useless though. Basically nothing works on it.

comment 1y ago · link · parent

Can someone help a Danish person understand these cuts? I dislike the current government of USA, but it's not like I can't see the motivation behind wanting Greenland and all the other things they do. Reductions on USA space supremacy is the one area I really can't see a reason behind. Like who benefits from this? In the grander scheme of the entire USA budget these cuts aren't going to be meaningful, if anything, it seems like a waste to not utilize something you've already spend the majority of it's life time cost to get up there.

Hopefully it will lead to a situation where the freed time will be rented out. I mean, xuntian won't be capable of replacing James Webb since it's meant to complement rather than rival.

Is it part of the anti-science? Do they hope they can contract stuff out to the private sector? Or what?

comment 1y ago · link · parent

The cookie banner pop-ups are not compliance with the EU legislation, in fact, many of them are in direct violation of EU laws. If you were to give sites the benefit of doubt, they are doing it because they are copy pasting, but the reality is, that the law is that they can not track you without your concent and that they are not allowed to bother you. The fact that they do is likely malicious compliance to get you to blame the EU rather than their shitty tracking practices.

Any site that doesn't have a single button click to ignore all cookies, breaks EU law. But to truly follow the law, you would have to go into a site setting on your own, and enable tracking. Which nobody would do.

comment 1y ago · link · parent

> You can't crash.

That's the exact point of runtime assertions. You can't crash, so you fail exactly at the moment something is corrupted. One of the reasons Go didn't devided to include runtime assertions (and one of the only choises for Go I really dislike) is that they aren't exactly safe because you still have to deal with that failure, and I suppose it's very easy to fuck it up.

What you're describing in your post is essentially what I think of when I say runtime assertion. You use them to revert to the previous valid state and retry, you can micro-reboot, you can go into a "factory setting" where your software can continue until an engineer can actually work on it. Things like that. The primary difference is that with runtime assertions, you stop exactly when the corrupted states occours instead of trying to continue with that corrupted state.

It's not like this should replace testing or any of the other things you bring up. I still strongly recommend testing. Tests are for prevention of errors, however, and runtime assertions are for dealing with errors when they happen at runtime. Exception handling is the other way around it, but with exceptions you continue with the corrupted state and try to deal with it down the line. I don't personally like that.

> Never fails isn't possible.

In the previous decade we've had 0 software failures causing shutdown of equipment in any of our many solar parks. This is not to say we haven't had failures. Last I checked the data we've had around 700. incidents which required human intervention, but in every case, the software was capable of running at "factory settings" until the component could safely be repaired or replaced. By contrast we've had quite a lot of hardware failures. Now... it's not exactly life threatening if parts of a solar plant fails, at least not on most plants. In almost any case it'll only cost money, and the reason we're so tight on not failing is actually exactly that. The contracts around downtime responsibility are extremely rigid and my organisation cares quite a lot about placing that responsibility outside of "us". So somewhat ironically we're doing software "right" in this one place because of money, and not because it's the right thing to do. But hey, the work is fun.

> Clean/clear/simple code.

I would replace "Clean" in this part, but it depends on what you mean. YAGNI > Uncle Bob!

comment 1y ago · link · parent

I'm not sure they became instantly test-driven, but I do think that the exception handling model as default error handling in Java and C# was a big drive toward test-driven development. Eventhough both have the ability to do runtime assertions and even work with contracts to some degree. It's also why I think Go's panic is far preferable, but that's a different story, and Go doesn't have runtime assertions so there is that.

But it was probably more than just type systems and error handling. What it has meant, at least in my part of the world, is that a lot of programmers (and I mean the vast majority) are very bad at deal with errors exactly when they happen. This is anecdotal, but I think I've met one or two developers outside the telecom and energy sectors that knew you could do runtime assertions.

comment 1y ago · link · parent

Well yes, considering NASA wanted it in theirs. There are a lot of advantages in immediately failing when your software does something you don't want it to do rather than trying to continue in a corrupted or invalid state. As for how you deal with it, it depends. Erlang has a lot of "self-healing" supervisor/actor models which are widely used, but I don't have a lot of experience with those.

We use a form of recovery oriented computing in our solar plant components, though to be fair, we only use a very tiny part of it since we basically reboot to the last known valid state. Which isn't exactly 100% safety, but it's not like anyone dies if an inverter or datalogger goes offline for an hour.

I'm curious to know how you would deal with errors in these sort of things without runtime assertions or similar. Maybe my knolwedge is outdated?

comment 1y ago · link · parent

I don't think anyone ever regretted doing a test but runtime assertions are so much better because they deal with issues when they happen, rather than trying to predict potential failures. This was probably forgotten as interpreted languages became more popular, but hopefully we're going to see a return to less "developer focused" ways of dealing with errors, so that your pacemaker doesn't stop because someone forgot to catch the exception they didn't think could happen with their 100% coverage.

comment 1y ago · link · parent

Certainly. I'd argue (and I have been) that we should have done these things a long time ago. I live in Denmark, we have a digital national ID called mitID. You can use it without the official app, but it's annoying, and similar to all other public apps (we have a social security card app, a drivers license app, a doctors app, an app for communicating with schools and daycares and so on) you need Google Play or Apple Store to use them. So even if you as a private citizen want to run a FairPhone with /e/OS then you can't do that and also run any public app.

Even without actual political interference, it's slightly annoying that we bind our public services into having a Google or Apple account.

comment 1y ago · link · parent

I think you raise a good question, but Python doesn't have a traditional for loop. To do it in one loop, you'd either have to simulate a traditional for loop with something like range, or you'd have to build a c/zig/rust lib and use it with cffi (or whatever rust uses that I forgot what was named). Or you're going to do it the "pythonic" way and write two loops, probably with a generator. As far as micro optimisation I'd argue that it depends on what you want. Speed or stable memory consumption? The single loop will be faster (for the most part) but the flip side is that there is a limit on how big of a data set it can handle.

It's all theoretical though. On real world data sets that aren't small I don't see why you wouldn't hand these tasks off to C/Zig/Rust unless you're only running them once or twice.

comment 1y ago · link · parent

It's wild that the aristocracy has to re-learn that rule of law, equality and liberalism are sort of great when you don't want the king to be capable of taking your toys at a whim.

comment 1y ago · link · parent

I'm not going to defend Microsoft, but you don't budget based on current achievements. You budget on future prospects, and right now Microsoft is facing some tough times in Europe. The biggest IT expense in my country is the public sector buying various Microsoft licenses, and everyone from the top down are looking into replacing Microsoft with Open Source alternatives due to digital sovereignty.

I doubt that has a big impact on Microsoft's gaming divisions, but it would help explain why they might not think the previous decades of growth will continue.

comment 1y ago · link · parent

Cool, thanks for the correction.
12345
36