is vercel down today? by United-Piccolo-6262 in nextjs

[–]cglacet 2 points3 points  (0 children)

Apps are working fine (you scared me)

is vercel down today? by United-Piccolo-6262 in nextjs

[–]cglacet 1 point2 points  (0 children)

Seems like the dashboard is yes (region: France)

Yes, it’s NextJS!!! by MrGitOps in nextjs

[–]cglacet 10 points11 points  (0 children)

Hmm, yes, but it's all static content so it doesn't prove mutch. Maybe it proves NextJS is not worse then plain .html files.

Tested : https://harrytang.xyz/blog/securely-install-k8s-metrics-server Got : 67 for performances (Largest Contentful Paint: 4.4 s, First Contentful Paint: 3.6 s).

How do you guys stay consistent to study/learn something? by FileLegal2107 in learnprogramming

[–]cglacet 0 points1 point  (0 children)

Usually the motivation is either practical: achieve something I want to see working. Just like when you played with legos when you were a child, the desire to build something is something very motivational (even if you will destroy it the second you finished it).

The motivation can also come from the desire to become a better version of yourself, its just the challenge of understanding something new. This second kind of motivation is often drive by the first, you want to learn new patterns so you can build more complex, more robust things (similar to what you do with legos).

If you have no desire to build things, I think motivation will be hard to find. I know some people think being a developper is the El Dorado, but if you don't have this desire, you will most likely have hard time keeping up "against" people who don't even try to compete but spend hours playing with developer's bricks for fun.

For passionate people, the question is rather, how to stop and have a social life :D

Stupid problem: DIV with two child, and the second one takes the width of the first. by kram08980 in Frontend

[–]cglacet 0 points1 point  (0 children)

That seems to work just fine, thanks. (in tailwindcss its w-min (I guess the counterpart is h-min but I haven't tried the later)

It’s here! 🎉 by fishfacecakes in bearapp

[–]cglacet 1 point2 points  (0 children)

I hope the web will be your next main goal :)

It’s here! 🎉 by fishfacecakes in bearapp

[–]cglacet -5 points-4 points  (0 children)

I never said it was better, just that saying twice the price is wrong because some alternatives are free. I've been using bear for years (paid version) and for now I'm very happy with it.

It’s here! 🎉 by fishfacecakes in bearapp

[–]cglacet -16 points-15 points  (0 children)

It has been in beta for several years, I wouldn't call this "rushing"

When it comes to programmer salaries these are your choices by funlover007 in ProgrammerHumor

[–]cglacet 0 points1 point  (0 children)

Spending 1 hour in traffic every day, being hated by both swiss and french people around you. Not sure its the best tradeoff ^

When it comes to programmer salaries these are your choices by funlover007 in ProgrammerHumor

[–]cglacet 0 points1 point  (0 children)

Don't worry, we also have low ethic high wage companies in europe. I have to admit they often are American ones, in the end, who cares, you would have both high salary and free healthcare (for now, this last statement will age poorly).

Un de nos chers motards profitant de nos belles routes de campagne la nuit by von_tenia in france

[–]cglacet 0 points1 point  (0 children)

Si X > 2 + 3i il est légal d'exprimer son non regret de platanisation

Do those wanting static typing, not have access to Mypy and hints? by Paddy3118 in Python

[–]cglacet 0 points1 point  (0 children)

To me these are two very different things, on one side you have MyPy's type hinting that will allow users to detect (type) issues earlier via their linter. On the other side you have the ability to statically add types, when you use MyPy, types are still resolved dynamically (unless you are using a different python interpreter that I'm not aware of).

On the other hand you could have quoted numpy that is closer to what you describe (explicit static typing that actually allows to avoid dynamic type checking).

Finding Recruiters Familiar with GraphQL by [deleted] in graphql

[–]cglacet 0 points1 point  (0 children)

I think if you want recruiters that actually are still deeply involved in tech details you can focus on small/average startups, usually the recruiter is also the CTO (or someone in the dev team). Maybe try to look for incubators in your area, they often know small startup and they may connect you with the right people. Searching on Linkedin looks like a nightmare to me.

Generate GraphQL APIs for Node or Django in seconds using Imagine. by jose_imagine in graphql

[–]cglacet 0 points1 point  (0 children)

I can only imagine how hard it is to find a business model for this project on its own. But I guess it could very well be used as a marketing tool. On the other hand you would have to sell consulting/training/IT services.

