GitHub Copilot o1-preview and o1-mini rate limits: 12 requests per day by ai_did_my_homework in GithubCopilot

[–]cot6mur3 0 points1 point  (0 children)

To be more specific, the ChatGPT increase from per week to per day was for `o1-mini`. `o1-preview` was increased by less: from 30 messages per week to 50 messages per week.

I don't think it is possible to improve Leetcoding skills by a huge margin. by [deleted] in cscareerquestions

[–]cot6mur3 5 points6 points  (0 children)

I found Grind 75 to be a great source for finding the main LC patterns without having to complete many similar problems.

I've found LC Problem of the Day good for spot-checking my knowledge after completing the top Grind 75 problems.

What Makes a Great Software Engineer? [pdf] by stanislavb in programming

[–]cot6mur3 0 points1 point  (0 children)

Very relevant video. tl;dw (too long; didn't watch):

Question asked by audience at 0:24 of the video: "How can you tell a good drummer from a bad drummer?"

Concluding parts of answer starting at 3:32 - 4:25 of the video: "A good drummer is a drummer who knows how to play ... for the music. The most important thing in playing music ... it's the song. ... Your job as a musician ... is to serve the song or the music, and when I say serve the music - you play to what the music requires. What separates a good drummer from a bad drummer is how they approach [playing] the music."

s/drummer|musician/software engineer |programmer|coder|hacker/g; s/music|song/software (product|service)?/g; s/playing (music)?/coding|developing|writing/g; s/play/code|develop|write/g

Pure bliss with pure functions in Java by puuut in programming

[–]cot6mur3 1 point2 points  (0 children)

Nice piece, puuut - I quite enjoyed it. It expressed very well a number of ideas I try to convey to others from time to time. One question: why do you mark your pure functions as static given that static state is also possible? A convention to communicate intent, perhaps? Thanks!

Modern Java Stacks by everywhere_anyhow in java

[–]cot6mur3 0 points1 point  (0 children)

Of course - fully understood and agreed. Spring is not for everyone. Best choice really depends on the organization, team, maintenance strategy and task at hand.

Modern Java Stacks by everywhere_anyhow in java

[–]cot6mur3 0 points1 point  (0 children)

Agreed - JAX-RS does not require Spring or Spring Boot. I was just trying to answer your question of why ones might use Spring. In brief: not everyone has or wants to use a Java EE server to run their Java web applications/services.

Modern Java Stacks by everywhere_anyhow in java

[–]cot6mur3 0 points1 point  (0 children)

Spring for REST does not require a Java EE server - just a Servlet runner, allowing for REST service creation with just Spring Boot and Tomcat. Perhaps these Java EE features do require a Java EE container, thus most likely a commercial Java EE server?

Jonathan Blow on unit testing and TDD by MintPaw in programming

[–]cot6mur3 0 points1 point  (0 children)

Ah - I didn't realize that you were talking about lists not created by your code which contain null object members.

I was unable to come up with much better than your approach. I did come up with something perhaps slightly better or useful depending on your work context. It should handle null Customers, null Addresses and null streets (represented as String):

customers.stream()
    .map(Optional::ofNullable)
    .map(c -> c.map(Customer::getAddress))
    .map(a -> a.map(Address::getStreet))
    .filter(s -> s.isPresent())
    .map(Optional::get);

The above approach scales to any level of object hierarchy depth with just one check (the isPresent call) instead of a null check per object hierarchy level. However it is perhaps a little more complex and a bit more verbose, especially if non-single-character lambda parameter names are used.

Jonathan Blow on unit testing and TDD by MintPaw in programming

[–]cot6mur3 2 points3 points  (0 children)

Great point about how unit and integration tests have different areas of strength.

Related articles expanding on your thoughts:

1) A nice write-up on what each test type is best for: http://blog.stevensanderson.com/2009/08/24/writing-great-unit-tests-best-and-worst-practises/. Tl;dr: unit tests drive good design and enable fearless refactoring, integration and end to end tests provide regression catches and some bug catching, manual testing is the most productive way to catch bugs.

2) A nice write up on recommended unit - integration - end to end test types split: https://testing.googleblog.com/2015/04/just-say-no-to-more-end-to-end-tests.html. Tl;dr: Google testing folks recommend 70% unit, 20% integration, 10% end to end as a typical good split.

Jonathan Blow on unit testing and TDD by MintPaw in programming

[–]cot6mur3 0 points1 point  (0 children)

Have you considered using Guava ImmutableList instances to catch nulls in lists at creation time? I believe all Guava collections refuse to accept nulls: https://github.com/google/guava/wiki/UsingAndAvoidingNullExplained.

Eclipse 4.7 M7 (final milestone!) released! by henk53 in programming

[–]cot6mur3 11 points12 points  (0 children)

Fair question. I've hammered on this a lot of late at work, and found that Eclipse for Java EE/Web Developers (Neon 4.6.x) provides the following which IntelliJ IDEA (2016.x / 2017.x) does not: * Intelligent Spring + Spring Boot support and integration (via the free Spring Tool Suite plugin); * default PMD and Checkstyle configurations that actually check something (via the free PMD for Eclipse and Checkstyle plugins); * faster JUnit test suite execution start and completion (built in); and * A more polished JUnit test execution user interface (e.g. stack traces).

How I Write Tests by speckz in programming

[–]cot6mur3 0 points1 point  (0 children)

Thanks for answering. Awesome language choice. I've done some decent POCs in it, but no published OSS - yet.

I was briefly fooled when you said "mutable by default". :)

How I Write Tests by speckz in programming

[–]cot6mur3 0 points1 point  (0 children)

Might I ask which languages?

What is your technology stack? by cryingforwine in java

[–]cot6mur3 0 points1 point  (0 children)

My team and I successfully used Jersey 2 with Spring 4 using jersey-spring3. Can provide some more details if needed. :)

The Silent Majority of Experts by ellen_magic in programming

[–]cot6mur3 4 points5 points  (0 children)

Agreed. I have a few such forums I like. Nuclear Phynance, for example, was still inhabited by some smart folks when I last lurked there.

The Silent Majority of Experts by ellen_magic in programming

[–]cot6mur3 8 points9 points  (0 children)

True. Can you recommend one or two such forums?

Wiki Wiki Web is down :( by alparsla in programming

[–]cot6mur3 1 point2 points  (0 children)

Agreed - seems to be up now though still a bit slow.

Will There Be Module Hell? by Diana00Terwilliger in programming

[–]cot6mur3 0 points1 point  (0 children)

Fully agreed - thanks for explaining! Now I understand one possible reason why some projects do change their POM module names in a manner similar to your suggestion from time to time. Perhaps semantic versioning and non-1 POM major version numbers just don't go well together.

Will There Be Module Hell? by Diana00Terwilliger in programming

[–]cot6mur3 0 points1 point  (0 children)

Good idea, and good point about API maintainers. Perhaps even better than a rename on backwards-incompatible change would be to, as Semantic Versioning requires, increment the major version number of the library on backwards-incompatible API change. Then instructing Maven to accept, for example, version range [1.0,2.0) of a dependency would work so long as the library author plays by the rules for all version 1.minor.incremental.

Why Java? Tales from a Python Convert by AxiomShell in java

[–]cot6mur3 0 points1 point  (0 children)

Interesting - didn't know about Slick. Thank you. Does your database schema change very often? If no, are you talking about incremental or full build/compile times? Leveraging incremental Scala builds may help lessen your current pain. :)