Re: Pro programmer
On Tuesday, 27 August 2019 at 16:32:08 UTC, H. S. Teoh wrote: [..] you want to learn also a very high-level language that makes you think on a whole different level: I recommend Haskell or Lisp after you learn assembly language. For Lisp, Clojure (https://clojure.org/) is a strong candidate: https://blog.cleancoder.com/uncle-bob/2019/08/22/WhyClojure.html
Re: How to concat UUID into a SQL query string to MariaDB
On Tuesday, 27 August 2019 at 08:54:21 UTC, Anders S wrote: Hi again, the auto declaration worked as I expected my catenations should with the string Great to hear that ! Strings are a bit "different" in D. Please help yourself and read the following that IMO is the best introduction to the topic: http://ddili.org/ders/d.en/strings.html Also see http://ddili.org/ders/d.en/auto_and_typeof.html for auto keyword.
Re: How to concat UUID into a SQL query string to MariaDB
On Tuesday, 27 August 2019 at 08:08:05 UTC, Anders S wrote: Any ideas? + is not a string concatenation. Try ~ instead: auto x = "aa" ~ "bb" ~ "cc";
Re: arsd terminal with ConsoleOutputType.cellular
On Saturday, 13 July 2019 at 14:08:26 UTC, Jani Hur wrote: Thanks for the answers Adam - I can now proceed ! I wrote two simple examples for D dummies (like me and myself) to demonstrate arsd.terminal features I'm planning to use in my "real" console "application". The examples are available in: https://bitbucket.org/janihur/d-ex/src/master/arsd/
Re: arsd terminal with ConsoleOutputType.cellular
Thanks for the answers Adam - I can now proceed !
Re: arsd terminal with ConsoleOutputType.cellular
Other arsd.terminal related question. How to clear a line when it is re-used ? The following code snipped is expected to print: important text ! but instead it prints: important text !gless mambo-jambo (33, 0) import arsd.terminal; void main() { auto term = Terminal(ConsoleOutputType.linear); term.clear; term.write("plenty of meaningless mambo-jambo"); term.writef(" (%s, %s)", term.cursorX, term.cursorY); term.moveTo(0, 0); term.write("important text !"); term.writeln; }
arsd terminal with ConsoleOutputType.cellular
What might be wrong with the following code below as it doesn't clear the screen and print "(0, 0)" as expected: import arsd.terminal; void main() { auto term = Terminal(ConsoleOutputType.cellular); term.clear; term.writefln("(%s, %s)", term.cursorX, term.cursorY); } If I change to the ConsoleOutputType.linear then the screen is cleared and "(0, 0)" is printed as expected. I'm running Gnome Terminal in Red Hat Linux and compiling with DMD: [jani@red arsd]$ echo $TERM xterm-256color [jani@red arsd]$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.6 (Maipo) [jani@red arsd]$ dmd --version DMD64 D Compiler v2.083.0 Copyright (C) 1999-2018 by The D Language Foundation, All Rights Reserved written by Walter Bright [jani@red arsd]$
Re: Operator overloading for size_t
On Thursday, 14 March 2019 at 19:39:53 UTC, Alec Stewart wrote: For < and >, would one do this? I think you'd benefit a lot by reading http://ddili.org/ders/d.en/operator_overloading.html (just search for opCmp). I bet that will eliminate most of your confusion !
Re: Doubt about this book: The D Programming Language
On Sunday, 16 December 2018 at 22:02:44 UTC, bachmeier wrote: I can recommend D Cookbook https://www.packtpub.com/application-development/d-cookbook and Learning D https://www.packtpub.com/application-development/learning-d Publish dates are 2014 and 2015. How much the language has changed/evolved since then and how much it will evolve in future ? So are these books relevant today and still next two years ? They are rather different books, but both are well written, and they go into reasonable depth on the topics they cover, unlike a lot of programming books I've read. Sounds great ! I might bought these too if they are still relevant.