More than you’d ever want to know: https://en.m.wikipedia.org/wiki/Let_expression
- 0 Posts
- 24 Comments
Hudson, now there is a name I haven’t heard in a very long time.
Recently switched to a new contract, which resulted in me switching from IDEA Ultimate to vscode. This picture is terribly accurate.
In intellij I usually do code reviews by checking out the code and comparing the branch to origin/main to step through the changes. Just a right click menu option to compare branches.
I took for granted that this is just a thing IDEs should do, so I looked in vain for a while before googling it and finding out I need a plugin for that. (If I’m wrong please help me find the button, I still believe it must be in there somewhere. Surely the owners of GitHub can compare branches?)
normalexit@lemmy.worldto TenForward: Where Every Vulcan Knows Your Name@lemmy.world•COBIE SMULDERS COMES OUT...9·1 month agoBe cooler if she was a Klingon but this will do.
normalexit@lemmy.worldto TenForward: Where Every Vulcan Knows Your Name@lemmy.world•Linux distributions named after Star Trek terms2·1 month agoDabo is included, where you play with real gold pressed latinum for a “reasonable” monthly fee.
If you are searching by a primary key or other indexed id you should be fine. Here are a couple of articles to check out:
https://www.atlassian.com/data/databases/how-does-indexing-work
https://www.red-gate.com/simple-talk/featured/postgresql-indexes-what-they-are-and-how-they-help/
The TLDR is a where clause that hits an index doesn’t have to go through all the rows in the table.
normalexit@lemmy.worldto Programming@programming.dev•How do I keep all the data I need in one single place for my website?3·2 months agoIt sounds like you need your own API with some sort of persistent store. You may be able to reuse what you’ve done as the view layer?
If this were something I was going to tackle, I’d start by identifying the types of users (authors, admins, users, etc.)
Then I’d think about the kinds of workflows those users are going to need to do. E.g. admins can edit or delete anything, authors can alter their own content, users can only view data, etc.
Now with some loose requirements in mind, start thinking about how to solve the problems for your users. This is when you start evaluating what technology might be a good fit for your problem domain.
You could probably throw together a trivial API that only you can publish to fairly quickly if that is sufficient for what you are trying to do. I dare say chatgpt can spit out a simple rest API in whatever language you like quickly and pretty accurately.
I wouldn’t chase making a static website tool dynamic. That will almost certainly end in heartbreak.
deleted by creator
“They simply go through the whole table”… that’s the problem. A full table scan should be avoided at all costs.
Learn: how to run and read an explain plan, indexes, keys, constraints, and query optimization (broadly you want to locate individual records as quickly as possible by using the most selective criteria).
You also need to learn basic schema design and to familiarize yourself with normalization.
Avoid processing huge result sets in your application. The database is good at answering questions about data it contains. It isn’t just a big bucket to throw data into to retrieve later.
I’ve always been one of the developers at work that people bring their Spring questions to. Usually I just change the logging level and read the errors. Quite often it will tell you what you need to do or give you a good hint at least.
Another “trick” is reading the official documentation. There is a lot of cruft out there, so go straight to the source.
It’s really a great framework but they do give you many guns to shoot yourself in the foot with.
normalexit@lemmy.worldto Electric Vehicles@slrpnk.net•Kia is opening pre-orders for its first electric van, the PV5, starting at under $45,000201·2 months agoThat’s a pretty ugly car, but it does have potential for a TMNT wrap.
Kotlin is one of my favorite languages
normalexit@lemmy.worldto TenForward: Where Every Vulcan Knows Your Name@lemmy.world•Old habits die hard... giggity61·3 months agoThe show is set in the future, but they don’t actually travel to the future to film it.
normalexit@lemmy.worldto Programming@programming.dev•The Pain That is GitHub Actions - Feldera Blog3·4 months agoThis is the way. I do my checks on pre push because my team has a PR driven workflow. I also have an alias to
run-tests && git push origin HEAD
since my tests are expensive (minutes to run thousands of tests), and I didn’t want that in a git hook.
It’s a modern day enterprise fizzbuzz: https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition
normalexit@lemmy.worldto Programmer Humor@programming.dev•The government doesn't use SQL21·5 months agoI’ve worked on projects for the government as a contractor. There is SQL; SQL as far as the eye can see. I’m sure the NSA has some novel solutions to crunching shittons of big data, but day to day, at least in my experience, it is a lot of relational CRUD and reporting queries.
For the curious, it does clearly exist:
https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-rds.html
normalexit@lemmy.worldto TenForward: Where Every Vulcan Knows Your Name@lemmy.world•How does one choose?2·6 months agoLong time Plex user here, thanks for the tip! I get overwhelmed by the available choices and a full rewatch takes so long. Definitely setting this up
Clear concise code that reads like documentation is the ideal. Good function and variable names, formatting, and encapsulation play into this. Tests should document and describe the system.
If it still isn’t clear what the code is doing, and I’m all out of ideas (or time) for refactoring, a well placed, accurate comment is fine. It needs to be kept up to date like any other artifact in the project.
It’s harder to keep comments accurate than code, since code can be executed and tested. I use them sparingly; when I’ve otherwise failed to write clean code, or the code is just so complex that it needs to be described.
Comments are just another tool in the toolbox. If they add clarity to the situation, by all means, use them.
If you can think of an expressive variable name that lets you skip a comment eg “employeeCount”, instead of “e” // number of employees, do that.