Eugene Kuleshov

1.5K posts

Eugene Kuleshov

Eugene Kuleshov

@euxx

Toronto, Canada Katılım Haziran 2007
91 Takip Edilen249 Takipçiler
Eugene Kuleshov
@jezell @peteralexbizjak @kevmoo @kevmoo the current text-only is very limited when you need richer media, images and all. Not to mention overlap with clipboard media and drag and drop. You can check the super-clipboard to get some idea about the scope
English
1
0
2
36
Jesse Ezell
Jesse Ezell@jezell·
IMO, native browser context menu should be the default in flutter web inside input controls. Disabling all flutter context menus just to get paste events is a bit overkill, since in most cases you want to actually be able to render a context menu on right click. However... and you can't get file paste events unless you use the native context menu. We had to build a special widget just to enable native context menu only within input fields, and it's probably too much work for most people to figure out. Not sure who is even running the show anymore, but all Flutter clipboard stuff + drag and drop stuff blows total balls and something like @MatejKnopp's super native extensions should just be in the core.
English
3
0
20
1.4K
Eugene Kuleshov
Eugene Kuleshov@euxx·
@tagir_valeev I was giving you credit... 😆 Wouldn't both of those fail if x is an Integer type with value null?
English
0
0
0
70
Tagir Valeev
Tagir Valeev@tagir_valeev·
FindBugs was not my project. Even though I contributed to it a little bit, I never decided the overall direction and which warnings are issued outside detectors I've contributed to. And in general, static analyzers may produce the opposite warnings, based on the configuration, to support different code styles. E.g., IntelliJ IDEA may suggest that you write `if (x == 0)` or `if (0 == x)`, depending on the setting.
English
1
0
0
162
Tagir Valeev
Tagir Valeev@tagir_valeev·
The first option, str.equals("admin"), is safer. If str erroneously happens to be null, the program will fail with NPE, and you'll immediately see that str has a buggy value, so you should fix something in your code above. The second option will silently propagate the erroneous state, possibly causing data loss or incorrect program behavior much later. With the second option, there are chances that the error will be unnoticed during the testing and slip into production, and it will be much harder to eradicate the original problem. Exceptions are your friends, don't avoid them. They are trying their best to tell you that your code has a mistake. Fix the original mistake instead of ignoring it.
Javarevisited@javarevisited

Which one is safer? if (str.equals("admin")) OR if ("admin".equals(str)) Why does this matter in production?

English
5
1
48
6.3K
IntelliJ IDEA, a JetBrains IDE
IntelliJ IDEA, a JetBrains IDE@intellijidea·
Command completion (..) unlocks features in the editor, without needing to know shortcuts. You don't even always need to know the exact name of a command, as some commands have aliases. #IntelliJIDEATips
English
3
15
120
10.8K
Jesse Ezell
Jesse Ezell@jezell·
5.3 codex is beastmode with rust. I’d guess the rust trailing data in general is much higher quality than a lot of other languages.
English
3
0
14
1K
Jesse Ezell
Jesse Ezell@jezell·
Honestly, the fact that the Flutter / dart team itself doesn't maintain drag and drop + non shit clipboard support is a travesty. Those are kind of essential for any non trivial app. Maybe @AbdallahSh07 can make them see the light. I'm generally against increasing scope for the Flutter team, but this is essential platform level stuff that should be supported as well as super_clipboard / super_drag_and_drop do without the risk of things like this happening.
English
2
0
0
76
Eugene Kuleshov
Eugene Kuleshov@euxx·
@jezell @MatejKnopp @Superlist Yeah, I know... There are barely any alternatives for drag&drop and platform clipboard support beyond plain text. May have to to create some custom stuff, as forking rust-based stuff would require more heavy lifting.
English
1
0
1
64
Jesse Ezell
Jesse Ezell@jezell·
@euxx @MatejKnopp Probably, but you might need to fork. I think @Superlist has stopped investing in Flutter, so he may not want to work for them for free.
English
2
0
0
135
Jesse Ezell
Jesse Ezell@jezell·
When @elonmusk makes the SpaceX phone, I hope it doesn't have a phone number. Phone numbers are 1000% spam these days. I want an internet connection. I don't want a number anymore.
English
4
1
9
797
Eugene Kuleshov
Eugene Kuleshov@euxx·
@MatejKnopp what are the chances you'd show some love to your old Flutter plugins? The super_clipboard and irondash ones can't be used anymore due to lack of support of 16k on Android, as well as outdated Android SDK compile target. There are PRs for those waiting to be merged...
English
0
0
0
44
Eugene Kuleshov
Eugene Kuleshov@euxx·
@TheDerivative I mean pattern "DeviceModel(:DateTime lastSeenAt)" is matching and deconstructing non-null lastSeenAt. But then whole condition is the same as "device.lastSeenAt?.isWithin()20.seconds) ?? false"
English
1
0
2
49
Dan Reynolds
Dan Reynolds@TheDerivative·
@euxx I don’t think so because lastSeenAt is nullable so I’m using the explicit type to narrow the matching
English
1
0
1
229
Dan Reynolds
Dan Reynolds@TheDerivative·
Holy Dart syntax batman. Maybe the Dartiest line I've written 🤣
Dan Reynolds tweet media
English
6
0
19
6.2K
Eugene Kuleshov
Eugene Kuleshov@euxx·
@TrushinBV Очень заметно, что тот кто делал тортик понятия не имеет о скалолазании. Детали очень режут глаз. 😆
Русский
0
0
3
75
Борис Трушин
Борис Трушин@TrushinBV·
Угадайте Дунино любимое увлечение по тортику )
Борис Трушин tweet media
Русский
16
0
100
3.1K
Eugene Kuleshov
Eugene Kuleshov@euxx·
@intellijidea It is really weird to type something into the editor when you not intend code to be directly modified...
English
0
0
0
87
IntelliJ IDEA, a JetBrains IDE
IntelliJ IDEA, a JetBrains IDE@intellijidea·
You can use Alt+Enter to fix errors and warnings, but the list of options it provides is limited. Use command completion (..) instead to perform the relevant actions you need in your editor. #IntelliJIDEATips
English
1
9
62
8.7K
Tagir Valeev
Tagir Valeev@tagir_valeev·
Конструкции языка прямо на чистом немецком: wiederhole 20 mal = повторить 20 раз wiederhole immer = повторять всегда. Прикольная штука, расширяет сознание. eos.lathanda.de
Русский
3
0
14
1.3K
Tagir Valeev
Tagir Valeev@tagir_valeev·
Узнал, что немецкие дети на программировании пишут код на языке EOS 2, что означает Einfache Objektbasierte Sprache (простой язык, основанный на объектах). Под капотом у него Java Swing, в целом похож на Java и ориентирован на вывод простой графики. И весь на немецком!
Tagir Valeev tweet media
Русский
16
2
63
6.9K
Eugene Kuleshov
Eugene Kuleshov@euxx·
@intellijidea Why why why those commands + all refactoring options can't work selection and the regular Alt-Enter shortcut? This . feels so unnatural to type
English
0
0
0
48
IntelliJ IDEA, a JetBrains IDE
IntelliJ IDEA, a JetBrains IDE@intellijidea·
Command completion (..) extends regular code completion. In addition to API completion and postfix completion, code completion now includes commands. To filter the list to commands only, use .. The list is searchable, to help you find what you need more quickly. #IntelliJIDEATips
English
2
10
82
8.5K