Timeline for Console text UI progress bar in Java
Current License: CC BY-SA 4.0
Post Revisions
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| S Jul 7 at 6:40 | vote | accept | coderodde | ||
| Jul 7 at 5:56 | answer | added | TorbenPutkonen | timeline score: 4 | |
| Jul 6 at 13:20 | answer | added | Basilevs | timeline score: 6 | |
| Jul 6 at 13:18 | vote | accept | coderodde | ||
| S Jul 7 at 6:40 | |||||
| Jul 6 at 13:12 | comment | added | Basilevs |
It would be nice not to suppress InterruptedException. This is a demo, yes, but throwing it from main() is even shorter.
|
|
| Jul 6 at 13:10 | comment | added | Basilevs |
Is StringBuilder reuse worth a try? The class is IO-bound and is already thread-unsafe, so it should not break anything. On the other hand, we should try to avoid unnecessary state.
|
|
| Jul 5 at 23:18 | comment | added | Bergi |
bar.setProgress(f) would seem more sensible than bar.inc(0.1f) - do not get the two loop counters out of sync
|
|
| Jul 5 at 17:46 | history | became hot network question | |||
| Jul 5 at 12:45 | answer | added | Chris | timeline score: 4 | |
| Jul 5 at 11:48 | answer | added | Toby Speight | timeline score: 6 | |
| Jul 5 at 9:32 | history | edited | coderodde | CC BY-SA 4.0 |
added 125 characters in body
|
| Jul 5 at 9:26 | history | asked | coderodde | CC BY-SA 4.0 |