Nextcloud is a really good all-in-one solution for self hosting data
Nextcloud is a really good all-in-one solution for self hosting data
More or less the same but the user gets passed as a method parameter each time. Validators would be in my opinion a long function inside the service also with named variables like this because it’s just easy to read and there are no surprises. I’d probably refactor it at around 5 conditions or 30 lines of validation logic.
I recommend trying out using the constructor in services for tools such as a database and methods for data such as user. It will be very easy to use everywhere and for many users and whatever
const passwordIsValid = ...
if (!passwordIsValid){
return whatever
}
I like the service but the constructor parameter is really bad and makes the methods less reusable
I always thought of the “how” being better explained by the code itself where you can see string.replace(" ", "\ ")
as the actual fix while the message says the “why”.
I would still have “Fix a bug where strings containing whitespace break CSVExporter” as my go to message.
I guess our viewpoints are different based whether we want the commit messages to represent tasks or changes. They both have their uses of course. Looking at changes to a file to know what people have done to it is better with a “changes” type message but looking at the history to check “did we actually complete this or was it just marked as completed in the issue tracker?” is better with a task based message.
Task management where every issue is put on a ticket and tracked would my type of messages obsolete but at my current company theyre very useful.
That’s a tad bit difficult since Hezbollah military rivals that of the Lebanese government. This is pretty much an impossible request and him saying that he’s going to cause Lebanon “destruction and suffering”
I like good commit messages that use less words but still give the full picture. If something hacky was done then a comment is better. I like mine with imperative voice since it avoids writing a prose.
“Fix a bug where when doing x then y happens”
“Add setting to control x”
https://www.iea.org/countries/china/
Not a tanky or China apologist but it’s actually doing fine (not great but very well might be soon).
Here’s the information you’re looking for. China is doing a lot of things right and is ahead of schedule. They’re making good progress on electrification and their renewables are growing exponentially at an insane rate.
They’re still addicted to coal but with the developments in solar and wind and a very large geography and energy storage programs they’re going to be phased out and really fast in the coming years.
Given the fact that they’re pretty much producing everything for western economies and is recently industrialised China is actually doing fine. They emit a lot less per person than the average European while producing goods for 2x their population.
It might sound weird but China is one of the countries that’s actually taking climate change seriously.
Come to v18, things are nice here.
This the exact same sentiment as people had in segregated US had towards activists.
Why mine minerals when you can mínu coal and drill for gas and oil ability?
Best is when the API doesn’t match a PDF and says “500: Internal Error”
I like the concept and I think the use case is almost covered by generating API client through generated OpenAPI spec.
It’s needs a bit of setup but a client library can be built whenever a backend server is built.
I don’t, but some people are weird.
I’d personally never go but there are people who do war zone tourism. I could see why a person would want to experience a full on propaganda tour made by an totalitarian regime with all those cold war era propaganda art.
There’s a reason to go there other than to say you have, but it’s not worth the risk for most people IMO.
I feel like a lot of people here assume that you’re going to be automatically arrested when going to DPRK but it’s not completely true. You can get easily arrested and you have to follow strict cultural/government imposed rules.
The DPRK previously has done a “put it’s best foot forward” and keep tourists in a bubble where you’re not allowed to take pictures or videos unless in specifically permitted zones. It’s essentially a propaganda tour.
So you definitely can go to the DPRK as a tourist but for the love of god follow their rules to the letter.
One of Putin’s main support comes from his “Keep Russians safe” narrative. It’s also diplomatic currency in case they start negotiating peace
I bought a used desktop with 4 SATA ports. Has i5 7th gen and currently 5 TB and an 500GB SSD and has max ram of 64GB. I guess the HDD are not included in the price?
I’m not sure what your software requirements are but if you go the DIY route a desktop works. I made the BIOS auto turn on on power restored and have services start on startup so it gives the server feeling.
Bonus is that you can use it as a gaming server and upgrade the components easily for a while depending on the motherboard.
Ruby syntax is nice although I prefer python way of enforcing indentation instead of adding "end"s. Personally I just want a statically typed language with enforced indent as syntax.
On braces are not used in if
or for
statements
To expand on that you can never instantiate an object of type answer07 since it’s a static class.
(For the students here the “static” modifier means “it’s on the class, not the object”. Non-static will only be accessible as a “obj.whatever” but static is accessible by “Class.whatever”)