1. 1

    Can the expr editor perform expression evaluation in the browser?

    1.  

      Currently no, bit now with rewriting parser it’s possible to do, as code can be compiled to js.

    1. 1

      One of those back-of-mind ideas I have is writing an LSP for a language without one, nor does it have a formal grammar; would it make sense to use ANTLR, or try to roll your own parser?

      1. 1

        Writing your own parser is fun, but can be challenging. Try to start writing your own parser, It’s better to understand how antlr working.

      1. 1

        Website is down :(

        1. 1

          Probably paniced.

          It is up for me at time of writing, but in any case here’s an archive.today mirror.

        1. 3

          It’s easy. Anyone can even make more faster “website”. Try achieve this on some real websites, what brings money to people.

          1. 3

            Can we see some example output?

            1. 1

              Here is a screenshot: https://medv.io/assets/ll.png

              1. 2

                Thank you!

                What do the colors indicate in that screenshot? Is that how you indicate git status?

                1. 1

                  Yes, git status. Same as in git status. Green - added. blue - modified.

            1. 3

              Rewriting common utilities in Rust, Go, and (to a lesser extent) Nim seems to be popular nowadays. Some ls alternatives in Rust:

              • lsd focuses on performance
              • exa is another featureful alternative

              Both these tools support icons if you have a patched font.

              1. 1

                I used exa before writing my own ll. But find out what I’m not using any of fancy features exa offers. But I use git status a lot. So I decided to write my own tool.

              1. 2

                Or use z

                1. 2

                  My personal site: https://medv.io Project website: https://deployer.org

                  1. 3

                    Can any lobsters using HTTPie explain what drew them away from curl or what about curl pushed them to HTTPie?

                    1. 8

                      I haven’t been using it for long but for me the nicest thing so far is being able to see the whole response: headers, body, and all of it syntax-highlighted by default. The command-line UI is a little nicer as well, more clear and intuitive.

                      It will probably not replace my use of curl in scripts for automation, nor will it replace my use of wget to fetch files.

                      Now if someone took this and built an insomnia-like HTTP client usable from a terminal window, then we’d really have something cool.

                      1. 1

                        I’m guessing you mean this Insomnia. Looks cool. Good example of an OSS product, too, given most features people would want are in free one.

                      2. 4

                        I use both depending on circumstance (more complex use cases are better suited for curl IMO), but the significantly simpler, shortened syntax for HTTPie as well as the pretty printing + colorization by default for JSON APIs is pretty nice.

                        1. 3

                          I wouldn’t say I’d been ‘pushed away’ from curl, I still use curl and wget regularly, but httpie’s simpler syntax for request data and automatic coloring and formatting of JSON responses makes it a great way to make quick API calls.

                          1. 3

                            I like short :8080 for local host syntax.

                            1. 3

                              It’s all in how you like to work. Personally I enjoy having an interactive CLI with help and the like, and the ability to build complex queries piecemeal in the interactive environment.

                              1. 3

                                Sensible defaults and configurability.

                                1. 2

                                  I need a command line HTTP client rarely enough that I never managed to learn curl command line flags. I always have to check the manual page, and it always takes me a while to find what I want there. I can do basic operations with HTTPie without thinking twice and the bits I need a refresher on — usually the syntaxes for specifying query parameters, form fields or JSON object fields — are super fast to locate in http --help.

                                  1. 1

                                    curl is the gold standard for displaying almost anything including tls and cert negotiation. i use bat mostly now though for coloured output and reasonable json support. https://github.com/astaxie/bat

                                  1. 0

                                    So this is just tree(1) on steroids?

                                    1. 2

                                      tree is just ls on steroids.

                                    1. 4

                                      https://medv.io — personal website created on server, just plain html/css. Also supports dark mode (try to switch it in your os settings). Also there was a blog. But I deleted it as I don’t write too often. (Some popular blog post still online via serving pdf print screens, for example https://medv.io/creating-a-search-engine-on-react-php/)

                                      1. 1

                                        Also plain/txt via curl

                                        curl https://medv.io
                                        
                                      1. 1

                                        I don’t think we need a new story for every new version of this library. Most release stories here are to the release announcements; releases considered important enough that people are writing about it.

                                        1. 1

                                          Okay :(

                                        1. 1

                                          This can be applied to narrow range of apps. White 12factor to wast.

                                          1. 2

                                            I’m redesigning my personal website https://medv.io to just plain html/css files.

                                            1. 1

                                              I like your site. Do you have a blog?

                                              1. 1

                                                I had. But now I deleted it as I understand what writing constantly is not my thing:)

                                            1. 3

                                              don’t ask algorithms questions in interviews, but do incentivize things that are globally good for the company

                                              And what is it?

                                              1. 3

                                                For example profiling and optimizing parts of systems that you’re not directly responsible of, or training other engineers to do their jobs better.

                                                1. 1

                                                  That can depend quite a bit on the company. If you are a business owner and you don’t know what things are globally good for your company, you might want to meditate on that for a while. Often it’s willingness to communicate or collaborate. Willingness to admit they are wrong when they are indeed wrong. Willingness to take accountability. Ability to teach as @pekkavaa said. These may not be make or break traits, but they can be effective tie breakers. You don’t need to be a people person, but you should know what one looks like and how to play the part when its required.

                                                  1. 1

                                                    Is what?

                                                  1. 2

                                                    Website is unavailable.

                                                    1. 2

                                                      It works for me now, and worked 1.5 hours ago.

                                                      1. 2

                                                        Not working for me( Says can’t establish secure connection.

                                                        1. 3

                                                          What OS/browser are you using? Here’s the backup github link just in case.

                                                          1. 1

                                                            Safari, iPhone 11

                                                            1. 2

                                                              What country are you viewing it from? I think Russia blocks my site because it’s on DigitalOcean.

                                                              1. 1

                                                                Not a Safari or iPhone issue, works fine here (US).

                                                                1. 1

                                                                  Yeah, I was confused too. I develop on iPadOS personally.

                                                                2. 1

                                                                  Yes, I’m from Russia. But DO is available.

                                                                3. 1

                                                                  Still not working

                                                          1. 3

                                                            Works fine now.

                                                            1. 1

                                                              Maybe it’s blocked by geolocation? Your profile says you’re from Russia :/

                                                              1. 0

                                                                And so? Why Microsoft should block Russians?

                                                                1. 1

                                                                  Not saying they should, just that they may have decided to.

                                                                  1. 1

                                                                    Still a weird first assumption. Also the post prior to yours was from a russian saying it works now.

                                                                1. 1

                                                                  That’s weird. Works for me, both that website and the linked PDF.

                                                                  1. 1

                                                                    Works here too.

                                                                  1. 1

                                                                    And there are you going to use it? Against user input?

                                                                    1. 1

                                                                      Or use Hugo. Or gatsby. There is dozens of preprocessors or static site generators. Your is using sh.

                                                                      1. 1

                                                                        Can someone clarify me modan/exception difference?

                                                                        So in modan we’ll get Nothing at top level. And if we catch - Exception. Only Exception also contains stack trace which is more useful, then just “nothing”.

                                                                        As I right?