Hacker Newsnew | past | comments | ask | show | jobs | submit | ddyevf635372's commentslogin

There are still so many devs who don't want to deal with types, and they love Ruby and Python, as well as JavaScript without types.

It is quite difficult to work on large Ruby or Python projects; interfaces are not determined, and figuring out what's happening is painful.

Still, so many devs love it, and they wanna keep working with Ruby and Python in this way.

I kind of feel that experienced devs move on, and give up projects without types.


The funny thing is that even for devs who don't want to declare their types will still have think about them to some extent. Even if it's correcting run-time errors indicating that some function or property doesn't exist for type 'X'. Plus, they get to guess at the types that are expected for various function calls in their own projects. Oh sure, you can add comments that document it right above/below the function, but do you remember to keep those up to date while you're in the middle of refactoring?


These days most Python devs I know use types


Waking up when the dog wanna eat. Going back to sleep, waking up when I had enough sleep, making a coffee and reading Hackernews, Guardian and Reddit until noon. Having a brunch outside. Enjoying life and not worrying at all. ;)


Taking a magnesium vitamin pill before sleep helps a lot. Try it out.


Because it is not strictly typed language.


a lot of extremely popular languages aren't.


You probably meant "static" or "strong", not "strictly".

Regardless, both are still not right, since Elixir is getting a gradually-typed set-theoretic type system. It's been in the works for a few years now.


Ember.js is nicely adopted the bests from Ruby on Rails, and Ember.js is still one of the best JavaScript framework out there, IMHO.


I always wanted to be a programmer, but coming from a poor family and from Eastern Europe, it was not really an option in my twenties. Of course you learn programming from books and blog posts. It worked. However, I never gave up my dream, so I just ended up in a master program when I was 40. Finished it part time and got my Computer Science Master when I was 45. Also, having real world experience helped a lot learning the theory, because you already know how to use it in practice. ;)

To be honest, when I was in my twenties, I just wanted to work and being "serious" grown-up. Being student when you are 40+ is much more fun and you really enjoy every second of it. Exams are amazing, home-works are challenging, a lot of fun!

You don't have to do everything right now. The most important is that always do what you would enjoy, do things what you really like. Life is long!


Ember.js is an excellent choice. Check out the codebase how clean and easy to follow. It is just beautiful as always.


Running sqlite in memory as a test db speeds up your test runner as crazy. You can do this if you use an sql query builder library, because it can translate your queries to the specific database.


This can be a good fast/local test or maybe a sanity test ... but there are definitely differences between databases that need to be accounted for. You wanna take that green test pass with a bit of skepticism. So you always want to test on the same DB engine that is running your prod workloads. If your surface area is small, you can get by with the approach you mentioned, but it would need to be marked tech debt that should be paid down as soon as possible, or as soon as that bug that manifests itself in PSQL but not sqlite appears :)


On Postgres you can run

SET SESSION synchronous_commit TO OFF;

(Update: I just looked in our test code, you can also replace the CREATE TABLE commands with "CREATE UNLOGGED TABLE" to disable write-ahead logging.)

There are possibly other tricks?

I slightly disagree with the tech debt comment, though. If you get a huge speed up, it may be worth paying for the occasional bug, depending on the circumstances. Or you could do both, and only run the test on Postgres occasionally.


Sqlite is the most popular database in the world by a large margin. While you are correct for those who use other databases, the majority case you are wrong.

Of course most people who have complex queries are probably not using sqlite and so may not care about testing the database.


> Sqlite is the most popular database in the world by a large margin.

That is by installed instances. Whether that translates to the amount of developers is not so clear.


You can get the 'in-memory' speed advantage by putting the datastore on a ramdisk (or even just disabling fsync, which is pretty easy to do in postgresql).


There’s also the eatmydata program which does similar by using LD_PRELOAD to intercept io calls.


problem is that its not always compatible with features you use on your production database


Can split test regime so that as much as possible is covered with SQLite, and then have a second test phase with a heavyweight db only if the first phase passes. So code errors, malformed SQL, etc. cause it to fail fast and early, and you only test with the real DB once you know everything else is working.