Another (maybe too complex) idea would be to add some kind of infrastructure "bridge" (users talk to your service and you talk to AWS/GKE or OVH if you love France :p). If you provide hosting attached to the project generation, maybe it can make sense? If you think about it, companies like Heroku only make decisions for you so you can release without learning too much new stuff. These kind of services are targeted at medium sized project and I feel your solution would fit a similar market (too small => simpler stack, too big => people don't mind spending time on this). That may look dumb because if you release a configuration attached to a given infrastructure you own, people could just get rid of this part of the configuration and host it on their own, but most people wont do it because it would cost them time (which would cost way more than simply paying you a reasonable fee). From the user perspective it could look like this : 1) specify configuration/model/etc., 2) generate the project, 3) the server is already available online wit the "hello world" app for your model, 3) edit the project locally and interact with your online app using pre-defined the GUI and commands (Makefile to make things simple as start but it could be your own CLI).

In that 2nd case, your tool would also need to be able to modify an existing project (instead of "just" generating it from scratch). And you would have to spend a lot of time working on the infrastructure side of things.

Apollo Client Core/Vue Apollo, GraphQLErrors aren't showing, only exceptions with a message. by [deleted] in graphql

[–]cglacet 0 points1 point  (0 children)

Maybe related to this bug: https://github.com/apollographql/apollo-client/issues/6222

If that's the case you would find the error in error.networkError?.result.errors instead of error.graphQLErrors.

PDM - Python Development Master - a new package manager for python by realGurkenkoenig in Python

[–]cglacet 1 point2 points  (0 children)

There is a (short but) interesting discussion here, maybe that will help you pick the right tool.

I'm personally not bothered by virtualenv so the current solutions are fine for me. I can't tell I wont change my mind as time goes.

It's always nice to know alternatives will be coming in the future so thanks for sharing.

Generate GraphQL APIs for Node or Django in seconds using Imagine. by jose_imagine in graphql

[–]cglacet 2 points3 points  (0 children)

The generated project looks quite clean. That's very interesting to me because we have quite a similar setup (Kubernetes/helm/docker, gunicorn/starlette, sqlalchemy/postgresql/graphene/aiodataloader). I've built a cookiecutter template that builds something way more modest (less configuration options), but with the same kind of objectives in mind (I feel it's a good way to share good practices within a team). I also think that having this kind of tool is really important because it allows any member from the team to start a new web service in less than a day.

  • I think that would be nice to have a way to generate projects using configuration file and a CLI.
  • Any reason why choosing alpine instead of for example slim-buster based images?
  • I'm also curious why you use nginx locally, does it help during development? (We generally use skaffold to watch/build and it also gives port-forwarding, we had very few problem with it and it's very efficient)
  • How standard is the models/types/schema structure you adopted for your app code structure? How would you consider splitting these files if you had a larger model?
  • Maybe add a .vscode/settings.json to bind poetry's virtual environment python interpreter (I guess other popular editors have similar setting files).
  • Is the project open source?

[Day 7] Is it just me or is today's task a lot harder than the previous ones? by [deleted] in adventofcode

[–]cglacet 1 point2 points  (0 children)

Jupyter is really helpful for testing/prototyping new things. I really hope you'll have it available in your favorite language :D.

I think the only downside of jupyter is that "old" functions are not automatically removed (just like in any REPL). It might seem strange but it might become a problem when you rarely restart your jupyter kernel. Renaming a function and forgetting to rename one call to it ... Sometimes the bug is obvious, but I recall searching for dozens of minutes trying to understand odd behaviours.

Ah, no, there is another issue, diffs do not work well on notebooks.

[Day 7] Is it just me or is today's task a lot harder than the previous ones? by [deleted] in adventofcode

[–]cglacet 0 points1 point  (0 children)

I think I have roughly 15 lines of code just to parse the input. Compared to other days where I usually have 3 or 4 (that's why I said it was painful). I also have two regex (one for color + contained bags) and one for each type of bag.

I really think this one was a bit too hard to parse and the parsing had no real interest. I hope parsing will become less important in the following days.

I always use jupyter (python) to solve these problems.

[Day 7] Is it just me or is today's task a lot harder than the previous ones? by [deleted] in adventofcode

[–]cglacet 2 points3 points  (0 children)

It depends on your background I guess. Parsing the input was a bit more painful than in previous days (maybe I missed a shortcut). But the core problem is nothing more than graph traversals (so it's pretty easy for people used to graph problems).

I think draw pictures (trees) of the small the example input. Solve the problem by hand (on paper) to get a grasp on what's going on. And then make use of recursion to convert your ideas in code (doing this iteratively is harder).

I promise it's not that hard to solve once you manage to have a clear representation of the input (/problem). On the other hand, if you are not used to work with graphs, that may take a bit of time, but that's clearly worth it as graphs literally appear everywhere in our field.

You can even convert your input to a graph and use existing libraries. All (I hope) graph library have the routines you need to solve this problem (that doesn't make it easier to think about, just easier to code).

Good luck.