[-] Lysergid@lemmy.ml -1 points 4 days ago

There were many empires throughout the history. Of course there were very few at the scale of your examples. We didn’t had internet or ability to fly and sail bunch of tanks across thousands of kilometers within days. But history shows that intend was always there

[-] Lysergid@lemmy.ml 9 points 4 days ago

We just gonna have other bully. That’s how power vacuums works

[-] Lysergid@lemmy.ml 26 points 5 months ago

Omg this is so true, I had 3 engineers which supposed to work on component. It took me almost a day to explain context, requirements and how work is split. Two of them were busy with other work. One did their part. After reviewing I realized they still lack understanding and need to rework what was done.I made an experiment and implemented whole thing myself. Since coordination part was eliminated it took me 3 times less than initially estimated.

[-] Lysergid@lemmy.ml 96 points 6 months ago* (last edited 6 months ago)

Nope, JS is “You think you are nerd”.

Also, why React is there? It’s a lib not a language

[-] Lysergid@lemmy.ml 40 points 8 months ago* (last edited 8 months ago)

While trade war isn’t good for anyone US is clear looser here since China’s export to US (as of 2023 stats) is only 15% from its overall export. They can sell more other countries to smoothen impact. Meanwhile who gonna buy US stuff? “Best friend“ Russia with total GPD of less than California?

[-] Lysergid@lemmy.ml 56 points 9 months ago* (last edited 9 months ago)

I feel like people are complaining about wrong thing. At least for me it’s not a problem that there are different communities. To me problem is same posts. What would be great is to have same posts merged into one post with comments from all its duplicates. This way communities are independent, lemmings don’t get to scroll same copy-pasta and discussion of same thing is visible cross communities/instances. Question is how we define “same” is it carbon copy of post, or same content only? Alternative titles can be shown if content is same but not title.

[-] Lysergid@lemmy.ml 29 points 11 months ago* (last edited 11 months ago)

And this is how your city’s traffic, pollution, petrol expenses, stress, respiratory disease infections go up coz some CEO feels power forcing others to do something unnecessary just because they can

95
Coder (lemmy.ml)
[-] Lysergid@lemmy.ml 37 points 1 year ago* (last edited 1 year ago)

What you expecting called natural sorting. Mac employed natural sorting back in 90s. What you get is legitimate Alphabetical sorting which used by Linux and Windows. Natural sorting parses tokens in the string and compares them. Alphabetical sorting compares two strings by comparing individual characters at same index (position). Alphabetical sorting is quite common as it simpler to implement (or rather harder to screw up) and yields predictable results

One of many libraries for Python which implements natural sorting https://github.com/SethMMorton/natsort

1
[-] Lysergid@lemmy.ml 29 points 1 year ago* (last edited 1 year ago)

95% exaggeration. Here is reality:

  • yeah you need main class coz it’s OO-language. Though, not required anymore, which should’ve been done once Java got scrip language capabilities (jshell) back in JDK 9. But as of today not required anymore
  • imports exist in most if not all languages. Gotta be insane writing them manually in 2010 let alone 2024
  • installing Java runtime (JRE) is as simple as installing any app. Though for installing JDK you need 5 mins for setting PATH. Think about JDK as like TSC or Webpack and JRE as a Browser. I’d argue installing and configuring JDK is simpler than TSC or Webpack
  • Unless you doing some non-trivial multi-threading your stack trace will tell you exactly where is your NPE. You gotta be as blind as my teammates to spend more than 1 minutes to find where it is coz it literally tells you file and line numer where Exception occurred
  • I mean, yeah if you use IDE from 2000 it will look like it. IntelliJ looks modern, though I don’t like the fact latest versions look like VSCode
  • I hardly reach 3G of deps from all 10 projects I have on my workstation.
  • IDK what anon means by ecosystem here, Java ecosystem is quite standard across the board. JDK(std lib), Maven/Gradle(deps, build, publishing), Spring Framework (all sorts of blueprints and solutions to standard app level problems), Hibernate/JPA (ORM), JUnit+Mockito (testing). These are tools and libs used in 90% of projects I worked on. Of course there will be more depending on project needs. Layers? It’s not like language imposes any layers whatsoever. It’s just common practice to have 3-4 layers and some glue in-between.
  • don’t do GUI in Java it sucks and will suck until Java gets string interpolation. Hopefully soon
  • concurrency is actually the only thing which is really bloated in Java. Which will change with next LTS version if I remember correctly. And it’s not that hard if you actually read the f manual and not just “try and hope”. Again it will become much more efficient and easier to follow soon. As of now - yeah, not trivial. But people mostly prematurely optimize, so karma
  • Java is kinda have 20 ways to do same thing but actually no. Java built with idea of providing simple building blocks. Then it provides more specific API built on top of those building blocks. It allows to have API which solves typical problems and provides capability to solve custom problems with those building blocks. People often confuse this as many ways to do one thing but it’s like saying “I can have byte array why I need string data type”. Those are different levels of abstraction

Edit: typos

10
submitted 2 years ago* (last edited 2 years ago) by Lysergid@lemmy.ml to c/programming@beehaw.org

Hello my fellow, lemons? I have this problem in my current project I’m out of clue how to approach it. Maybe someone had similar experience and can give an advice.

Our requirements captured in JIRA. Throughout years we accumulated thousands of user stories. Say suppose following naive requirements team knows about:

  • Day 1: create home page
  • Day 20: create profile page
  • Day 50: add green footer to all pages
  • Day 100: create admin page Day 150: change footer color to blue

Now I’m doing refactoring (yes, I know, this is the actual problem) on day 400 and noticed that footer on profile page having green footer. Because requirements are just set of individual statements not consolidated with all history of system no one on the team knows why is that, is it bug or requirement did change on day 300 but we cant find it now.

When I worked in Waterfall we had BRD and FRD stating current actual desired state of system which was “reduced” from individual requirements which were coming in throughout project life. When in doubt devs can check FRD and not only know how system expected to behave but also which are other parts of the system that will be affected. How is it in Agile? To my understanding FRD is not a thing in Agile. Do I need to scan through hundreds of tickets and hope I didn’t miss anything every time i’m doing any non-trivial change to system?

[-] Lysergid@lemmy.ml 29 points 2 years ago
[-] Lysergid@lemmy.ml 26 points 2 years ago

Please, can you give an example of such code snippets? I’m wondering what people consider reusable in different projects.

416
[-] Lysergid@lemmy.ml 72 points 2 years ago

Half of it is fragile CEO ego reply

view more: next ›

Lysergid

joined 2 years ago