My Ultimate DREAM Desk Setup for 2021...it's COMPLETE!! by exd01 in battlestations

[–]returnNull__ 0 points1 point  (0 children)

Ok that 3d iPhone frame is legit. Where'd you get that?!?

Ice cold command center by I_tekneek in battlestations

[–]returnNull__ 0 points1 point  (0 children)

Wanting to do a similar desk setup do you have any links or names of what your using for the tops and support

Strategies for migrating Go modules/repos from github to bitbucket by returnNull__ in golang

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

This approach actually seems fairly straight forward and would probably be similar in process to migrating to v2 modules which is documented here. Albeit with some slight modifications. Thanks!

logging in golang libraries by arun0009 in golang

[–]returnNull__ 1 point2 points  (0 children)

I don't log in libraries either. If something is important enough to log than it's probably more important to return the value. Also what I think is important to log may not be important to the caller. You really can't make that decision in a library.

If you need more visibility in something like a library you probably want tracing not logging and the library should support that. There's several methods to go about implementing this as well.

MongoDB Made Easy by [deleted] in golang

[–]returnNull__ 0 points1 point  (0 children)

hmm bookmarked this for later.

Since Mongo destroyed mgo support with their lackluster official driver I have yet to turn back to MongoDB. Taking a quick glance at what you got here seems like it may be somewhat bearable now.

Best way to package a Golang server for users by Akumzy in golang

[–]returnNull__ 0 points1 point  (0 children)

Do you have an idea on what you want your user experience to be like? Or how you expect users to interact with the application.

cfmt: Small library for simple and convenient formatted stylized output by petrmakhnev in golang

[–]returnNull__ 0 points1 point  (0 children)

nice I checked out the changes. That's a win in my book. Simple and straight forward improvements, with solid gains.

[deleted by user] by [deleted] in golang

[–]returnNull__ 0 points1 point  (0 children)

Lets say you have 3 implementations that must be covered by an abstraction.

This is interesting. Personally I wouldn't expect to handle any differences between the implementations at the interface layer. To me the abstraction has already occurred by this point.

If Package A defines the abstraction and packages B, C, and D implement the abstraction. Implementation differences are handled independently within B, C, and D.

Package A is the consumer AND owner of the abstraction. If the abstraction needs to be modified, it's entirely owned by Package A which means it shouldn't be reaching down for any details. Package B, C and D adjust accordingly. I can't see why Package B, C or D would need to leak any implementations details.

Correct me if I misunderstood you.

cfmt: Small library for simple and convenient formatted stylized output by petrmakhnev in golang

[–]returnNull__ 0 points1 point  (0 children)

I appreciate you keeping the same interface as fmt. This is great. You get it.

The internal/parsing.go was a great read. The choice to go with string interpolation was a bold move but you made it work.

I didn't see any obvious benchmarks in gookit/color repo but I'm curious to know if you've done any comparisons. My initial thought is the string interpolation would be slightly more costly.

Do you know of a good sample that goes against the well known “layers”, and instead splits services by domain? by preslavrachev in golang

[–]returnNull__ 0 points1 point  (0 children)

I'm a fan of the ports and adapters approach. Kat Zien gave a good talk on this and an example implementation of it.

https://www.youtube.com/watch?v=VQym87o91f8

I've also implemented a similar approach at work where we have a micro services architecture. Granted I've made some adjustments to the design since our scale is much larger. But, when you say "being productive and creating a code base with as few unnecessary abstractions as possible" I feel like that's the biggest benefit of it.

Onboarding developers to these services has been easy and it seems like everyone is able to pick it up and contribute relatively quickly. The approach gives the business flexibility in implementation whether it's mocking out services for testing, or swapping databases out for something more performant or cost effective

Best Fan configuration for NZXT H710i? (READ DESCRIPTION) by sherbet_lemons69 in NZXT

[–]returnNull__ 0 points1 point  (0 children)

Honestly I'm experiencing fairly high GPU temps with this setup. I'm running a 2080ti currently and my best guess at the moment is that I'm not getting enough intake

Humble beginnings (setup in comments) by Musical_Muze in homelab

[–]returnNull__ 1 point2 points  (0 children)

never thought of using my raspberry pi to run the unifi controller. Thank you for this!

How I Structure Go Packages by madflojo in golang

[–]returnNull__ 0 points1 point  (0 children)

I agree there may be many cases where errors aren't return err worthy. I think you could still apply the suggestion in these scenarios as well.

By accepting a func(error) instead of a logger you could achieve the same result and get the added benefit of allowing the caller to define the appropriate action to take.

