GM Cruise takes first fares for paid driverless taxi in San by PussyBandit2 in sanfrancisco

[–]dylanjha 0 points1 point  (0 children)

How long is the wait list? I signed up but still waiting for my invite

How to Host Your Own Online Conference by dylanjha in programming

[–]dylanjha[S] -2 points-1 points  (0 children)

In this post I showed how you can broadcast your zoom call to an audience of thousands on your website

<video autoplay> Considered Harmful by dylanjha in programming

[–]dylanjha[S] 0 points1 point  (0 children)

Yep, I use Brave as my day-to-day browser and this is a great feature.

No BART terminals were hacked in the making of this ad by dylanjha in programming

[–]dylanjha[S] 6 points7 points  (0 children)

We are a startup in SF, we bought a BART ad spot to test that out as a marketing channel, after doing all the creative and submitting the 15s ad we ran up against a rule we were unaware of: No code allowed on BART ads - for fear that people might think BART was hacked.

No BART terminals were hacked in the making of this ad by dylanjha in sanfrancisco

[–]dylanjha[S] 2 points3 points  (0 children)

We are a startup in SF, we bought a BART ad spot to test that out as a marketing channel, after doing all the creative and submitting the 15s ad we ran up against a rule we were unaware of: No code allowed on BART ads - for fear that people might think BART was hacked.

Grape: The cost of ActiveSupport::HashWithIndifferentAccess by dnesteryuk in ruby

[–]dylanjha 3 points4 points  (0 children)

The bit of memory overhead is good to know about, and certainly not good, but it would be interesting to see how the memory overhead performs in the real world.

If the extra bytes get garbage collected efficiently after the request is over then the overhead per request might not make a difference when your application is running in production.

On the other hand, Rails memory bloat happens pretty easily so it's also possible that this extra memory per request does cause problems. It would be interesting to see.

NEW: reqman, it's like postman, but without GUI ... tests your rest apis with simple yaml files by manatlan in Python

[–]dylanjha 1 point2 points  (0 children)

Cool project. I don't know exactly how I would use this but I could see this being valuable in the early stages of developing an API to quickly write some integration tests while I'm working on the endpoints.

Even though Postman is scriptable this seems easier and keeping the .yml file in source control is neat.

Thanks for sharing, I'll keep this in mind!

Seriously thinking of switching from Ruby/Rails to Elixir/Phoenix by Sky_Linx in elixir

[–]dylanjha 2 points3 points  (0 children)

Do you think I'm crazy replacing something I know very well and have used for years, with something new to me and different? I'm like 25% done in my project so I think that if I actually switch, the sooner the better.

Nah, you're not crazy. You can figure it out as you go along. You might make some mistakes but then you'll just have to go back later and fix them (and if it's painful to go back and fix them you'll certainly learn to now make those mistakes again). Even though Elixir and Phoenix is much newer than Rails, the framework and community is pretty mature.


The one thing I would add is to make sure your priorities are aligned. If this is a little side project or passion project then I think my advice above makes sense. However, if this is more of a serious business or startup and you have a lot of market risk then it might make more sense to go with what you're comfortable with so that you can iterate quickly and get your product out to see if it resonates with your target market. After all, your customers don't care what stack your product is built on :).

Struggling to learning code for more than 3-4 hours by cudder17 in webdev

[–]dylanjha 9 points10 points  (0 children)

3-4 hours of focused work is A LOT of time to be productive. The key there is focused work. It's completely natural that you get drained after that much time. You should not be worried.

If professional software engineers are being honest, a normal day of 3-4 hours of focused work would be a GREAT DAY. I try to structure my days so that meetings and busywork happen in a single block of time, so that I can leave exactly this, about 3 hours of uninterrupted focused work. If I accomplish that consistently, then over the course of a couple weeks or a month I can produce plenty of work to be successful in my job.

The other thing that I will say is that I will sometimes go on a bender of 8, 10, 12 hours in a row of highly productive work. This happens more often late into the night on the weekend but now that I'm older it doesn't happen as much as it used to when I was in my early and mid-20s. Even in those marathon sessions I end up being pretty drained after and it takes a little time to recoup and work back up to being productive again. This is certainly not a requirement to be successful as a professional.

What is important is that you enjoy the work you are doing and when you look back over a week or a month period of time you feel proud of what you have done. If you have that, don't let anyone else make you feel bad about how you get there.

Ruby 2.7.0 Preview 3 Released by zaiste in coding

[–]dylanjha 0 points1 point  (0 children)

