Details
Joined devRant on 4/26/2017
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
Has anyone experience with https://www.tuxedocomputers.com/en# ? Their laptops look very nice and they have decent prices.
-
I agree with @electrineer and only tried once to format a 15 page word document in my students life proper. Lesson learned: this will not happen again.
-
Maybe he uses nginx or caddy or docker where the apache logs go to stdout?
-
One simple answer: never trust user input (!) ... no matter if the user is an enduser, a browser, a backend system or a script kiddo with curl in some bash script.
Even if it were the responsibility of your team to prevent this issue the api have to check duplicates anyways when this is a constraint. -
I want to mention the limitation that in most languages each class can only extend 1 other class (e.g. an absteact one) but use many interfaces.
Also keep in mind that not every language supports classes and inherance. Have a look at golang where a lot of stuff is done via interfaces. -
@macfanpl than I'm confused. I know docker cli and docker desktop as "docker itself" where the second has a license fee when used in commercial environment.
The difference between cloud and self hosted just make sense to me in terms of the docker registry (the place where images are stored).
https://www.docker.com/pricing -
Are you referring to the docker registry oder the docker software itself?
-
Everything hurts...
-
I think the point is that you don't have to concentrate 100% 8 hours long.
For me it's important that I take breaks and do things from time to time which are easy to do like sorting emails or cleaning up my desktop (virtual and physical) to have everything right in place when deep diving into the next ticket. -
Not that long so nothing useful like refactoring or test or code style improvements were left.
I love it when in a sprint is time left to just do a bit of housekeeping in our apps. -
Well... this looks like several copy n paste stack overflow snippets combined into one piece of code.
At least I think it will work but working code is not the only but just the first requirement of code. I assume that this wasn't written by a professional. -
@Floydimus I think that's ok for more than 7 years of experience.
Do you want to live in the city where the company is or working from remote? -
Uh that's really hard to say and depends on the city where you want to live.
In Germany regionally differences are huge because e.g. apartment rent in Munich is more than twice as high as in Leipzig. The best you can do is working for a big company remotely to have low living costs and a high salery.
To name a number: 60-75k net as a software developer (without any staff responsibility) in Germanys east is top tier. A project manager will normally get more than that and of course there are devs who earn 100k a year but thats not the average. -
@fullstackchris both is correct. Go does not actually have classes but "structs" which can in some cases behave like classes. They can have methods or inherit from each other. The difference is that it's not called inherance bur composition. This sometimes feels like inherance but is more like gluing multiple structs into one.
-
@magicMirror oh wow. That sounds the worst. I can understand the basic idea for quick changes but this is nothing a well disigned ci pipeline cannot solve. Moreover you create overhead in communication.
If you want to put it all together in one place you directly can put it one app. -
@magicMirror now it's clear for me. So you are using multiple microservices instead of one larger app with all functions in one place.
So it seems that go was build for microservices and is used for exactly that. Thanks everybody :) -
@magicMirror 20k loc each?
-
Well I am a fan of different types of tests. There are cases where I definitely want unit tests which test just a single function (e.g. tax calculation inside a cart). Most of the time I stay with integration or e2e tests because they not only test the actual functionality the software provide but also let me refractor decent parts of an application without rewriting a lot of tests.
-
It's a floating point issue. There are several numbers which has no representation in binary so there are libraries in many languages which are facing this problem.
https://docs.python.org/3/library/... -
It's a question we discussed recently because our trainees learn php as one of the first languages which I would classify as a weakly typed language (please no php hate here. I'm working in an e commerce environment and php is the goto lang there).
A few weeks ago our trainees start to learn golang which is strongly typed (after 1 year of experience with php) and it was really hard for them to get everything right and understand the differences between all types (e.g. int32 and int64). I think that it is definitely worth to learn a strongly typed language. -
@korrat I would say that a language is untyped if you cannot define types at all like in Javascript
-
Well... maybe some day managers will understand that you cannot measure a dev teams output by counting tickets or prs
-
I think that they just miss some good reasons for not thinking that.
If in our team it is not clear to anyone I tell them that html is a dialect of xml. Xml is a format of defining data structures like json oder yml. Then I ask if they think that json is a programming language.
For beginners I think it is important to unterstand the difference and most of the time when someone say that html is a programming language it is just because of lack of knowledge. -
We had an similar discussion at work at the end of last year. In our case the pure numbers were enough. We have plenty of tracking at our sides (I'm not proud of this but in this case it helped us) and know how many users are still using ie. The number was so low that management agreed to drop the requirement that each feature must also work in ie11.
-
@100110111 it is not that important. I just wanted to point out that I think it's might not be a good idea to compare 2 languages which are not comparable.
F# has less loc? Sure, starting at the fact that indenting is used instead of brackets for code structure.
You don't like that go has no exception handling and does everything with if err!=nil checks? That's ok because handling of errors is different and golang supports multiple return values and beliefs that each function should be aware of errors which might occur.
Its always a thing of the use case you have. There are cases where F# is better than golang and there are cases where it is vise versa. -
I didn't find a fast answer by googling it: does f# compiles into a single executable binary without library dependencies to the os?
-
I do learn things but they not always have something todo with my job. For me it's more like a nice side effect if hobby coding/learning something match work the things I do at work.
-
Well docker definitely has problems like handling of root privileges but I like to use docker as often as I can. Of course everything docker can do you can also do with a vm but with docker I e.g. can start and stop different dev environments on my local machine in seconds. Nothing a vm can give me.
-
Afaik there is no such option directly.
You could use interfaces but they require a named struct and methods to be defined.
Another option is to use other things to validate if the struct should be used. If a function return your struct this func can return a bool as well to indecate if the struct should be used. -
It's awesome! I like the style and the idea very much