Timeline for Make a PNG image with "Hello World!" with programming APIs, in the shortest code possible
Current License: CC BY-SA 3.0
17 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 8, 2014 at 23:54 | comment | added | NothingsImpossible | @Rozuur I guess it should, but I'm no expert in F# so I didn't use it. | |
| Feb 7, 2014 at 21:22 | comment | added | Rozuur | can the use of f# reduce char count? | |
| Feb 5, 2014 at 16:40 | comment | added | It'sNotALie. | @Sarge I could see how that could sometimes be useful but we'd use generics in C# for this instead. Sometimes we really do want it to just return that type. | |
| Feb 5, 2014 at 14:03 | comment | added | Display Name | @It'sNotALie. en.wikipedia.org/wiki/Covariant_return_type | |
| Feb 5, 2014 at 13:55 | comment | added | It'sNotALie. | @Sarge Yes we do, reflection for when we need them. Yes we do. What do you mean? Covariance works in C#. | |
| Feb 4, 2014 at 23:47 | comment | added | Display Name | But C# doesn't have wildcards in generics. And anonymous classes. And return type covariance. And some other things I'm too lazy to recall. | |
| Feb 3, 2014 at 9:33 | comment | added | NothingsImpossible | @immibis I can point the following: Character count is 28% lower, because of: no checked exceptions(throws Exception); the var keyword; Save is a method of the image itself, in contrast to javax.imageio.ImageIO.write(b...; file type is automagically inferred from the extension, no need to specify a separate "png"; No need to instantiate a File object as in new java.io.File("p"); Main method doesn't need to receive a parameter. The general idea is the same: create an image, use Graphics to write to it, and save it - but here it is done with more clear and succint method calls. | |
| Feb 3, 2014 at 8:10 | comment | added | uSeRnAmEhAhAhAhAhA | It is much cleaner than the Java one. | |
| Feb 3, 2014 at 1:48 | comment | added | Stack Exchange Broke The Law | I don't see how this is much cleaner than the Java one. | |
| Feb 1, 2014 at 22:08 | comment | added | Victor Stafusa | Thanks for the suggestion of making the file call just .png. :) | |
| Feb 1, 2014 at 21:50 | history | edited | NothingsImpossible | CC BY-SA 3.0 | deleted 1 characters in body |
| Feb 1, 2014 at 21:42 | history | edited | NothingsImpossible | CC BY-SA 3.0 | added 88 characters in body |
| Feb 1, 2014 at 21:36 | history | edited | NothingsImpossible | CC BY-SA 3.0 | added 88 characters in body |
| Feb 1, 2014 at 21:33 | review | First posts | |||
| Feb 1, 2014 at 21:53 | |||||
| Feb 1, 2014 at 21:27 | history | edited | NothingsImpossible | CC BY-SA 3.0 | added 58 characters in body |
| Feb 1, 2014 at 21:20 | history | edited | NothingsImpossible | CC BY-SA 3.0 | added 8 characters in body |
| Feb 1, 2014 at 21:13 | history | answered | NothingsImpossible | CC BY-SA 3.0 |