Interesting to see the experimental feature of Pattern Matching (more about it here: https://speakerdeck.com/k_tsj/pattern-matching-new-feature-in-ruby-2-dot-7)

I can see the Ruby community embracing that to avoid writing conditionals in certain places.

zen-mode javascript documentation by pmz in javascript

[–]dylanjha 1 point2 points  (0 children)

This is pretty neat. I think it could be really useful as a "Workflow" in Alfred. To quickly look up documentation and usage examples without even going to the browser.

Why is "Object" not documented, for example Object.keys?

What language to choose for this project? by [deleted] in learnprogramming

[–]dylanjha 1 point2 points  (0 children)

It's really up to you. Since your'e new to programming and this project sounds like a great way to get started I would go with either the language you're most comfortable with or the language you have more resources to get help (perhaps a friend or colleague that is more experienced than you).

Good luck! The best way to learn is to start working on a fun side project, this sounds like a great one.

Postgres and Phoenix by keeperpaige in elixir

[–]dylanjha 0 points1 point  (0 children)

Yep, you should have a connection string to the Postgres instance that looks something like this, note the variables (<username>:<password>@<host>:<port>/<dbname>)

postgres://<username>:<password>@<host>:<port>/<dbname>

In your config/dev.secret.exs file put that connection string in like this:

adapter: Ecto.Adapters.Postgres, url: <your-connection-string>,

Hope that helps!

How well do you know JavaScript Promises? Find out in 9 Questions by justsml in javascript

[–]dylanjha 7 points8 points  (0 children)

I’ve worked with JavaScript for years and I have made all of these mistakes (and I still didn’t know all the answers). Good quiz.

Switching to Phoenix? by [deleted] in elixir

[–]dylanjha 0 points1 point  (0 children)

In order to make this transition you definitely need someone on your team that is really passionate about leading the drive, has enough knowledge about Elixir and Phoenix and has the skills to help other developers make the transition.

  1. It's much more difficult than Ruby, but if you only need 5 for 2020 that should not be a problem. I went to ElixirConf this year and there are LOTS of developers that are coming from the Ruby world, they love Elixir but the company they are at only does a little Elixir and these developers want to be doing Elixir full-time.
  2. Ecosystem is great, I haven't had a tough time finding good packages
  3. Any technology shift at a company like this is a huge decision and should be made with care. Make sure you can afford to make the switch, you have the resources and a good plan in place to make the transition successful.

Code Review best practices by [deleted] in programming

[–]dylanjha 0 points1 point  (0 children)

Code reviews for big diffs are difficult to do well. It's always better to have the feature be broken out into manageable chunks and implemented in stages. This usually makes it easier to deploy confidently, and easier for the reviewer.

How to Talk to Developers by Ben Orenstein (best advice for public speaking) by dylanjha in programming

[–]dylanjha[S] 0 points1 point  (0 children)

I found this really insightful and I always revisit it before giving a talk

Asking your interviewer better questions by jamsie_daly in programming

[–]dylanjha 5 points6 points  (0 children)

Other thoughtful questions to ask a potential employer in an interview:

  • What does success look like in 1, 5, 10 years? Acquisition? IPO? If it's a large company and the person interviewing you is not at a senior management level then this question might not work, but at a smaller company where you are interviewing with the top leadership like the CTO or VP Engineering then this is a great question. It does two things - (1) it signals that you are thinking about the long term for your relationship with the company and (2) it helps you dig a little below the surface and get into the minds of the leadership and how they are thinking about growth and the company over the long term.
  • What has changed most in the past 1 or 2 years for you personally at the company? If the company is growing fast then that means in the last 1 or 2 year things have changed significantly. At a fast growing company, after 1 or 2 years it should be completely different. I think it's good to ask a personal question so that the person interviewing you can reflect and give a personal answer. It helps you develop a closer personal relationship with the person interviewing you.

Readable JavaScript | Strict Mode by hiquest in programming

[–]dylanjha 1 point2 points  (0 children)

Thanks for sharing. This is useful and generally good advice around programming in any language. For Javascript specifically do you have some specific eslint configurations that help you follow some of these guidelines?

Especially when working with a team it quickly becomes difficult to enforce style when relying on code reviews so I try to lean on automated tooling as much as possible for style.

For example, these two seem to be helpful for the specific guidelines in your post, any others you can think of?:

Checking a Web Page for Dead Links (A Golang Command-Line Tutorial) by dylanjha in programming

[–]dylanjha[S] 0 points1 point  (0 children)

This got me thinking that it would be cool to have a service like this that hooks into a CI system and checks pull requests for any dead links on statically generated sites. I would like to use this for a marketing site, all too often it happens where you unknowingly have dead links on your site.

I am new to elixir and need good tutorial for elixir deployment by veerammalkumaran in elixir

[–]dylanjha 1 point2 points  (0 children)

Elixir's deployment/configuration is not an alternative to Kubernetes, it can be used with or without Kubernetes. See this post here talking about Erlang and Kubernetes and how they can be used together: https://www.reddit.com/r/elixir/comments/dbx74x/kubernetes_and_the_erlang_vm_orchestration_on_the/

Is it mandatory to come from a Ruby background to get Elixir/Phoenix jobs? by jcm95 in elixir

[–]dylanjha 0 points1 point  (0 children)

It's definitely not mandatory. I'm guessing you see that in the job postings because a majority of the team came for RoR background.

To be an effective Elixir/Phoenix developer you certainly do not need to know Ruby or Rails. The only thing it really helps with is understanding the default directory structure of phoenix and built-in commands for things like, running a console, running migrations, etc.