April 23, 2022

On Friday, 22 April 2022 at 17:41:01 UTC, Martin B wrote:

>

Hi everyone,

Recently, I wanted to improve my experience with dlang in sublime text and tried several solutions.

I am the author of https://packagecontrol.io/packages/SublimeLinter-contrib-dmd, which is the D syntax checking plugin for Sublime Text. I have contributed a couple of PRs for their D syntax highlighter as well. Sublime Text is a bit special regarding syntax highlighting, as they use their own regular expression engine, and so cannot use generalised language server solutions. At least that was the answer I got from the devs a few years ago, when I asked whether a dmd-as-a-library solution would be viable. So consolidating efforts is harder in Sublime’s case, as it wants to be different. As far as I know, only Visual Studio (proper) has a dmd-based language server: VisualD.

— Bastiaan.

April 23, 2022

On Saturday, 23 April 2022 at 15:05:02 UTC, H. S. Teoh wrote:

>

[...] and I will not touch a heavyweight IDE with a 10-foot pole. [...]

Unless you're writing HTML, CSS and JS (e.g. VueJS) code, it's better to stay away. Humankind have eyes bigger than their stomach :)

April 23, 2022
On Saturday, 23 April 2022 at 17:43:35 UTC, Salih Dincer wrote:
> Unless you're writing HTML, CSS and JS...

Long time ago I was working on C# back-end and It was needed to test it with the front-end, which was written in *.asp containing HTML, CSS, JS etc. And it was a mess inside Visual Studio 2012, I don't remember the name (Maybe was Design Mode) but it was pure garbage.

It was easier to use a text-editor and see the result on directly on a browser than using that IDE.

Again this was on VS2012 and I don't know how things are currently, I mean the one thing that I usually hear are people complaining that VS is a hog.

For me I go first with text-editor, otherwise the only IDE I still use sometimes for old projects is the old VS 6.0, which fast and opens like it was the notepad.

Matheus.
April 23, 2022

On Saturday, 23 April 2022 at 15:53:48 UTC, Bastiaan Veelo wrote:

>

On Friday, 22 April 2022 at 17:41:01 UTC, Martin B wrote:

>

Hi everyone,

Recently, I wanted to improve my experience with dlang in sublime text and tried several solutions.

I am the author of https://packagecontrol.io/packages/SublimeLinter-contrib-dmd, which is the D syntax checking plugin for Sublime Text. I have contributed a couple of PRs for their D syntax highlighter as well. Sublime Text is a bit special regarding syntax highlighting, as they use their own regular expression engine, and so cannot use generalised language server solutions. At least that was the answer I got from the devs a few years ago, when I asked whether a dmd-as-a-library solution would be viable. So consolidating efforts is harder in Sublime’s case, as it wants to be different. As far as I know, only Visual Studio (proper) has a dmd-based language server: VisualD.

— Bastiaan.

Interesting! Thanks for sharing. I've already wondered about strange highlighting in ST in a few cases - e.g if( const(JSONValue)* v = "status_command" in json ).

April 23, 2022
On Sat, Apr 23, 2022 at 05:43:35PM +0000, Salih Dincer via Digitalmars-d wrote:
> On Saturday, 23 April 2022 at 15:05:02 UTC, H. S. Teoh wrote:
> > [...] and I will not touch a heavyweight IDE with a 10-foot pole. [...]
> 
> Unless you're writing HTML, CSS and JS (e.g. VueJS) code, it's better
> to stay away. Humankind have eyes bigger than their stomach :)

I write HTML/CSS with Vim just fine. ;-)

Well OK, when the boilerplate becomes too cumbersome, then I write D code to auto-generate parts of it. :-P  A combo I've been turning to quite often lately is to kick up a skeletal HTML template, with placeholders (like `@@HEADER@@`, `@@DATA@@`, etc.) that then gets replaced with contents generated by D code.

Haven't really done too much JS lately though. Nothing beyond relatively trivial stuff that can be easily handled by jquery.  Even with jquery I've been finding myself itching to write D instead (JS is just not an ideal language for programming, in general... and every time I use a language other than D I find myself longing for D features).

But yeah, an IDE that takes 50 seconds to load, soaks up 5GB of RAM upon startup, and then gives me an aneurysm from over-dependence on the rodent... just not my thing, no thanks. Linux is my IDE. :-D


T

-- 
It is the quality rather than the quantity that matters. -- Lucius Annaeus Seneca
April 24, 2022
I am on the opposite end of the spectrum. I LOVE IDEs and I love all the coding assistance I can get. My favorite is code completion after typing a dot.

<meme>I aint got time for that</meme> ... to remember all library details. I need IDE to help with code completion, function signatures etc.

April 23, 2022
On Sun, Apr 24, 2022 at 12:04:27AM +0000, user via Digitalmars-d wrote:
> I am on the opposite end of the spectrum. I LOVE IDEs and I love all the coding assistance I can get. My favorite is code completion after typing a dot.
> 
> <meme>I aint got time for that</meme> ... to remember all library details. I need IDE to help with code completion, function signatures etc.

+1, this is one reason why I like D: it doesn't force you to use an IDE, but it doesn't force you to use a plain text editor either. You get to choose what best fits your workflow.  Not like some languages that are nigh-unusable if you don't use the IDE (or vice versa).


T

-- 
What doesn't kill me makes me stranger.
1 2
Next ›   Last »