Or along similar lines you could divide it such that developers can test things locally on their machines with SQLite, but once it gets pushed into CI (and passes code review etc.) it's tested against the heavy db.


That still doesn't fix the compatibility issues. Postgres has features/syntax that sqlite does not have, so you can't test postgres syntax with sqlite sometimes


That's fair enough.

I meant in situations like parent comment where you're using an ORM such as hibernate that supports multiple databases, you can test as much of the non-DB specific stuff with SQLite in-memory and then do a separate batch of tests with DB specific behaviour.


So you test against a different database technology than the one you software uses? I understand why that works but it seems odd


A real nice thing about Postgres and Mysql is that in the JVM world the H2 and HSQLDB engines have large compatibility, you can use them in-JVM for unit test speed in many cases. Doesn't help developing the SQL, does help with testing.

Snowflake, on the other hand, is just special.


I assume this can't be done with Oracle DBs


I haven't explored myself, but I would bet they have good Oracle compatibility for at least the subset of semantics they support.


Why should this be faster than a local postgres instance with no traffic?


Because you have neither IPC nor IO, whereas with a local postgres server instance you have both?


There isn't any tip in New Zealand and Australia. Everybody get proper salary. The service is always exceptional. How is that possible?


I'm Australian, living in Canada for 10 years, just went back to Australia for 18 months, now back in Canada. I have some experience here.

I love not tipping, and for me personally, the service in Australia is perfectly fine. I took my (Canadian) partner to Australia (her first time there). For her, the service was nowhere even remotely close to that of Canada.

In Australia, someone might take your order (or you order yourself at the bar), then your food is brought (or you get it yourself, get your own cutlery), and that is all. Plenty enough for me, but that's utterly bare minimum of what you'd get in Canada. Almost below bare minimum.

In Australia nobody comes to ask how your meal is, nobody comes to top up your water, and nobody will pontificate with you for 10 minutes about the difference in hops between two beers on tap. When my partner asked for that kind of information, most people just shrugged and gave her a sample of both, then said "what do you want?". I found it hilarious.

So while I think the service in Australia is perfectly adequate and I personally like it, my Canadian partner found it lacking immensely from Canadian standards, but she did like the no-tipping.


I had to read this a few times to make sure that, yes, you are actually implying that service in Canada is somehow particularly great.

I've lived here all of my life, but traveled very extensively. I would give the typical Canadian service interaction a neutral pass; they aren't openly rude, nor are they offering to wash my car.

Where are you going to eat that someone taking your order, bringing it to you and checking in to make sure that it doesn't taste like burnt plastic could be described as "bare minimum"? That sounds an awful lot like "pretty standard" to me.

Even in fancier places, there is a real art to achieving the perfect balance between attentive and annoying in service. Having someone notice that I need more water leaves me feeling cared for; having someone stop by on a 7 minute schedule to ask if we're "still okay" leaves me feeling violent.


> you are actually implying that service in Canada is somehow particularly great.

I was saying that service in Canada is noticeably "better" than service in Australia.

So what I'm actually implying, is that service in Australia is quite "lacking". By lacking I mean nobody "waits" on you. You often order at the bar, pickup your own food and cutlery, re-fil your own water and walk to the bar to buy yourself a drink.

Even a "sit down" restaurant will really only take your order and bring your food, nothing more. Fancier is different, but then you're paying more for the food.

As I said, I'm perfectly happy with that level of "service" because it means no tipping.

Of course, minimum wage in Australia is $21.38 with benefits, leave, healthcare, etc. etc. For everyone.


I waited tables for years in the Southern U.S., now I live in Canada.

I find that service is highly regional even in the U.S., but as a whole, better than service in Canada.

I also think that Canadians making at least minimum wage with tips on top plays into that. In the U.S. you'd have to provide great service or you risked not making any money (technically I know your employers are supposed to top you up to minimum wage, but they do it for the pay period rather than an individual shift)


