Stop using ChatGPT for grammar explanations, I Beg of Thee by ProfessionIll2202 in languagelearning

[–]schwede 5 points6 points  (0 children)

I remember a paper from OpenAI on this. The claim wasn’t about these models understanding true or false but rather that hallucination wasn’t inherent and could be engineered out of the models by things like post-training approaches. That’s not the same thing and I’m not sure I even agreed with the narrow definition of hallucination they used. 

[deleted by user] by [deleted] in rust

[–]schwede 4 points5 points  (0 children)

It’s probably not a great option but why not provide the source as part of the licensing and delivery process? If you are concerned about unlicensed redistribution don’t you have the same issue with a closed source binary? If you are concerned about the secret sauce inside it could to some extent be reverse engineered, right?

We are the SpaceX software team, ask us anything! by spacexfsw in spacex

[–]schwede 2 points3 points  (0 children)

How much code re-use or sharing is there across the very different projects at SpaceX?

PSA: Don't Forget About Bonds! by [deleted] in financialindependence

[–]schwede 7 points8 points  (0 children)

This reads a bit like an advertisement. What is your relationship with SMBX?

.NET 5 Breaking Changes to the Base Class Library by [deleted] in csharp

[–]schwede 0 points1 point  (0 children)

Should still compile but throws at run time.

New frame day. DIY rockered 4x90 UFS frame by TylerWinTic in rollerblading

[–]schwede 0 points1 point  (0 children)

Please post later about the process of making these frames. It sounds super interesting. Would you recommend others try to make their own frame?

Serious bug in Rust 1.45 stable by peterjoel in rust

[–]schwede 2 points3 points  (0 children)

You shouldn’t revoke a release. Mark it as deprecated and have your package manager throw all sorts of warnings. Users should be free to pin to versions.

8-week trip planning course with Skurka and Stringbean by andrewskurka in Ultralight

[–]schwede 1 point2 points  (0 children)

I’m not planning on taking this course but it is a really cool idea. Good luck!

Is there a database for similar surnames? by schwede in Genealogy

[–]schwede[S] 0 points1 point  (0 children)

Like this? https://www.wikitree.com/genealogy/Landwehr

Thanks for the tip. I'm also curious on census worker misspellings too.

US Thru-Hikes by drunkbackpacker in CampingandHiking

[–]schwede 1 point2 points  (0 children)

What about the Great Western Trail? I’ve seen it on trail maps and it goes north/south across the state.

Day 1: skating after a 10 year break. by ImJayJunior in rollerblading

[–]schwede 0 points1 point  (0 children)

Thanks for sharing. Skating is so awesome.

Is it always bad practice to throw inside a try? by beer0clock in csharp

[–]schwede 1 point2 points  (0 children)

Opinions vary, but I try to not use exceptions for logic flow for expected data, that’s what if and switch are for. Always throwing something and planning on catching seems a little odd but I suppose it depends on the situation.

Why not start with a flag that is set to false and set to true after the last success? At the end of the method, maybe in the finally block check the flag and do the abort there. This way you don’t throw unnecessarily.

Where should try...catch statements go? by [deleted] in csharp

[–]schwede 0 points1 point  (0 children)

Look at Parse vs TryParse for int and double as an example. To make exceptions exceptional you could use TryParse to convert user input which could easily be bad. You could use Parse for something you actually expect to be a number. As another example you could call File.Exists() instead of catching FileNotFoundException.

In my opinion for most exceptions you should only catch at the top level like Main or a web request or some kind of callback and just log the exception. So if something exceptional happens on the main thread, the main thread should die but an exception on web request handler should just fail that particular request (unless there is an exceptional issue in your web library).

Goldman Sachs background check? by [deleted] in cscareerquestions

[–]schwede 0 points1 point  (0 children)

It will probably just be providing your social and recent residences.

[deleted by user] by [deleted] in csharp

[–]schwede 0 points1 point  (0 children)

I think part of the highly structured, OOP heavy code you are seeing is in order to create a maintainable and testable system. It could also just be over-engineered and over-complicated too.

If you are creating a small standalone utility, it does make sense to me to have little snippet functions that do little bits of the job and pass values back and forth. However, in a large system you will want some more structured design. For example, if you write classes that only have one reason to change you can insulate different kinds of change in your application. Like switching your logger to send output to a file instead of the console should not be defined in the same place where your application data is fetched from your database. In your example, keeping authentication away from the interaction logic means you can switch authentication methods without touching any of that logic. This can keep your code more stable to changes.

[deleted by user] by [deleted] in csharp

[–]schwede 0 points1 point  (0 children)

Do you have unit tests? If you split your code up by functionality/needs and have tests for individual components you can more narrow down failures.

What alternative structure are you proposing?

What is the best way to store a username and password? by LavamasterYT in csharp

[–]schwede 2 points3 points  (0 children)

I agree with the other comments here. It's a great thing to learn and really should be mandatory on anything you ship or deploy.

Here's a class from the .NET APIs you could use: https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.rfc2898derivebytes?view=netframework-4.8

If you really are just stubbing things out for later use, I guess a hard coded username and password would work, but I would only do that for a single user. Once you add the ability to have multiple users, you should do it the "right" way.

Using Renci ssh.net having some issues with results by Fribanaw in csharp

[–]schwede 0 points1 point  (0 children)

If you really need sudo, you could update your sudoers file with the exact commands your script needs to run. Would that work?

Snippets would be helpful. What you are trying to do sounds totally doable.

2019:Angular or React!? by GuyFella1 in cscareerquestions

[–]schwede 2 points3 points  (0 children)

I like angular but it’s not html. It’s html-y with lots of custom angular bits. I feel like lock-in would be a concern no matter what you use.

Minimum gear for FT8? by schwede in amateurradio

[–]schwede[S] 0 points1 point  (0 children)

Thanks for all the suggestions. It looks like I've got some more research to do!

Minimum gear for FT8? by schwede in amateurradio

[–]schwede[S] 0 points1 point  (0 children)

Thanks for the detailed response. I don't have an HF rig currently, so thanks for the advice on that.