144 karma · joined Feb 20, 2020 (6y ago) · 232 submissions
comment 6y ago · link · parent
That is quite an assumption.
I personally would use a field with a structured format e.g. XML (most RDBMS systems can deal with XML easily) and different types of address field e.g. postcode, zip code etc.
Then you could use a strategy for each country when dealing with it in your application.
comment 6y ago · link · parent
You can use multi-targeting to move parts of your code over to .NET Standard. So if you start with your base projects and move your way up, gradually your code will become compatible between .NET core and .NET Framework. This will help you remove any .NET Full Framework / Windows specific bits. Where you have to have things that are specific to each OS you can then just configure your DI so it will inject the Windows specific / Linux specific implementation.
For those that are not aware of multi-targeting here is a great article on it:
https://weblog.west-wind.com/posts/2017/Jun/22/MultiTargetin...
comment 6y ago · link · parent
Typically if 25% of my users use IE11, I will just make sure it works with IE11. If I have to stay use an older version of the library I will just use that unless I can polyfill or patch the lib to work with older versions of IE.
Then again I am kinda strange in the fact that if it should work in an old browser (and time permitting) I will normally make sure it works well enough that it is functional in that browser.
comment 6y ago · link · parent
Array.prototype.forEach is supported from IE9.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
EDIT: It is the nodelist api that isn't supported in IE. Not Array.prototype.forEach.
Quite a lot of these basic JS constructs even if they are missing (most aren't in IE11) are very easily polyfilled.
Personally I think it is fine that they drop support if they don't feel the need to support it. Bootstrap 4 isn't going to vanish.
comment 6y ago · link · parent
Splitting hairs.
> And what's with "society today"? When was society any different?
About 20 years speech codes and communication frameworks were mocked openly and treated with scorn (as they should be). Today not so much.
> There are worse things. People take a whole semester course on compilers and most don't use any of that knowledge. The majority of technical courses I took in undergrad were never used for anything at work. The communications workshop has been more valuable than those.
This is a general misunderstanding by people such as yourself why they teach you these things. The first being "this is how this works under the hood" and the second is that many other problems might have similar patterns to them. It teaches you how to think in a particular way and break down problems. But alas this was lost on you.
> And about those bigger problems at work? Try solving them with poor communication.
1) Just speak to people. like adults. 2) Be honest. 3) If someone doesn't seems to know what they mean just say "Does that make sense?" and assume you made an error.
It is very simple.
> Because you have to deal with these people at work. I mean, if you're a solo developer who doesn't work in a team, then your stance is fine. If people don't want to work with you on a project, it becomes your problem. The world isn't going to change to conform to how you thinks adults "should" behave.
It isn't about how I think adults should behave. It how the rest of the world thinks adults should behave. You are there to do a job.
> This is classic way to deny yourself of agency and put the onus on others. I once told a manager of mine to stop using the word "should" - it's a way of saying "I don't want to deal with this - it is someone else's fault".
Not at all. I've accepted there things I can control (myself) and there are things I largely cannot control (other people). You seem to framing this like I go around being verbally abusive to my co-workers.
> And you are willing to disclose this in an interview?
I am a contractor. I am brought in to do specific jobs. I don't spend years working at the same place. If I don't like it somewhere I just don't extend the contract.
I also don't particular respect lifers and company men. But I tend to keep that to myself.
> You conveniently ignored the rest of my comment where the perception this happens is fairly common. No one is acting hostile, but the outcome is similar.
Because the premise was a nonsense.
comment 6y ago · link · parent
That is endemic with society today is that people don't seem to think facts important.
Also a two day communication workshop on how to talk to people. You have bigger problems than how to communicate at work.
> You've already alienated half of the population. Good luck at resolving a conflict with them.
And that is their problem. Why is it mine? If you are an adult you should be able to talk about things as a matter of fact. If you cannot you are not an adult. Some people don't grow up past 16 years old. That is their failing and not mine.
> But I'm crazy to think that half the population will spend the effort to get there. A big chunk of them don't view it as a desirable goal. It's a laudable aspiration for me to try to make them think that way, but unless I want to make it my life's mission, I need to focus on getting results now, and that means discussing their emotions, and realizing that in doing so I'm not going for an inferior approach.
Sure. You have a choice as to whether you want to work with those people or not. I don't like working with those people so I minimise the amount of time I spend working with them if possible.
> Oh, and people who say feelings are irrelevant? Let me completely dismiss them in a meeting and suggest mildly that they're perspective likely is due to a lack of competence. Most of them will not perform well for the rest of the meeting. Quite a few of them will have issues with me in the long run.
There is a difference between openly hostile (which is what your example is) and talking about things as a matter of fact.
comment 6y ago · link · parent
https://en.wikipedia.org/wiki/Antifragile
I don't particularly like speech codes, I don't like "communication frameworks" and I am enough of an arsehole (because I don't care if people like me, and ironically that is why a lot of people like me) to call it out. Obviously you can't go around being generally abusive, but this is another insidious thing that we really don't need in an office.
comment 6y ago · link · parent
With a framework you not only have to learn how build things in the framework (which takes a lot of time to become truly proficient) I also have to build what I am already supposed to be building.
I find personally that frameworks
* Simple things hard. Hard things simple.
* Anything outside of the happy flow they present to you in the docs is a major PITA.
* I frequently find myself scrabbling around for information when I need to override how the framework works in a particular scenario.
* They nullfy much of your pre-existing knowledge e.g. I am described at a lot of places as a JavaScript guy in the team, because I get JavaScript. When I use Angular or React, most that is irrelevant. It doesn't really help me.
If I am just using well established patterns + my existing knowledge of the programming language and environment. I can normally put something together myself that does just what I need it to do and I use a library for things like date time calculations or Ajax requests or something else that is mundane.
comment 6y ago · link · parent
The fact of the matter that most problems need to be solved in a manner which is directed by the facts. What someone else feels is almost completely irrelevant. We need to achieve <Whatever>, we need to do the following. When does feelings really come into that process? It doesn't.
I find it completely mind boggling that "root cause analysis" has something to do with someone's feelings. It has absolutely nothing to do with it.
comment 6y ago · link · parent
I've basically have an implementation of Observer Pattern, PubSub and I have written something similar to hyperscript.
https://github.com/hyperhype/hyperscript
https://webdevstudios.com/2019/02/19/observable-pattern-in-j...
comment 6y ago · link · parent
> In my experience feelings-type problems are significantly more numerous than technical problems to resolve dispassionately.
That is because people don't think about things objectively which they should be doing. But I am an objectivist so I suppose I am biased.
comment 6y ago · link · parent
And? They have also redefined violence to mean something else. It doesn't mean they are correct in doing so and in no way does this address my complaint.
In the link you posted the very first line:
> Violence is "the use of physical force so as to injure, abuse, damage, or destroy."
That is the definition and that is what most people think when they hear the term violence. Your link itself says it is a unconventional definition. One that I do not care for. So both the WHO and this acronym as far as I am concerned is redefining violence.
> That said, I do prefer the AKA of "Compassionate Communication"
Again. This is more newspeak. It just being empathetic. I absolutely abhor people inventing their own terms when there is already suitable word.
comment 6y ago · link · parent
This all sounds like the worst parts of working in a lot of modern offices where people don't speak frankly and instead everything is done through this sort of political office speak which is lets be honest here all about politics and not about solving problems.
When I read things like this. I find it very insidious.
comment 6y ago · link · parent
I managed to deal with moderately difficult scenarios with about 7 files in typescript. I ended up using webpack but that is a dev-dependency which doesn't really count.
I built this for me, but if you employ some basic patterns and use something that is a little more powerful than JavaScript it isn't that hard. I also very rarely ever use a DOM selectors in my JavasScript.
I don't particularly like frameworks these days because you end up spending more time dealing with the framework than actually getting things done.
comment 6y ago · link · parent
1) Code normally and check compatibility of functions with the minimum version of IE. I then either polyfill the browser (if I understand the polyfill, some polyfills are quite large). Where I don't understand what the polyfill is doing or it is quite large (more than 40 or 50 lines) I then implement a specific work around and try to put it that logic in a separate function e.g. for dataset on Elements I have a function that detects whether data set exists and then just uses setAttribute with some regex munging as 90% of the time I only need to read and write dataset values and I rarely care about dom mutations.
2) Regarding styling. My approach is to that I style everything up and then use specific overrides for things that browsers can't do.
I also tend to avoid specific IE builds as you end up supporting almost two code bases. However I have years of intuition of what will and won't work in outdated browsers. However I appreciate that this isn't always possible or desirable depending on frameworks / libs used etc.
comment 6y ago · link · parent
I haven't really been following what is going on with Zoom. I have been vaguely aware of quite a few security issues.
However today I was linked youtube live stream from a friend on discord of some guy trolling random school classes while by pretending to be some sort of African Warlord. While his act was quite initially amusing and tbh harmless, it certainly didn't leave a positive impression of the software in my mind.
comment 6y ago · link · parent
IE was a much better browser than Netscape and until Firefox, Mozilla wasn't really used outside of Linux distros.
> For a long time, all projects were IE-first, then you would worry about niche upstarts like Firefox.
This isn't quite true. Many of the early adopters of Firefox was web devs and enthusiasts and typically I developed on there first (mainly because of firebug) and as I went along I checked that IE worked. However I started my career just after IE7 was released.
> It wasn't until the launch of Chrome and Safari and the resurgence of Apple and OSX that there was any plausible alternative.
No not really (at least not in the UK). I noticed things shifting after the prevalence of smart phones. Chrome came out much later than Firefox and things were already starting to shift in Firefox's favour (non-IE browsers were getting upto 30% of traffic).
> IE wasn't "extra work", it was the primary objective.
That really wasn't my experience at all. But as I said I started my career near the end of IE's dominance.
comment 6y ago · link · parent
comment 6y ago · link · parent
* Having a routine. Getting up to work, commuting, working, going to gym, eating dinner, relaxing etc. is a routine. I find it gives me some structure to the day. If you are working remote I would encourage you to work out a routine and stick to it.
* You need to have a separate work space and have "working hours". I have a completely separate PC and office setup for work. Once I am out of that office it helps me mentally switch off from work. A friend of mine who runs his own business rents a small office (these can be inexpensive). However I am freelancer / contractor and this can be considered a business expensive.
* Make sure you go out for a break during the day. Make this part of your work routine.
* I typically have to drive about 1hr 30 minutes to the office. So that is typically a commute of 3 hours everyday. Doing this 5 times a week is tiring and adds up to 15 hours each week. That is 2 working days. However I do like the social aspects of an office. So being able to go in maybe 2 days a week, talk through solutions work face to face helps. But obviously not possible at the moment.
comment 6y ago · link · parent
Very frustrating.
comment 6y ago · link · parent
Well outside of London it is generally awful. TBH London might as well be another planet when compared to the rest of the England (same goes for Manchester and Birmingham, I stay far away).
https://www.bbc.co.uk/news/uk-46444109
https://www.telegraph.co.uk/cars/news/britains-pothole-probl...
I currently live near Manchester and before that Hampshire. So that is two opposite ends of the country pretty much and it is the problem there. So my experience seems to reflect that of what is reported.
>I'm sure you realize that council tax is supposed to pay for a lot of things, and that council incomes are way down over the past 10 years.
So? It has been like this since the late 90s. I remember my father complaining about it since then. In anycase the roads are awful.