56
24
vitonsky

@programming.dev

vitonsky 19 points 3 years ago

Haha, actually it's my bad, not a Linguist 😀

I'm not a native speaker, i still learn the language, but you can edit a post text on a github https://github.com/... i would appreciate it

path: 0 2647927 2647974, hotness: undefined, score: 19, children: 7
vitonsky 16 points 2 years ago

Definitely, you on the right way 😉

path: 0 12900124 12900439, hotness: undefined, score: 16, children: 0
vitonsky 11 points 3 years ago

You can see the code of extensions, but it may be minimized, so it hard to known what the code do.

Extensions with label "Recommended" are pass the manual review of Firefox moderators, so you can trust them more than addons with no this label. However you still should keep in mind that any extension developer may be victim of complex scam attack.

The most probable reason usually is a not enough funding the developers

  • Developer spend time on maintaining the project but users does not donate them
  • Scammers offer to developer some integrations that not looks too suspicious and allow them to earn some money
  • Developer agree offer and after some time scammers enables malware to hack extension users

To minimize the possibility of hijacking addons by scammers, we have to:

  • conduct background check before install extension
  • ensure the extension have github with open source code and developer are real person
  • ensure development are active and developer have high engineering skill, check them respond on feedback and issues
  • donate the developer if you like the product, to motivate them keep distance of scammers offers
path: 0 3051458 3051789, hotness: undefined, score: 11, children: 0
vitonsky 8 points a year ago

Now you may send link on this post to your manager, to justify a proper decision

path: 0 17106238 17106289, hotness: undefined, score: 8, children: 0
vitonsky 5 points 3 years ago

Exactly! I see how a mindset “we delivered (shit) quickly” successfully reproduces itself, over and over in a lot of companies.

I think the actual reason is that business want to make money on promises right here right now. Business promises a lot of features to investors give money, and then business implement a lot of (shit) features. And then they continue kinda "okay, features broken, give us more money and we will fix it".

path: 0 8671711 8672253, hotness: undefined, score: 5, children: 0
vitonsky 5 points 2 years ago

Yes, Linguist use Bergamot translator that is embedded in Firefox. But translation in Firefox in beta stage, it does not have a lot of features and does not support a lot of languages yet. Linguist is a full featured translator that support a lot of translation modules and even custom translators provided by users. So Firefox translation is just a subset of features from Linguist, like Firefox ads protection is just a small subset of features from uBlock Origin.

But Firefox translator are technological breakthrough anyway, so we appreciate it.

path: 0 10861003 10861138, hotness: undefined, score: 5, children: 1
vitonsky 5 points 3 years ago

You can make a language request in a issues of repository https://github.com/...

You're right, resources are limited and a new languages appears not so fast as we wants. Maybe Chinese developers will collaborate and release their own models for a Bergamot. Work with community are important to achieve the goal when we want to unify translation.

If you really needs to be private for now, you can try to deploy your own offline translation server locally (e.g. with a https://github.com/LibreTranslate/LibreTranslate) and use this translator with Linguist as a custom translator.

path: 0 2633088 2635992, hotness: undefined, score: 5, children: 2
vitonsky 4 points 3 years ago

For now an embedded Bergamot Translator module does not support a Korean language, but thanks for your comment, i work on addding a new languages and your comment useful to demonstrate the importance a wide languages support.

With time a Korean language will supported, for now you can try to use a https://github.com/LibreTranslate/LibreTranslate as a Linguist custom translator (https://github.com/...). It will takes a time to configure your environment, but as result you can deploy a big AI model for text translation on your PC and use it with a Linguist if the private translation the key feature you needs for the Korean language

path: 0 2606662 2607262, hotness: undefined, score: 4, children: 1
vitonsky 3 points 3 years ago path: 0 2633088 2635992 2638442 2639447, hotness: undefined, score: 3, children: 0
vitonsky 3 points 2 years ago

Thank you too 👍

path: 0 10861052 10861197, hotness: undefined, score: 3, children: 0
vitonsky 2 points 2 years ago

I like this meme. Essentially, current API let you express any operation measurement. If you know some case where this package does not work for you, you are welcome to issues.

path: 0 11573505 11573930, hotness: undefined, score: 2, children: 0
vitonsky 2 points 3 years ago

It's good question. If a Mozilla people interesting for it - feel free to email me. As i know, for now a firefox translator is just a wrapper over Bergamot Translator while time a Linguist is a common purpose translation system for all major browsers, that embedded a Bergamot Translator as one of a great translator implementations.

For now Linguist had no reviews by influencers and it did not appears on reviews of a firefox addons blog unlike some other addons like proprietary Mate translate and open source TWP - Translate Web Pages. If we together make Linguist visible for a wide people, maybe Mozilla will pay attention for a Linguist too and we can integrate Linguist into a Firefox with all features it have

path: 0 2626226 2635703, hotness: undefined, score: 2, children: 1
vitonsky 2 points 9 months ago

When you use query builder, you write a raw SQL code.

The benifit is you can insert user input right in string, and your query remain secure against injections. Additionally, a Nano Queries let you compose queries, and extend it, so you may build complex queries simply.

Let's say you develop a site to search something by its features, for example a movies. Your SQL query may easy takes 100-500 lines. Some part of this query will be a basic, some will be optional depends on provided filters.

With a query builder you may conditionally extend your query like that

if (userInput.rating > 0) {
  filter.and(sql`rating >= ${userInput.rating}`);
}

That's all Query Builder does. It let you avoid to write code like that

const values = [];
const getPlaceholder = (value) => {
  values.push(value);
  return `$${values.length}`;
};

const where = [];
if (year) {
  where.push(`release_year = ${getPlaceholder(year)}`);
}
if (rating) {
  where.push(`rating >= ${getPlaceholder(rating)}`);
}

db.query(
  `SELECT title FROM movies ${where.length ? 'WHERE ' + where.join(' AND ') : ''} LIMIT 100`,
  values,
);
path: 0 21781702 21784695 21790663 21791192, hotness: undefined, score: 2, children: 0
vitonsky 1 point 3 years ago

I hope you're right. The more people will save it, the more chances we have to find the source code later, or even find the community who will maintain the fork.

path: 0 8189973 8190702, hotness: undefined, score: 1, children: 0
vitonsky 1 point 3 years ago

If you think a Object Oriented Programming is a framework, then you can think about BEM like a framework too. But a correct word is a methodology. A "framework" have too generic meaning.

Methodology gives us a methods how to improve software quality. This methods like an interfaces in programming that we must implement as programmers

path: 0 2627170 2636214, hotness: undefined, score: 1, children: 1
vitonsky 1 point 3 years ago
path: 0 2647500 2647954, hotness: undefined, score: 1, children: 0
vitonsky 1 point 3 years ago

Could you elaborate your idea.

If i correct understood you, you want to use relative imports inside alias directory. This is possible, you may check test about it https://github.com/...

Is it that you need?

path: 0 9255022 9266679, hotness: undefined, score: 1, children: 3
vitonsky 1 point 3 years ago

Thank you! Share it with your friends if you like it. The people who improve their productivity so much to share it with their friends are motivates me a lot!

path: 0 2610508 2610836, hotness: undefined, score: 1, children: 0
vitonsky 1 point 3 years ago

Sure, decision logs is just a step to fix a problems with decision making. Logs highlight a problems in decision making process and let you analyze a problems in your team. You still need an strong architect who may say "hey team, why your arguments so weak? it looks you are low skill engineers. make arguments more objective, or you will be fired" and then really fire weak engineers in team.

path: 0 8674865 8675757, hotness: undefined, score: 1, children: 1
vitonsky 1 point 3 years ago

Current plugin is just about force use aliases instead of relative paths (and back for deprecated aliases).

If you need to sort imports, you may try rule simple-import-sort/imports from https://github.com/... It is very flexible, so you may customize your own groups. For instance, you may group aliases in one group and relative imports to another group. Check their docs

path: 0 9255022 9266679 9267217 9268772, hotness: undefined, score: 1, children: 1

thanks for using Leebra!

go to feed...