#git

1 messages · Page 1 of 1 (latest)

austere bone
#

this is sort of a git question, but my code is java

public class IslandCreator {

    public void create(Player player) {
        // TODO: Implement later
    }

    public Location nextIslandLoaction() {
       // This is implemented & complete
    }

do you guys ever commit empty methods with a comment to implement later because the rest of your code isn't ready yet? i don't have other classes implemented that this class will use yet so my create method can't be implemented until some other parts of my project are done

runic furnaceBOT
#

<@&987246399047479336> please have a look, thanks.

#

Here is an AI assisted attempt to answer your question 🤖. Maybe it helps! In any case, a human is on the way 👍. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#
TJ-Bot
This is sort of a git question, but my code is java ``` public class IslandCreator { public void create(Player player) { // TODO: Implement later } public Location nextIslandLoaction() { // This is implemented & complete }

You can use Git with Java code by initializing a git repository in your project folder and using git commands to manage version control.

To start, navigate to your project folder in the command line and run git init to initialize a new repository. Then, use commands like git add . to stage changes and git commit -m "message" to commit them.

If you're working with others, you can also push your changes to a remote repository using git remote add origin <remote repository URL> and git push -u origin master.

Useful links:

scarlet bear
austere bone
#

will use the apache NotImplementedException

fossil grove
#

throw new UnsupportedOperationException("unimplemented")

#

only pull in apache stuff if you already have apache stuff for something

austere bone
#

apache is a transitive dependency of something. UnsupportedOperationException is part of java right? so i'll use that instead

fossil grove
#

yeah

#

vavr also has API.TODO()

#

lots of libraries throw in their thing

#

if you were already using vavr theres no downside, but if you aren't its strange to add a dep for something that is definitionally temp

#

same thing with apache

#

if you are using it thats okay

austere bone
#

in general should your commits be buildable? like when i run ./gradlew build for any commit ideally it should succeed? sometimes i run the build command, but sometimes i just commit my code

fossil grove
#

your PRs should be

#

but commits, eh

#

up to you

#

its just a checkpoint