Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Posts by watchmaker‭

7 posts
77%
+5 −0
Q&A java.time.ZonedDateTime missing seconds in output

When printing a java.time.ZonedDateTime, it's missing the seconds in output, is it a bug or a feature? See my code: package tryNcry; import java.time.Instant; import java.time.ZoneId; import...

2 answers  ·  posted 10mo ago by watchmaker‭  ·  edited 10mo ago by watchmaker‭

Question java datetime
75%
+4 −0
Q&A Java generics, how to work around type erasure?

This code doesn't compile: package tryNcry; public class ExampleClass<S extends SomeClass> { S[] createArray(int n) { return new S[n]; // obvious compile time ERROR here: ...

1 answer  ·  posted 11mo ago by watchmaker‭  ·  edited 11mo ago by hkotsubo‭

Question java generics
71%
+3 −0
Q&A Java: ignore warnings from generated code

Again, I'm playing around with javaCC, and get those annoying warnings about "unused" and "dead code". Is there a decent way to put a @SuppressWarnings annotation on a whole package but not on the...

0 answers  ·  posted 10mo ago by watchmaker‭

Question java code-generation javacc
66%
+2 −0
Q&A eclipse templates -- creating and setting a permanent variable

In eclipse (java) Window->Preferences->Java->New new templates can be created. In the field "Pattern" I entered System.out.println("DEBUG ${label}"); ${cursor} I like old-style debug...

1 answer  ·  posted 10mo ago by watchmaker‭  ·  last activity 3mo ago by skye‭

Question Eclipse
60%
+1 −0
Q&A Setting icon with javaFX does not show in task list

I try to set an icon (*.png) with javaFX, but it does not show in the task bar, instead I see the default icon (white cogwheel on light gray background). Here is my code: package application; ...

0 answers  ·  posted 10mo ago by watchmaker‭

Question java linux javafx
50%
+0 −0
Q&A eclipse: change toString to prettyPrint

The task looks ridiculously simple, but I could not find a way of doing it but manually. I have a class with a @Override ... toString() method. I want to diversify this to a more specialized meth...

0 answers  ·  posted 10mo ago by watchmaker‭

Question Eclipse
50%
+0 −0
Q&A Trouble understanding java lambdas and generics

Of course, everyone thinks to understand lambdas and generics. I was one of those until recently. Look at my code: package debug; import java.util.function.Function; public class Understand...

1 answer  ·  posted 11mo ago by watchmaker‭  ·  last activity 11mo ago by r~~‭

Question java