I find the service in Victoria to be top notch. And tons of gorgeous waitresses, not that I care because I’m a highly evolved man ;)


Downvoted, appropriately


you haven´t lived here all of your life, yet....

:)


I am an American who has been living in Sydney for years and who stopped tipping here after getting used to it not being expected - but it has gotten a little weird/muddied of late. First it was Uber and the food delivery apps - and I did tip there because the app asked and I knew that in the gig economy the workers were not paid well (unlike others in Australia).

Then I have been to a few restaurants lately that the card machine (often a US-based one like Square) asks for a tip as a mandatory thing (i.e. you have to say no or type 0 to get past it). And the waiter/waitress will stand behind you watching/waiting with the machine they bring to your table. This never happened before - and I do admit that I have started leaving $10-$20 or something if I was happy with the service when this has been forced on me (depending on the size of the bill and the mood I've been in).

I did this with a work drinks with a customer the other day and my Aussie boss called me out on it "what is this tip on here - we don't do this in Australia". And I was like "I was in front of a customer the machine asked me - did you want me to say zero and possibly look cheap/unkind?".

So it is somewhat creeping into things here. Curious the views of other Aussies on how they are dealing with it? Am I just slipping back into this because I am an American and was used to it being a thing?


You're correct, it's creeping in mostly due to cookie cutter POS machines setup for US market (I assume), and Doordash/Uber/etc apps and websites baking it in. I'd guess the payment machines can be setup to hide it, but management figures we have a "choice" (under light duress) to not tip so that's good enough. There are also a lot of international people working in hospitality so I guess they wouldn't be as against it as a lot of locals and just assume it's normal.

There are pretty much weekly hate threads on r/australia and similar places on Reddit about this as you'd expect.

One other thing I did notice - when travelling the US and reading reviews, a lot of people talk about the service. It's rarely mentioned in reviews over here in comparison unless it's an outlier. I personally found the fawning attention quite cloying in the US, but it's a different culture I guess. Wondering if that'll change if tips gain a foothold.


Would you be comfortable as an Aussie just always zeroing it out when you see it here then?


If there's a presumptive pre-filled tip amount that I have to zero out that would annoy me a lot.

In most cases there is a tip button that I just don't press or I answer 'No' to the question on it. Sometimes the staff do it when handing it over. That doesn't annoy me as much and I don't usually feel much pressure since I've got a whole life behind me not tipping I guess. I do feel a bit awkward sometimes so I'd rather they not put me in the situation but I get over it.


In Denmark, half the time the waiters are embarrassed that their boss set up the machine to prompt for tips, and press 0 for you.

It's not Square doing this, it's the restaurant owner.


People do tip in Australia, it's just not expected. Tipping a genuine act of generosity to reciprocate exceptional service.

The correlation between service quality and tipping is an interesting one, why does anyone do a good job in any role without some kind of incremental reward for effort. Do office workers always revert to 'just enough to not get fired' or are they playing a longer game for promotions and bonuses?


What is this "exceptional service" people are talking about? Take the order without forgetting stuff and then bring dishes from the kitchen? Isn't that just a normal baseline for this profession? Or does it mean not spitting in the food (I'm joking)? I sometimes leave tips, but not once have I understood why, because there is no such thing as "exceptional" in the waiting service imho. I only do it due to the social pressure, like a monkey in the story about water hose and a ladder.


I absolutely think that exceptional service is possible - for example, when I visit a restaurant with my elderly grandparents who have some extremely particular dietary restrictions, and the wait staff patiently discuss our options, help them create a meal that satisfies their preferences and remains interesting, I find that exceptional. I've had wait staff give us genuine recommendations on the menu, with honesty, indicating the dishes they don't like (much more rare) as well as those they do resulting in a good meal - I enjoy that candor and am happy to tip for the recommendation. I've also had staff stay late and keep a restaurant open because we were on the last train into a station with nowhere else to go and eat and didn't speak the local language - I found that exceptional as well.


Look at the UK. Tipping has gotten weird in the last decade but the service culture is just missing. The service industry is what you do in high school or college because it’s the first cost that the food service industry wants to optimize. Consumers don’t expect or demand good service, so we don’t get it.


