HackerTrans
热门最新趋势评论往期问答秀出招聘

datadeft

no profile record

评论

datadeft
·2个月前·讨论
You are implying a centralized semi monopoly is the only way. If we had farmers to buyers direct distribution it would be much more resilient to this kind of problems.
datadeft
·2年前·讨论
[flagged]
datadeft
·3年前·讨论
> 完全平衡的你给出了一个老式的 Maven pom.xml
抱歉,我很久以前就开始使用 Java,不确定今天“推荐”的做事方式是什么。

我想我只需要知道哪个随机的 Github 项目是当今的新热点,它可以做其他语言开箱即用的事情。感谢您支持我的观点。

同样,要生成单个二进制文件,您需要比 Java 更少了解/关心 Zig、Go 和 Rust。
datadeft
·3年前·讨论
I understand that you mastered producing a single binary with your favorite build tool. In my experience if a language does not have an official way to build projects it does end well. Go, Rust and Zig are the prime example that a language should not be separated from its build system.

How to produce a single binary:

    go build


    cargo build


    zig build


  <project>
  ...
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.4.1</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <artifactSet>
                <excludes>
                  <exclude>classworlds:classworlds</exclude>
                  <exclude>junit:junit</exclude>
                  <exclude>jmock:*</exclude>
                  <exclude>*:xml-apis</exclude>
                  <exclude>org.apache.maven:lib:tests</exclude>
                  <exclude>log4j:log4j:jar:</exclude>
                </excludes>
              </artifactSet>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  ...
  </project>

Can you spot the difference?
datadeft
·3年前·讨论
> Maven isn't Java.

The wheels aren't the car. Sure, try to drive around without wheels.
datadeft
·3年前·讨论
I am not sure there is fear against Java as much as there are better alternatives for many use cases.
datadeft
·3年前·讨论
There are legitimate reasons to chose Go over Java, starting with the build system and the amount of effort needed to produce a single binary. I use Java for 20 years and Go for ~2. I am not actively hating Java but I value my time, specially that was wasted on maven + co.
datadeft
·3年前·讨论
It would be great to have a language that is a love child of Erlang and Rust. All I need is: repl, message passing, actor model, lightweight-threads and strong types. :)
datadeft
·3年前·讨论
TL;DR:

"Game developer optimizes code for execution as opposed to readability that 'clean-code' people suggest".

There are few considerations:

- most code is not CPU bound so his claims that you are eroding progress because you are not optimizing for CPU efficiency is baseless

- writing readable code is more important than writing super optimal code (few exceptions: gaming is one)

- using enums vs OOP is not changing the readability at least to me

I think we can have fast and readable code without following the 'clean-code' principles and at the end it does not matter how much gain we have CPU cycle-wise.