Skip to content

Instantly share code, notes, and snippets.

View y-gagar1n's full-sized avatar

Yury Timofeev y-gagar1n

  • Yandex
  • Moscow, Russia
View GitHub Profile
@y-gagar1n
y-gagar1n / gist:a5dcba9bcc3f889912e2
Created August 16, 2014 21:33
debugging with node-inspector
sudo npm install -g node-inspector
sudo node-debug app.js --debug-brk
@y-gagar1n
y-gagar1n / AssertUtils.cs
Created December 4, 2017 08:53
AssertUtils
using NUnit.Framework;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace TestUtils
python-twitter
This file has been truncated, but you can view the full file.
<char>::lookup_collatename<char const*>(char const*, char const*) const::__collatenames' from file '../libcontrib_catch_main.a(catch_main.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
itReporter>::SectionNode> > > > >&)' from file '../libcontrib_catch_main.a(catch_main.cpp.o)' to global weak symbol 'std::__cxx11::regex_traits<char>::lookup_collatename<char const*>(char const*, char const*) const::__collatenames' from file '../libcontrib_catch_main.a(catch_main.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'std::vector<std::shared_ptr<Catch::CumulativeReporterBase<Catch::JunitReporter>::Node<Catch::TestGroupStats, Catch::CumulativeReporterBase<Catch::JunitReporter>::Node<Catch::TestCaseStats, Catch::CumulativeReporterBase<Catch::Jun
/Users/yury-timofeev/projects/shad/cpp/shad-cpp0/cmake-build-asan/test_multiplication
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
test_multiplication is a Catch v2.2.3 host application.
Run with -? for options
-------------------------------------------------------------------------------
Advanced
-------------------------------------------------------------------------------
/Users/yury-timofeev/projects/shad/cpp/shad-cpp0/multiplication/test.cpp:8
@y-gagar1n
y-gagar1n / exceptions.md
Last active August 28, 2020 07:02
exceptions

Ресурсы

https://www.researchgate.net/profile/Rebecca_Wirfs-Brock/publication/3248431_Toward_Exception-Handling_Best_Practices_and_Patterns/links/0deec52de98c15589e000000/Toward-Exception-Handling-Best-Practices-and-Patterns.pdf

https://habr.com/ru/post/221723/ + хороший комментарий https://habr.com/ru/post/221723/#comment_7555889

тезисы комментария:

  • Ценность исключений в раскрутке стека.
  • Исключения выкидывать только в случае критических ошибок, в остальных случаях - обрабатывать ошибку в той же функции, либо как можно блмже к ней, либо возвращать код ошибки.