No - we expect adequate service and no obsequiousness.

It makes us uncomfortable to be pampered or if the serving staff are overly friendly or chirpy - it feels insincere to a Brit and puts us into a defensive mode.

If serving staff are polite (or at least not surly) and we get served in a reasonable amount of time then that's all we ask for and we'll tip 10% if there was nothing wrong with the meal, or put some change in a tip jar if we only ordered drinks.

Traveling to the US as a Brit is an affront when you first experience "service culture". You become desensitised to it after a while (and can even have some fun with it) but initially it's a genuinely uncomfortable experience and it blows my mind how different "normal" can be across English-speaking cultures who share a hell of a lot of history and culture.


Post-Brexit service in London has genuinely become very bad, on average. It’s just incompetent half the time. I can’t count the number of times I’ve walked into a mid-market restaurant and waited several minutes for someone to greet me. I can live with crappy service, but I don’t buy this narrative of ‘sincere Brits vs fake Americans’. Most Americans in the service industry seem genuinely to be trying to do a good job, even if there are layers of fake friendliness on top of that. Most British people in service jobs seem genuinely not to give a shit (which is fair enough - I wouldn’t either).


> it blows my mind how different "normal" can be across English-speaking cultures who share a hell of a lot of history and culture.

Is that really true, though? The US is such a mix of cultures at this point (and even the more dominant cultures have diverged so much), that I'm not sure it's accurate to say that Brits and Americans generally share all that much culture. History is there, yes, but it's been over 200 years, and history fades.


We share a huge amount of culture.


There's a significant asymmetry, though. Brits consume far more US culture than Americans British culture.


> The service industry is what you do in high school or college

most people working in the service industry are not teenagers and college kids. For restaurants and fast food joints adult workers are more common.

https://datausa.io/profile/soc/fast-food-and-counter-workers

https://www.epi.org/publication/wage-workers-older-88-percen...

The average retail worker is over 40.

These aren't "summer jobs" for pocket money or children's first steps into the workforce, they're the jobs adults depend on to keep their rent/utilities paid and their families fed.

Someone 25 years of age and older can deliver exceptional service, they just aren't paid enough to care to.


The GP poster was referring to the age of service workers in the UK, not the US. No idea if they're accurate for the UK, but I don't think US data can be used to refute what they're saying.


The service is not always exceptional - what are you talking about? It's sometimes good, sometimes bad, the same as anywhere else on earth.


culture/demographic


It's difficult to explain the cause. You can't really account for it by a simple tipping/no tipping divide. In other countries that don't do tipping, you'll end up wishing they did because the service is so abysmal. You can't get decent service or expect a good waiter or waitress, because nobody is motivated to do the job well.


You must have not been to Japan.


I've been to Japan many times. Tokyo, Kyoto, Nagoya. Japanese culture is exceptional in many ways—you can't pretend that their culture is normative when applied to the west. My point still stands. You can't pay service staff minimum wage or slave wages and expect good service. This is why the tipping system developed.


He's never been outside the US.


Ah, that's bullshit. I've been all over the world and I'm guessing by your comment I'm more travelled than you. Currently, I'm in the Philippines, where there's no tipping. Go ahead, come down here on a trip and see what happens. No tipping. And the service is abysmal because nobody has any incentive to be an excellent waiter or waitress.

What you don't understand is that tipping became a thing in order to reward good service and provide a decent income to service workers. It's not perfect, but it's there for a reason.


Obviously, you've never been to Japan or Europe if you think no tipping = bad service.

What you don't understand is that tipping became a thing because racist Americans didn't want to pay newly-freed black people properly.


I just finished saying that I've been all over Japan. And you missed where I said that Japanese culture is in many ways exceptional and not like other cultures. It's not like the rest of SE Asia, for instance, where there's no tipping and you have to wait for a half hour to get your cheque.


Yep, as the wises usually say, compare yourself to your previous self, where you were a year ago, and where you are now.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: