Re: Unit Testing in Action

2017-11-28 Thread John Carter via Digitalmars-d-announce

On Friday, 20 October 2017 at 14:04:25 UTC, Mike Parker wrote:


https://dlang.org/blog/2017/10/20/unit-testing-in-action/


I'm somewhat late to this party but anyway, here is my two 
cents on the way Unit testing needs to be tweaked.


One of the values of Unit Testing is Defect Localization.

ie. In a well designed unit test suite, tell me which test 
failed, I will tell you, to within a few lines, where the bug is.


However in the presence of setup and teardown failures, we lose 
that.


Ideally we should differentiate between failures that occur 
during setup and teardown, versus exceptions occurring in the 
behaviour under test, or assertions on the validity of the result.


ie. Failures under setup and teardown are not failures of the 
behaviour under test. The only thing we can say about the 
behaviour under test in these cases is, that it “hasn’t been 
tested”.


Hopefully the behaviour that failed during the setup and teardown 
is explicitly tested elsewhere.


ie. We should stop at the first test that fails at a point other 
than setup and teardown, as this is likely to be the cause, for 
the cascade of failures in setup and teardown of other tests.




Re: SublimeLinter-contrib-dmd: dmd feedback as you type

2017-11-28 Thread Manuel Maier via Digitalmars-d-announce

On Monday, 27 November 2017 at 11:26:51 UTC, Bastiaan Veelo wrote:

On Sunday, 26 November 2017 at 10:15:05 UTC, Manuel Maier wrote:
On Monday, 30 October 2017 at 22:22:42 UTC, Bastiaan Veelo 
wrote:
[...] Unlike linters that are based on DScanner, it actually 
invokes dmd on the file that is being edited, as you edit. 
[...]


I just tried the plugin and it seems to work very well! Thanks 
for the good work.


Thanks.

Have you considered invoking dub instead of dmd if there's a 
dub.json/.sdl file? I imagine when people use 
"preBuildCommands" to generate code, for example, the linter 
might report false positives. Same goes for custom D versions 
(e.g. `version(Have_foo) { ... }`).


No I haven't considered using dub. Does dub allow the 
processing of a single file from the project without generating 
code? Note that you don't want to build the whole project upon 
every activation of the linter, because of speed but also 
because of errors that do not apply to the file in the current 
view.


Not sure about that, would need some investigating. From what I 
can tell, dub docs have improved quite a bit in the past year.


There's also the --single feature of dub: 
https://code.dlang.org/advanced_usage Such files may not work 
correctly with this linter at this time I presume.


I don't see why not?


Sorry, let me rephrase. What I meant is that, with dub, you can 
add dependencies (e.g. some http library) and define D versions. 
So even tho it's only a single file, the invocation of dmd alone 
is not sufficient to understand the code completely. I guess it 
would be most useful if I created some test cases and documented 
them.


All in all they way this plugin works is a great idea! The 
more it knows about the full commandline of the resulting dmd 
invocation, the more accurate it is.


If you have a case where it isn't sufficient, I am interested 
to see how it can be improved. You can experiment with it as 
explained here: 
https://forum.dlang.org/post/zugbovfvfviapcjqd...@forum.dlang.org


Haven't experimented with it yet so it's all just speculation so 
far. I'm quite interested in a dub linter. As far as I can tell 
from a first glance at your plugin code, it doesn't seem too 
complicated. I think I will investigate whether dub is suitable 
for this endeavor and implement that aspect of the plugin myself. 
If I have enough time in the coming days, of course. Will keep 
you posted!


Re: We're looking for a Software Developer! (D language)

2017-11-28 Thread Alex Brown via Digitalmars-d-announce
If you are looking for a cost effective solution, you may want to 
consider outsourcing. This article may be pretty informative for 
you - 
https://diceus.com/why-you-should-open-outsourcing-centers-in-ukraine-nowadays/ . If there are some functions which your business cannot complete effectively and or professionally, you'll often save money and increase quality by outsourcing.

Hope you find it useful!


Re: We're looking for a Software Developer! (D language)

