News for hackers. Stuff that matters.

marcoms

Re:Nim in 2020: A Short Recap on Thursday December 31, 2020 @04:29PM (#25597371)
Not sure what you mean, Nim doesn’t allow tabs so that wouldn’t work
Re:Nim in 2020: A Short Recap on Thursday December 31, 2020 @08:04AM (#25592254)
This might have been excused if they didn't also forbid tabs unless you use a hack (https://github.com/nim-lang/Nim/wiki/Whitespace-FAQ#tabs-vs-...), was interested in learning until I found this out
Re:Why async fn in traits are hard on Sunday October 27, 2019 @07:13AM (#21369035)
Yes, but I think they are emphasising that only a promise will be returned. Any further type information is not given
Re:A Book about Qt5 on Monday March 04, 2019 @04:38AM (#19299976)
The code is also compiled to native code, but it's written declaratively. It's not for everyone, but it's not the same as Electron. Even still you have the option to use the traditional imperative API.
Re:Code together in real time with Teletype for Atom on Wednesday November 15, 2017 @01:52PM (#15706616)
Typescript is great at catching bugs which would trickle down to the end user
Re:Announcing Sourcegraph 2.0 on Wednesday September 20, 2017 @01:09PM (#15296032)
They are using the Monaco editor component of VSCode, not forking it
Re:Atom 1.18 released on Friday June 16, 2017 @07:05AM (#14567942)
UI themes, and a much more cohesive default theme
Re:Sublime Text 3 Build 3132 released on Friday May 26, 2017 @10:35AM (#14424321)
Atom: the bloat of an IDE with the features of a text editor. At least there are plugins :/
Re:Git 2.13 on Wednesday May 10, 2017 @11:21AM (#14308854)
They try, but there is not really predictable and simple way to select those fonts in CSS. I've had times when Courier was used on Linux because the MS fonts we installed.

I would prefer they just do font-family: monospace

Admiring the optimism but having an untested reimplementation of node would make people a lot less confident in using the project
Doesn't headless mode just mean rendering to a bitmap instead of a window?
As others speculated I meant parentheses around the condition - my mistake, I should have qualified
What's the argument for required brackets around if (conditions) and switch (conditions)? To me they seem redundant.

--

As a side point, I hope switch statements are less like C and more like Rust (Rust happens to have better looking syntax, not just because its Rust):

    match <identifier> {
        <val> => {
            //
        }
    
        ..
    }
C-style always creates confusion on how to indent blocks following case statements
Re:The Collapse of the Unix Philosophy on Friday March 03, 2017 @06:23AM (#13782135)
Still does not allow tabs for indentation - same problem as `make` but inverted
Re:Ubuntu 16.04.2 LTS released on Friday February 17, 2017 @06:58AM (#13667606)
*Canonical
Re:Stop using 'short' for line and allocation sizes (2013) on Thursday February 16, 2017 @07:08AM (#13659251)
Why not fixed-size ints - uint8_t, etc. from stdint.h? I've not been using C for a while, so I wonder what the viewpoints are regarding this.
Re:The Rust module system is too confusing on Wednesday January 11, 2017 @09:15AM (#13373967)
I mean if anything the syntax should me more specialised as you go into sub-keywords, which makes sense in this industry (e.g. ISO 8601). The problem is that `extern` seems to have been taken from C++ and extern crate is almost tacked on (or that's the impression I get). Comparing with other languages, Rust looks to be the only instance where two keywords are required to simply require a module/library, which sticks out to me.
Re:The Rust module system is too confusing on Wednesday January 11, 2017 @06:47AM (#13373264)
For me what's quite unnerving about `extern crate` is that the `extern` keyword has another function, that is to declare foreign functions [0]. `extern crate` on the other hand, is not an extension of `extern` but serves a completely different purpose.

0: https://doc.rust-lang.org/book/ffi.html

Re:Inkscape Version 0.92 is Released on Wednesday January 04, 2017 @07:01AM (#13317529)
Gtk3 supports macOS natively
You could use Chrome which bundles Flash. The RPM is linked on the download page

https://www.google.co.uk/chrome/browser/desktop/

Re:Airbnb JavaScript Style Guide on Friday July 03, 2015 @06:02AM (#9824582)
You could use ` backticks instead and use both " and ' in strings without worry
Re:Bling – the $ of jQuery without the jQuery on Monday June 15, 2015 @09:45AM (#9719210)
Also see ES2015's Array.from()

    Array.from(<NodeList or other iterable>)
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Re:Project Fi by Google on Wednesday April 22, 2015 @03:29PM (#9422951)
> <paper-button>

It's nice to see Google finally dogfooding Polymer in their own products

Re:A polite rant on mobile UX on Wednesday February 18, 2015 @09:05AM (#9068514)
> you cannot do overlay blurring like iOS, for example

this may change in the future - the backdrop-filter CSS property should allow you to do exactly that, and support has already landed in chrome

Re:The “Clockwise/Spiral Rule” on Sunday November 23, 2014 @08:18AM (#8648705)
Be careful that you don't trip up using this rule for everything - its not always correct [0]

[0] http://stackoverflow.com/questions/16260417/the-spiral-rule-...

Re:C++ Quiz on Thursday September 18, 2014 @12:12PM (#8335993)
Though I know very little C++, a lot of the questions were applicable to a C programmer
Looks good - bookmarked! Are you targeting a similar demographic to /r/webdev?

One bug I have encountered is on clicking upvote and unregistered, I am redirected to frontends.COM

Re:Show HN: Picnic.css, a lightweight Bootstrap alternative on Sunday September 14, 2014 @03:24PM (#8315986)
I believe (s)he means absolute pixel breakpoints instead of percentages
Re:Show HN: Very simple tool for creating polls on Thursday August 21, 2014 @02:44PM (#8208943)
Except there is no "\"product try\"" in this case.

Older »