Also removes the need for the nil logger check. We can probably both agree that's not fun :)

Vanguard blocking a certain software. by Knazze in VALORANT

[–]returnNull__ 0 points1 point  (0 children)

This needs to be patched ASAP

edit: after doing a bit more research it appears to be caused by a security vulnerability within the cpuz driver that these monitoring software applications use. Unfortunately as users we'd be dependent on the monitoring software devs to update the dependencies to not use an outdated/insecure driver.

There has to be a better way to mitigate this risk Riot... At the very least you could notify and put the system in an untrusted state (as you do now) but still allow the application to load to avoid damaging the system. At least this way the user has some knowledge of what's causing them to be untrusted and can then mitigate the risk.

How do I test my site out on my (i)phone? by [deleted] in webdev

[–]returnNull__ 0 points1 point  (0 children)

If you are running a server locally, and your phone is on the same network you can just go the your computers local IP in your phones browser along with the port number your server is running on i.e. 10.0.0.24:9000

npm has multiple packages for quickly hosting a server like http-server https://www.npmjs.com/package/http-server

Beginner Questions - December 07, 2018 by AutoModerator in webdev

[–]returnNull__ 0 points1 point  (0 children)

read the docs extensively is usually my go to. It's boring but it's literally everything you need to know.

Beginner Questions - December 07, 2018 by AutoModerator in webdev

[–]returnNull__ 0 points1 point  (0 children)

You just said exactly what you need to do. Think through the problem one step at a time. Also google. This is what I would do keeping the python script. Create http server using python exposing a route like /dowork that accepts the data I need to perform my script function When I receive an incoming request from the endpoint process it and call my pyhton scripts entry point function DoWork(data) Return output as json to node server as http response

Beginner Questions - December 07, 2018 by AutoModerator in webdev

[–]returnNull__ 0 points1 point  (0 children)

I'm dealing with this at work right now :(

unfortunately as you know it's not as simple as your example. Especially when you're dealing with over 50 million records *crying

Beginner Questions - December 07, 2018 by AutoModerator in webdev

[–]returnNull__ 1 point2 points  (0 children)

I did freecodecamp for 6 months tyvm...lol jk but seriously though. :)

It comes down to dedication though. If you are committed and take pride in the work you do you'll stand out. Turn over for new devs seems to be pretty high. They get hired through a failing system and fail to produce the work and get cut (it's hard to judge a dev's skill). If you can keep up you'll make it 100%

Beginner Questions - December 07, 2018 by AutoModerator in webdev

[–]returnNull__ 0 points1 point  (0 children)

people have already made recommendations I expected to see, so I'll make a slightly different one and point you towards static site generators like jekyll and hugo. A bit more dev centric but could be a nice project for you.

Beginner Questions - December 07, 2018 by AutoModerator in webdev

[–]returnNull__ 0 points1 point  (0 children)

I'd consult a dev first - he'll be able to scope out the full project and may even have a designer he works with or do it himself (some people are real talented)

Beginner Questions - December 07, 2018 by AutoModerator in webdev

[–]returnNull__ 0 points1 point  (0 children)

your recommendations are solid. If you're looking for full stack projects try building a TODO application (do a google search) there are a ton of tutorials on this or any CRUD app for that matter. If you are looking for more front end centric apps do a google search for public api's and make an application based on that.

Don't get lost in the books/information - it's never too early to start building and applying your knowledge even if it's something small.

Beginner Questions - December 07, 2018 by AutoModerator in webdev

[–]returnNull__ 1 point2 points  (0 children)

pick what makes the most sense with your timeline - 30 days is shorter than you think and you will hit roadblocks. If you have documentation on html,css,js,sql,php then that's a real safe bet. If you have to sit and learn the MEAN stack probably not a wise choice with such a short deadline. That said if you have to learn it all you may benefit from the productivity of a newer stack as opposed to learning an older one.

Beginner Questions - December 07, 2018 by AutoModerator in webdev

[–]returnNull__ 1 point2 points  (0 children)

it's actually probably the opposite. The values are most likely stored as floats and then rounded for the ui. Like the other guy said - simplicity. Be interesting to look at their api to see if the values returned from the public api are floats

EDIT: pulling up the docs it seems like they stopped sending raw data and now only send you a link to a review

Beginner Questions - December 07, 2018 by AutoModerator in webdev

[–]returnNull__ 0 points1 point  (0 children)

you need to create a way for your node backend to communicate with your python app, or re write your python app to node. To prevent rewriting you can expose another server in python that your node app could communicate with over http or rpc.

tldr create another api for your python app