Coder Social home page Coder Social logo

blog's People

Contributors

madflojo avatar philaporter avatar quantifiedcode-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

blog's Issues

Some questions regarding conclusion

Hi Benjamin!,

First of all, nice article!

Btw., I found the conclusion a little bit missleading and wanted to note and ask a few things for clarification:
You wrote earlier in the article:

The difference is simple, the /etc/profile is executed only for interactive shells and the /etc/bashrc is executed for both interactive and non-interactive shells.

Thus, interactive shells use /etc/profile and /etc/bashrc while non-interactive shells only use /etc/bashrc.

Later on in the conclusion you state:

In my case the applications child processes are not recognizing the umask value set in /etc/profile but do recognize the value in /etc/bashrc. This tells me that the subprocess is starting as a non-interactive shell.

The umask of /etc/bashrc simply overrides the umask from /etc/profile as if you call umask twice on the command line.

While the suggested route of modifying environmental variables is to add a shell script into /etc/profile.d in my case it is better to set the umask value in the /etc/bashrc.

Why is it better to set environmental variables in /etc/profile.d?
Wouldn't this conclude in not having all environment variables set for non-interactive shells?

Sry for the long post.

Kind regards,
pocketbroadcast

Real example of logging implementation in Golang package.

Hi Benjamin,

I've read your your recent post/slides "How I Structure Go Packages" and I'd like asking about logging implementation.
I faced with necessity of logging implementation in my tiny app/package but due to lack of skills don't know how to do that in a right way.

Could you provide some real world examples (from Golang standard library or something else) where logging is implemented in a way mentioned in the post.

I also create a SO question, where I asked the same question.

I'd be very appreciated if you could point me to a right example.

P.S. I'm sorry that I created an issue which is not directly related to this repo, but I have not found any other your contacts ))) I'm not Twitter/Linkedin user.

How did you host your blog?

Hi Ben - you have a really nice template. can you please share how you've created your blog, where you've hosted it, and how you've come up with this "Stories" thing, since I couldn't find it on papermod

Thanks
Vipul

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.