I like to code, garden and tinker

  • 0 Posts
  • 8 Comments
Joined 11 months ago
cake
Cake day: February 9th, 2024

help-circle
  • I do agree that human nature is a huge problem. For a utopian government, I do think that is fairly impossible at the moment. As you have said we will need some novel idea or technology, or human nature will have to evolve in some way (that could take a very long time though).

    As for citizens advocating for themselves, you seem to be thinking of peaceful ways to have a government that avoids becoming corrupt. While ideal, as we know humans are far from that and why eventually corruption turns to revolt if the needs of citizens are not met. I am not saying this will solve the issue either. As far as I can tell it just renews the cycle at best, or continues the corruption under a new group at worst. I only say this as technically this is a way citizens will eventually advocate for their rights if the government becomes too corrupt.

    As for the desires of laws for each individual citizen, this is essentially impossible as only very small groups will have ideals and values that are homogeneous. In a populace large enough, human nature will lead to conflicting ideas on which laws should exist and how governments should run. In democracies, this plays into the hands of people or organizations with nefarious political goals. These groups can exploit human nature to get citizens to focus emotionally on a small subset of policies and laws. This tactic can be very powerful in places that don’t regulate this kind of propaganda, such as the United States.

    I would argue this form of political propaganda being pushed by powerful groups that don’t represent the majority of citizens, towards citizens in other groups is one of the main cause of citizens being politically inactive. This creates biases and causes a lot of people to make decisions based on issues whose prevalence is artificially amplified. While that issue may be very important and should be advocated for, this should not be left to powerful groups or organizations that are not representative of the citizens. This also creates a ton of noise, making other issues that may directly affect or be advocated for by a large portion of the population to be obscured. All of this leads to information overload, fatigue, and complacency which leads to ignoring politics and possibly being politically inactive. I say possibly because people will still vote because it’s their civic duty but will be uninformed which can be even more dangerous than not participating in politics. This also turns politics into a sport based on what the current political “hot topic” is, which a lot of people don’t want to participate in and turns them away from being active politically.

    In my opinion, the best solution to get citizens politically active is the need to make politics less biased and present legislation and policies in a fairer fashion. This will not get every citizen involved, but it will encourage more unbiased and informed decisions which will further fight corruption. Politically active citizens can look at legislation and policy proposals and make the sometimes difficult decision of which is the best choice in the present moment. This should also help with “political fatigue” which can cause citizens to not participate. Of course some people will never vote (unless forced to by law), but the best we can do is try to make the process simpler and use less of peoples time and resources.

    All this being said, it will still be an uphill battle for democracies such as the United States to undo the influence of powerful groups in politics, and make their democracies fairer and more representative of the people. I wouldn’t say it’s impossible, but to do so peacefully will take a ton of perseverance, hard work, and most likely a bit of luck.


  • I would argue this is more an issue of when citizens get complacent and stop holding those who govern them accountable. This is when any form of government will eventually start turning to the corruption. Those in power can change the rules while citizens are going about their lives. It works even better if the citizens are too busy and stressed out to worry about “silly things like politics”.


  • The quotation marks did most of the lifting there, and it’s more of an anecdote of their own projections against themselves. They assume these “welfare queens” are driving around in high end cars and living luxurious lifestyles on the governments dollar, while they are the ones doing such. Sorry if there was any confusion. I agree with all the statements you have stated against Brett Farve though, they are the scum of the system they wish to project onto others.


  • Despite texts that show Favre sought to keep his receipt of the funds confidential, Favre has said he didn’t know the money came from federal funds intended for poor people. He’s paid the money back, but he’s being sued by the state of Mississippi for hundreds of thousands of dollars in interest that accrued on the money he received. Favre hasn’t been accused of any criminal wrongdoing.

    Source: (Yahoo News)

    So they could easily of have funded this themselves, but just rather steal public funds because “free money”? Sounds like a so called “welfare queen” to me.


  • Yea this is just syntax, every language does it a little different, most popular languages seem to derive off of C in some capacity. Some do it more different than others, and some are unholy conglomerations of unrelated languages that somehow works. Instead of saying why is this different, just ask how does this work. It’s made my life a lot simpler.

    var test int is just int test in another language.

    func (u User) hi () { ... } is just class User { void hi() { ... } } in another language (you can guess which language I’m referencing I bet).

    map := map[string]int {} is just Map<String, Integer> map = new HashMap<>() in another (yes it’s java).

    Also RTFM, this is all explained, just different!

    Edit: I also know this is a very reductive view of things and there are larger differences, I was mostly approaching this from a newer developers understanding of things and just “getting it to work”.


  • SQL is the industry standard for a reason, it’s well known and it does the job quite well. The important part of any technology is to use it when it’s advantageous, not to use it for everything. SQL works great for looking up relational data, but isn’t a replacement for a filesystem. I’ll try to address each concern separately, and this is only my opinion and not some consensus:

    Most programmers aren’t DB experts: Most programmers aren’t “experts”, period, so we need to work with this. IT is a wide and varied field that requires a vast depth of knowledge in specific domains to be an “expert” in just that domain. This is why teams break up responsibilities, the fact the community came in and fixed the issues doesn’t change the fact the program did work before. This is all normal in development, you get things working in an acceptable manner and when the requirements change (in the lemmy example, this would be scaling requirements) you fix those problems.

    translation step from binary (program): If you are using SQL to store binary data, this might cause performance issues. SQL isn’t an all in one data store, it’s a database for running queries against relational data. I would say this is an architecture problem, as there are better methods for storing and distributing binary blobs of data. If you are talking about parsing strings, string parsing is probably one of the least demanding parts of a SQL query. Prepared statements can also be used to separate the query logic from the data and alleviate the SQL injection attack vector.

    Yes, there are ORMs: And you’ll see a ton of developers despise ORMs. They is an additional layer of abstraction that can either help or hinder depending on the application. Sure, they make things real easy but they can also cause many of the problems you are mentioning, like performance bottlenecks. Query builders can also be used to create SQL queries in a manner similar to an ORM if writing plain string-based queries isn’t ideal.


  • For your own sanity, please use a formatter for your IDE. This will also help when others (and you) read the code, as indentation is a convenience for understanding program flow. From what I see:

    • Your enable and disable functions are never called for this portion of code
    • You use a possibly undeclared enabled variable, if so it never passes scopes between the handleClick and animation methods
    • You do not use any callback or await for invoke or updateCurrentBox, causing all the code after either to immediately run. As a result, enabled is never false, since it just instantly flips back to true. I’m not sure what library invoke is from, but there should be a callback or the function returns a Promise which can be awaited.

  • The numbers are a little higher than you mention (currently ~3.2k active users). The server isn’t very powerful either, it’s now running on a dedicated server with 6 cores/12 threads and 32 gb ram. Other public instances are using larger servers, such as lemmy.world running on a AMD EPYC 7502P 32 Cores “Rome” CPU and 128GB RAM or sh.itjust.works running on 24 cores and 64GB of RAM. Without running one of these larger instances, I cannot tell what the bottleneck is.

    The issues I’ve heard with federation are currently how ActivityPub is implemented, and possibly the fact all upvotes are federated individually. This means every upvote causes a federation queue to be built, and with a ton of users this would pile up fast. Multiply this by all the instances an instance is connected to and you have an exponential increase in requests. ActivityPub is the same protocol used by other federated servers, including Mastodon which had growing pains but appears to be running large instances smoothly now.

    Other than that, websockets seem to be a big issue, but is being resolved in 0.18. It also appears every connected user gets all the information being federated, which is the cause for the spam of posts being prepended to the top of the feed. I wouldn’t be surprised if people are already botting content scrapers/posters as well, which might cause a flood of new content which has to get federated which causes queues to back up; this is mostly speculation though.

    As it goes with development, generally you focus on feature sets first. Optimization comes once you reach a point a code-freeze makes sense, then you can work on speeding things up without new features breaking stuff. This might be an issue for new users temporarily, but this project wasn’t expecting a sudden increase in demand. This is a great way to show where inefficiencies are and improve performance is though. I have no doubt these will be resolved in a timely manner.

    My personal node seems to use minimal resources, not having even registered compared to my other services. Looking at the process manager the postgres/lemmy backend/frontend use ~250MB of RAM.

    For now, staying off lemmy.ml and moving communities to other instances is probably best. The use case of large instances anywhere near the scale of reddit wasn’t the goal of the project until reddit users sought alternatives. We can’t expect to show up here and demand it work how we want without a little patience and contributing.