2017-11-28 Thread Alex via Digitalmars-d-announce

hi there


Re: remake of remake of Konami's Knightmare

2017-11-28 Thread ketmar via Digitalmars-d-announce

Mengu wrote:

On Tuesday, 28 November 2017 at 07:47:14 UTC, Nick Sabalausky (Abscissa) 
wrote:

On 11/24/2017 08:28 PM, ketmar wrote:

quickfix. forgot to properly set requested OpenGL version.
http://files.catbox.moe/lx02hz.7z



Very cool! Works under wine for me. Not a game I was familiar with, so 
it's cool learning hands-on about more of Konami's back catalog from one 
of the best gaming eras.


chrome starts the download and then prevents it. would it be because if 
7z?


this. or, maybe, "catbox.moe" is "bad site" in some chrome filter. sorry, i 
don't know.


Re: remake of remake of Konami's Knightmare

2017-11-28 Thread Mengu via Digitalmars-d-announce
On Tuesday, 28 November 2017 at 07:47:14 UTC, Nick Sabalausky 
(Abscissa) wrote:

On 11/24/2017 08:28 PM, ketmar wrote:

quickfix. forgot to properly set requested OpenGL version.

http://files.catbox.moe/lx02hz.7z



Very cool! Works under wine for me. Not a game I was familiar 
with, so it's cool learning hands-on about more of Konami's 
back catalog from one of the best gaming eras.


chrome starts the download and then prevents it. would it be 
because if 7z?


Re: Intellij D Language v1.15.2

2017-11-28 Thread Mengu via Digitalmars-d-announce

On Thursday, 23 November 2017 at 20:11:01 UTC, singingbush wrote:
Hi all. A new release intellij-dlanguage plugin has been made 
available for download from the Jetbrains repository this week.


The speed at which features and bug fixes are being done has 
picked up recently. We've had 4 releases this month alone. It 
would be really helpful if there are any Intellij users out 
there who don't already use our plugin to install it via the 
plugin repo and try it out (there are 2 D plugins, make sure to 
install the correct one). We now have error reporting built in 
to the plugin so that if anything breaks it's easy to inform 
the team about the problem.


There is also support for debugging with GDB (since v1.14 1st 
Nov). We need to completely overhaul our documentation as some 
of it is outdated now and there is no mention of the gdb 
support. If anyone with Java/Kotlin experience wants to get 
involved with helping squash bugs then we welcome pull requests 
so please feel free to browse the issues on our github 
repository and get involved.


https://github.com/intellij-dlanguage/intellij-dlanguage

If you find the plugin helpful please also rate the plugin:

https://plugins.jetbrains.com/plugin/8115-d-language


hi singingbush

i normally use emacs but i wanted to contribute to the community 
effort and see how the plugin is.


i downloaded IDEA CE 2017.2 and i have imported an existing D 
project. when i want to run the project it lets me choose if i 
want to use DUB or DMD (that's great) and then i choose DUB and 
then it warns me about project not having SDK settings. i then 
went on and set the DMD/bin path as the SDK folder.


i also set the DUB path initially but after running, it told me 
to configure it again. maybe it did not save in the first place.


all in all, it was a pleasure. thank you for your efforts :)


Re: remake of remake of Konami's Knightmare

2017-11-28 Thread ketmar via Digitalmars-d-announce

Nick Sabalausky (Abscissa) wrote:


On 11/24/2017 08:28 PM, ketmar wrote:

quickfix. forgot to properly set requested OpenGL version.
http://files.catbox.moe/lx02hz.7z



Very cool! Works under wine for me. Not a game I was familiar with, so 
it's cool learning hands-on about more of Konami's back catalog from one 
of the best gaming eras.


thank you! then you prolly can try this remake too:
http://www2.braingames.getput.com/mog/default.asp

this is Knightmare 2: a very different style, but great still great game.

p.s.: the same codebase is working with GNU/Linux too. just rdmd it, with 
the proper -I settings. tnx to iv.vfs and arsd.sdpy, the code itself 
doesn't care about underlying OS. ;-)